Detecting motion is a key component to developing video surveillance based applications. Like this motion detection class, most methods are used by compare frames using hysteresis. An average motion detection score is calculate and can be used to determine the level of motion to act upon.

Getting the frame difference provides a black and white representation of the differences in two frames.