I am using the raspberry pi NOIR board to supply a Python motion detection script. This "motion detection script" uses opencv2 to grab, modify and detect motion.
I wanted to extend the motion detection script, by adding a continuous live feed, within the motion detection script, but have run into problems.
The problem I have, is I cannot have the two operations accessing the NOIR camera board together, because this upsets the PI.
1) Is it some how possible to have two scripts grabbing frames together using the below code in each?
capture = cv2.VideoCapture(0) rc,img = capture.read()
2) Is it possible to modify the server script to incorporate the CV2 motion detection stuff, and have it continually detecting motion, regardless of the state of the server?
3) If I have two scripts, and only have the motion detection script grabbing a img (numpy array), how could I pass this img to the server script for display over the web?
I hope I've made myself clearer...