In the previous sections, we built a complete application for playing and saving videos with our cameras. But for a home security application, that's not enough. We must know the situation at our home while something is happening there. This will be done by using the motion detection feature that's provided by OpenCV.
Motion analysis with OpenCV
Motion detection with OpenCV
Usually, motion detection is done by the segmentation of background and foreground content in images. Because of that, while detecting motion, we usually assume that the background part of the given scene that appears in our camera is static and will not change over consecutive frames of the video. By analyzing these consecutive frames, we can...