Tracking and detecting using openCV