Basic motion detection and tracking with Python and OpenCV http://www.pyimagesearch.com/2015/05/25/basic-motion-detection-and-tracking-with-python-and-opencv/