This is a simple OpenCV object tracker I made for my Intro to Computer Vision cource at UCSB with Matthew Turk. The program opens a video file, pauses on the first frame for you to click the center of the object you wish to track, then traces and tracks the obect based on color (using HSV mode and a histogram of the hue). The program also outputs a plot showing the center of the object.
output video example and C++ Source