Motion detection with Python and OpenCV