OpenCV based object-detection from video, and mouse controller