Playground for Raspberry Pi motion detection using Python.
The bootstrap.bash
script assumes a clean installation of the Raspian
image, but it should work on existing systems as well. Nothing will be deleted.
It will only install dependencies and compile the latest version of OpenCV.
Another assumption is that this will be run on a Raspberry Pi. It is unlikely that such a device has many processes running, which reduces the need for a virtual environment. Hence, all dependencies are installed system-wide. It is possible to compile OpenCV for Python virtual environments, but it requires a bit more manual fiddling around. Which is why I decided to skip the use of a virtual environment.
Note
This project has been tested on:
For other systems you may need to fix the "bootstrap" script.
Download the raspian image from the link above
Write the image to the SD-card of the Raspberry Pi
Boot the Raspberry Pi and update the packages:
sudo aptitude update sudo aptitude upgrade
Clone the project into your home folder:
sudo aptitude install git git clone https://github.com/exhuma/raspicam
Run the bootstrap script:
Note
This step will easily take over an hour to finish but should be automated! I highly recommend installing
tmux
first and run this step inside a tmux session in case you lose network connection.cd raspicam sudo bash bootstrap.bash
Run the application:
cd ~/raspicam python3 project/main.py