Scripts for training a Haar cascade classifier, as described here and here.
Haar-like features can be used to detect certain objects in the image, for examples, faces. The articles above describe how to do this. Be prepared to wait days for the training to finish!
OpenCV and its source is required for preparation and training.