PHP Facedetection is a PHP extension that offers an OpenCV wrapper to detect faces in images. It is also possible to train on other files and detect every other pattern.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.