Python + OpenCV Surveillance System (tailored for the Raspberry Pi)
This is a multi-camera surveillance system that performs motion and facial detection.
- A small computer such as a Raspberry Pi 3
- One or more USB cameras
- Python 3 installed
- OpenCV installed
- OpenCV based motion detection
- OpenCV based facial detection
- Email alerts upon face detection
- Email alerts upon motion detection
- Email alerts can be turned on/off
- Easy to setup JSON configuration file
-
Clone the repo into your home directory:
sudo git clone https://github.com/Xaxis/rpysurveillance.git
-
Update the following lines in
rpysurveillance.json
to match your sending email addresses credentials and your target email address.sender = 'source@gmail.com' gmail_password = 'yourpassword!' recipients = ['target@gmail.com']
There are further configuration values that can be changed. The non-obvious ones will be better documented in the future.
-
Run the script:
sudo python3 rpysurveillance.py