<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eclecticc &#187; face detection</title>
	<atom:link href="http://eclecti.cc/tag/face-detection/feed" rel="self" type="application/rss+xml" />
	<link>http://eclecti.cc</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 20:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Face Detection on the OLPC XO</title>
		<link>http://eclecti.cc/olpc/face-detection-on-the-olpc-xo</link>
		<comments>http://eclecti.cc/olpc/face-detection-on-the-olpc-xo#comments</comments>
		<pubDate>Thu, 20 Mar 2008 15:47:28 +0000</pubDate>
		<dc:creator>nrp</dc:creator>
				<category><![CDATA[OLPC]]></category>
		<category><![CDATA[face detection]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[vision]]></category>
		<category><![CDATA[XO]]></category>

		<guid isPermaLink="false">http://eclecti.cc/code/face-detection-on-the-olpc-xo</guid>
		<description><![CDATA[Ok, here is some working code for face detection using the XO&#8217;s webcam.  It requires the opencv, opencv-python, and xawtv packages.  Xawtv can be skipped if you change it to use gstreamer instead, but gstreamer takes around 3 seconds to initialize the camera, take a picture, and save it.  Xawtv, on the other hand, takes [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><img title="Thats me!" src="http://eclecti.cc/files/2008/03/face.jpg" alt="Sample Face Detection Image" /></p>
<p>Ok, here is some working code for face detection using the XO&#8217;s webcam.  It requires the opencv, opencv-python, and xawtv packages.  Xawtv can be skipped if you change it to use gstreamer instead, but gstreamer takes around 3 seconds to initialize the camera, take a picture, and save it.  Xawtv, on the other hand, takes about a half second.  The face detection algorithm, from <a href="http://opencvlibrary.sourceforge.net/" target="_blank">OpenCV</a> itself takes anywhere from 0.1 seconds to 3 seconds depending on what parameters you choose.  I chose ones that seem to work almost all of the time and take about 0.25 seconds.</p>
<p><span id="more-20"></span></p>
<p>Object detection is pretty fascinating stuff, and well beyond the scope of this blog post, so I&#8217;ll just refer you to <a href="http://prism2.mem.drexel.edu/~paul/openCv/openCvPart02.pdf" target="_blank">this pdf</a>.  By training and customizing Haar files, one could detect an endless possibility of objects.  Gesture detection and sign language to tex tare two of the more interesting possibilities.  If I can find image databases, I might try training a Haar filter for hand detection.</p>
<p>This is basically just proof of concept code attached.  I&#8217;m going to try a v4l2 python library and package something up as a usable XO activity this weekend.  To run this, just put both of the files below in the same directory and run &#8220;python face.py&#8221;.  Assuming you&#8217;re on an XO and you have opencv, opencv-python, and xawtv installed, it should pause for a second while the camera turns on and captures a picture, and then display an image with any faces enclosed by green rectangles.  It works best if most of your head is within the image frame and there is a decent amount of light.</p>
<p><a href="http://eclecti.cc/files/2008/03/face.py" title="Face detection script">Face detection script</a><br />
<a href="http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml" title="The Haar cascade file that it uses">The Haar cascade file that it uses</a></p>
]]></content:encoded>
			<wfw:commentRss>http://eclecti.cc/olpc/face-detection-on-the-olpc-xo/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Face Detection using OpenCV on an OLPC XO</title>
		<link>http://eclecti.cc/bits/face-detection-using-opencv-on-an-olpc-xo</link>
		<comments>http://eclecti.cc/bits/face-detection-using-opencv-on-an-olpc-xo#comments</comments>
		<pubDate>Thu, 20 Mar 2008 05:10:34 +0000</pubDate>
		<dc:creator>nrp</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[face detection]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[vision]]></category>
		<category><![CDATA[XO]]></category>

		<guid isPermaLink="false">http://eclecti.cc/bits/face-detection-using-opencv-on-an-olpc-xo</guid>
		<description><![CDATA[I&#8217;m working on face detection and tracking using the webcam on the XO.  Expect code and pictures soon. (0)]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on face detection and tracking using the webcam on the XO.  Expect code and pictures soon.</p>
<a href="http://eclecti.cc/bits/face-detection-using-opencv-on-an-olpc-xo" rel="bookmark" class="asides-permalink" title="Permanent Link to Face Detection using OpenCV on an OLPC XO">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://eclecti.cc/bits/face-detection-using-opencv-on-an-olpc-xo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
