top of page
Motion Detection
Overview
The python script uses webcam capture for detecting motion.
​
-
Script uses OpenCV and mahotas
-
It first captures the picture of the webcam, thresholds it using mahotas OTSU
-
During the video capture id dynamically thresholds frame
-
Calculates absolute difference of the first picture and current frame
-
Contours detected on the difference
-
If there is a contour area larger than 1000 px, then an alert appears and contour squared
-
The captured video is saved on the disk
bottom of page