News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Maurice Svay's Blog:
Face detection in pure PHP (without OpenCV)
June 22, 2009 @ 12:53:22

Maurice Svay has a new blog post that includes a script he's developed to perform facial recognition (detect faces in images) with PHP without the need of the Open-CV library.

OpenCV seems to perform well but you need to be able to install it on your server. In my case, I wanted to have a pure PHP solution, so it can work with most hosts. So I started to think about implementing it myself. [...] I kept searching and finally found a canvas+javascript implementation of face detection at http://blog.kpicturebooth.com/?p=8. The code looked fairly compact and simple. Shouldn't be hard to port to PHP.

The class takes in the filename of an image (just JPG, but could easily be adapted) and a data file to use to run the image through the GD image library and output a JPG similar to this with the face highlighted by a red square.

0 comments voice your opinion now!
gd opencv detection face


blog comments powered by Disqus

Similar Posts

Codewalkers.com: Creating a CAPTCHA with PHP

IBM developerWorks: Paint 3-D images with PHP

Pierre-Alain Joye\'s Blog: 5.1.3 is out, Congrats! (and finally)

Ozh\'s Blog: PHP and GD - Emulate Gradient Fill

DevShed: Filtering Image Streams with the GD Library in PHP


Community Events

Don't see your event here?
Let us know!


development api laravel interview extension voicesoftheelephpant library language framework release introduction psr7 series conference laravel5 opinion podcast community unittest video

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework