cv-examples Motion History source edit

Detect direction of motion. Try stepping out of the video, clicking resetBackground(), and stepping back in. Try different threshold values.

Threshold: