OpenCV C++ program to shutdown Linux Machine when there is no motion detected by camera for certain time(10s)
Motion Detection is based on Background Subtractor using KNN in OpenCV 3.x
-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lopencv_video
If there are any issues try executing the compiled executable as root.
SysPoweroffOnZeroMotion is licensed under GNU GPL v3