It's a video demonstration of a simple object tracking by color with OpenCV.
You can choose any object with specific color and track it with your camera. I want to use it with my Raspberry Pi in some project.
You can take the code for your needs here http://pastebin.com/NkUTXM8T