Tracking objects in motion using OpenCV