Python/OpenCV script that detect motion on webcam and allow record it to a file.
- Detect moving object by calculating the average of changing over the hole image.
- Record to a file the webcam video stream only when something moves.
Note: MotionDetectorContours is an alternative method to detect based on contours and area calculation.