Motion Detection and Video Interaction with OpenCV