There is a really cool demo for opencv in C called camshiftdemo. I decided to write a version in python... The only one I could find online used opencv with ctypes, so this was a simple enough modification to get it running in more pure "swigged" python. It's in my pycam repository if anyone is interested: http://code.google.com/p/pycam/source/browse/trunk/pycam/cam-histo.py
Here are some screenshots.
This is the python cam shift demo tracking the orange on the XO's logo.
Now tracking the green section, you can see the histogram for the entire image shown. It is a really simple demo, and quite fun! At the Hitlab open night this was what I used to keep the kids occupied!Unlike the previous computer vision post - this doesn't use pygame at all. It would be a really good example for the XO pippy computer vision package idea however.