<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 22:29:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Maurice Svay's Blog: Face detection in pure PHP (without OpenCV)]]></title>
      <guid>http://www.phpdeveloper.org/news/12731</guid>
      <link>http://www.phpdeveloper.org/news/12731</link>
      <description><![CDATA[<p>
<i>Maurice Svay</i> has <a href="http://svay.com/blog/index/post/2009/06/19/Face-detection-in-pure-PHP-(without-OpenCV)">a new blog post</a> that includes a script he's developed to perform facial recognition (detect faces in images) with PHP without the need of the <a href="http://opencv.willowgarage.com/wiki/">Open-CV library</a>.
</p>
<blockquote>
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 <a href="http://blog.kpicturebooth.com/?p=8">http://blog.kpicturebooth.com/?p=8</a>. The code looked fairly compact and simple. Shouldn't be hard to port to PHP.
</blockquote>
<p>
The class takes in the filename of an image (just JPG, but could easily be adapted) and <a href="http://svay.com/experiences/face-detection/detection.dat">a data file</a> to use to run the image through the GD image library and output a JPG similar to <a href="http://svay.com/blog/public/images/2009-06-19/detection.jpg">this</a> with the face highlighted by a red square.
</p>]]></description>
      <pubDate>Mon, 22 Jun 2009 12:53:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Eisele's Blog: Face detection with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10677</guid>
      <link>http://www.phpdeveloper.org/news/10677</link>
      <description><![CDATA[<p>
<i>Robert Eisele</i> has <a href="http://www.xarg.org/2008/07/face-detection-with-php/">posted on</a> an interesting topic recently - using a PHP interface to the <a href="http://www.intel.com/technology/computing/opencv/">OpenCV</a> library (from Intel) to detect faces in images.
</p>
<blockquote>
The headline does say facedetection - but what does this mean? Easy said, this article focus on how to find faces on images with PHP. Faces have a certain form and so it is possible to search for it. At the end of the search you will say how many human faces are on the image or better: Where are human faces on my image. This article is not intended to be mathematically.
</blockquote>
<p>
The <a href="http://www.intel.com/technology/computing/opencv/">OpenCV</a> library is a pattern-detection tool that can, based on the "experience" it has trained on with sample files, do its best to find similar structures in any given image. He's come up with a <a href="http://www.xarg.org/download/facedetect.phps">wrapper</a> that handles most of the details for you. You can define the xml file type (frontalface, lowerbody, upperbody, etc) that you want it to try to match to. 
</p>
<p>
He gives some examples of the output from each on one of the sample images included in the training group as well as a random photo grab from flickr that dynamically tries to apply one of the face filters.
</p>]]></description>
      <pubDate>Thu, 24 Jul 2008 12:55:41 -0500</pubDate>
    </item>
  </channel>
</rss>
