Other open-source projects:

Colored Object Detection

OpenCV C++ program for detecting colored object in videos. It is based on the YUV color space and the range of colors to be detected is easily extendable.
It was developed for encapsulation in a module targeting Aldebaran Nao humanoid robot, but can be used for any other purposes. See TDM website for download and documentation of the vision module for Nao.
It has been tested exclusively using OpenCV version 2.1.0

C++ source code can be downloaded here

Example of use

Note: the corresponding code can be found in the main.cpp file, included in the package downloadable above

Display when running this program: