How do I know exactly when motion is detecected? Optical Flow

asked 2016-05-31 11:46:01 -0500

I am using the calcOpticalFlowFarneback algorithm to detect motion and to draw the movement in the image. I have about 40 cameras and all is well. With the example code, drawing is not the issue.

But how do I detect, in Python, when the first movement is detected and when there is no longer any movement? I want to broadcast a message from the Python application when the motion is first detected.


edit retag flag offensive close merge delete