Motion detection on the webcam

It is surprisingly easy to make a small Python script that takes a webcam or any other video and detects when something is moving there. It uses the OpenCV library. 1. Difference between frames Compares two frames and displays only what are change. The rest is black. 2. Binary image Turn it into binary: onlyContinue reading “Motion detection on the webcam”