Turns a Raspberry Pi plus camera module into a intelligent 'spy camera'. If motion is detected, an email is sent to a chosen email address containing the pictures captured.
The motion detection is implemented using opencv's python bindings, which provides fast image processing.
- enable camera
$ sudo kano-camera
- install picamera
$ sudo pip install picamera
- install opencv python bindings
sudo apt-get install python-opencv
- restart the Raspberry Pi in order to finish the camera enabling
$ sudo reboot
- enable camera in raspi-config
$ sudo raspi-config
- install picamera (ensure you have python pip installed)
$ sudo pip install picamera
- install opencv python bindings
sudo apt-get install python-opencv
- restart the Raspberry Pi in order to finish the camera enabling
$ sudo reboot
- edit motion_detection.py, scroll to the bottom, edit email/smpt_server details
- run the motion_detection.py in python
$ python motion_detection.py 'my_password'