<?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>Todd Vanderlin &#187; tracking</title>
	<atom:link href="http://toddvanderlin.com/tag/tracking/feed/" rel="self" type="application/rss+xml" />
	<link>http://toddvanderlin.com</link>
	<description>Design &#38; Technology</description>
	<lastBuildDate>Tue, 27 Jul 2010 03:27:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HaarTraining Exploration</title>
		<link>http://toddvanderlin.com/2008/12/haartraining-exploration/</link>
		<comments>http://toddvanderlin.com/2008/12/haartraining-exploration/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 00:13:25 +0000</pubDate>
		<dc:creator>Todd Vanderlin</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[computervision]]></category>
		<category><![CDATA[haartracking]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[openframeworks]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://toddvanderlin.com/?p=656</guid>
		<description><![CDATA[So I have been trying to learn how to build Haarcascade files. There really is zero documentation online for this process, so its hard to tell if you are doing it right or wrong. This is where I am so far: step 1: You need to collect a bunch of negative images. Images that do ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/vanderlin/3108776818/" title="Haar Tracking by Vanderlin, on Flickr"><img src="http://farm4.static.flickr.com/3279/3108776818_d4cb5718c4.jpg" width="500" height="374" alt="Haar Tracking" /></a><br />
So I have been trying to learn how to build <a href="http://en.wikipedia.org/wiki/Haar-like_features">Haarcascade</a> files. There really is zero documentation online for this process, so its hard to tell if you are doing it right or wrong. This is where I am so far: </p>
<p><strong>step 1:</strong><br />
You need to collect a bunch of negative images. Images that do not have the object that you are trying to track. You need to create a .dat file; a file that is just a list of all the images in a directory.</p>
<p><strong>step 2:</strong><br />
There are a couple of techniques for step two. Opencv can generate positive samples from one image of the object you want to track, this is not the best technique but does work.<br />
when you do this you get a bunch of images that look something like this.<br />
<a href="http://www.flickr.com/photos/vanderlin/3101585502/" title="Haar Training by Vanderlin, on Flickr"><img src="http://farm4.static.flickr.com/3055/3101585502_f8da5f8732.jpg" width="500" height="375" alt="Haar Training" /></a><br />
<a href="http://www.flickr.com/photos/vanderlin/3108776728/" title="Haar Tracking by Vanderlin, on Flickr"><img src="http://farm4.static.flickr.com/3157/3108776728_08268f3383.jpg" width="500" height="381" alt="Haar Tracking" /></a><br />
The other approach is to have a series of positive images that are cropped. I think that this is the more accurate approach. I needed figure out how the openCv executable was building these samples. After figuring this out I build an app that loads a series of images that you can click all the objects in the image. You can also use a video camera to add more images and save out images. Here is a demo of the app working.<br />
<object width="500" height="377"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2526370&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff0179&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2526370&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff0179&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="377"></embed></object></p>
<p><strong>step 3:</strong><br />
Now you just need to train. Running the opencv haar training executable you will generate an .xml file to load in a haarTracking app. I am still learning all the settings for this step. The perfect tweak of the setting will give you the best result for what you want to track.</p>
<p>Here is what I have been able to get so far. The results are not to bad but I need to learn some more. Any help would be great.<br />
<object width="500" height="377"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2526342&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff0179&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2526342&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff0179&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="377"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://toddvanderlin.com/2008/12/haartraining-exploration/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Motion Tracking</title>
		<link>http://toddvanderlin.com/2008/09/motion-tracking/</link>
		<comments>http://toddvanderlin.com/2008/09/motion-tracking/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:31:19 +0000</pubDate>
		<dc:creator>Todd Vanderlin</dc:creator>
				<category><![CDATA[experiment]]></category>
		<category><![CDATA[motiontracking]]></category>
		<category><![CDATA[OF]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://toddvanderlin.com/blog/?p=303</guid>
		<description><![CDATA[Working on a project were I need to track people and their movements. The setting is outside in a very uncontrolled environment (the city). I posted a question on OF to see what people think, I got a ton of great feedback. Here is a video of some initial testing. We ordered a bumble bee, ...]]></description>
			<content:encoded><![CDATA[<p>Working on a project were I need to track people and their movements. The setting is outside in a very uncontrolled environment (the city). I posted a <a href="http://www.openframeworks.cc/forum/viewtopic.php?t=1109">question</a> on OF to see what people think, I got a ton of great feedback. Here is a video of some initial testing.<br />
<object width="500" height="317"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1799261&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=1799261&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="317"></embed></object><br />
We ordered a <a href="http://www.ptgrey.com/products/bumblebee2/index.asp">bumble bee</a>, which I think is the best solution but much harder to work with. I have some more research to do though.</p>
<p>ps: the gui is a new addon im working on download soon, or find it on the OF forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://toddvanderlin.com/2008/09/motion-tracking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
