Determine how much and whether there is motion in a stream of images:

patch