We are building a structure that responds to motion in front of it using OpenCV and a camera mounted with a raspberry pi.
To use our code you must first install imutils, OpenCV and make opencv in order to make OpenCV operate effectively.
pip3 install imutils
Visit this website, download and extract the files to your choice of folder, and navigate to that folder.
Make sure you are in the same folder where you put OpenCV!
mkdir build
cd build <- navigate to build folder
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
sudo make install