Lucas Arroyo Blanco
PatoOsoPatoso
1 ) Description
1 ) Requeriments
A simple implementation of a motion based alarm in python.
If the sensor detects movement triggers a warning on the screen (for testing purposes) after that if there is ininterrumpted movement for 5 seconds starts filming, the duration of the capture will last until 5 seconds pass without movement.
- OpenCV for python
- A camera plugged into the computer
If you have more than one camera and want to use an other than the default one you have to modify this in order to select that one:
cap = cv2.VideoCapture(0) # Change the '0' to the device number listed by opencv