Free Python example code for performing motion-activated video recording using the Raspberry Pi and a Raspberry Pi Camera. The application will use the OpenCV computer vision library to record .avi video if motion is detected by the camera. The moving area(s) will be enclosed in bounding boxes.
Recommended Resources:
- Raspberry Pi 3 or Raspberry Pi 4
- Raspberry Pi Camera v2.1
- Raspberry Pi Operating System (OS) August 2020 or compatible
- OpenCV 4.4.0 or compatible
- Python 3.7.3
- Pi Camera must be enabled using raspi-config