MotionDetector for Respberry Pi, based on MOG2 Background Subtraction Methods.
- C++11
- OpenCV 3.1.0 with contrib
- CMake
- Install OpenCV 3.1 with contrib and CMake.
- Set environment variables according to OpenCV Setup - Environment Variables
- Launch cmake-gui, create a build folder and configure.
- Open MotionDetector.sln in Visual Studio and compile the projects MotionDetector.
- Install OpenCV 3.1 with contrib and CMake.
- Configure and complie:
-
mkdir build
-
cd build
-
cmake ..
-
make -j4
Make sure your Camera working on /dev/video0
then run ./MotionDetector