<?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>REDBLIND &#187; webcam</title>
	<atom:link href="http://redblind.com/blog/topic/webcam/feed/" rel="self" type="application/rss+xml" />
	<link>http://redblind.com/blog</link>
	<description>Blog of Jonathan Cipriano</description>
	<lastBuildDate>Mon, 27 Dec 2010 21:21:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Color Tracking Source</title>
		<link>http://redblind.com/blog/2009/11/19/color-tracking-source/</link>
		<comments>http://redblind.com/blog/2009/11/19/color-tracking-source/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 19:02:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[color isolation]]></category>
		<category><![CDATA[color tracking]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[motion detection]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://redblind.com/blog/?p=261</guid>
		<description><![CDATA[When I was researching color tracking with Flash, there were surprisingly few examples. The examples I did find did not have any source to download. So, I am offering up my source code from  my color tracking experiment. The ColorIsolator class is based on an old AS2 algorithm by Mario Klingemann (Quasimondo) for selective color. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>When I was researching color tracking with Flash, there were surprisingly few examples. The examples I did find did not have any source to download. So, I am offering up my source code from  <a title="color tracking" href="http://redblind.com/blog/2009/09/09/color-tracking/" target="_self">my color tracking experiment</a>. The ColorIsolator class is based on an old <a title="quasimondo - selective color" href="http://www.quasimondo.com/archives/000614.php" target="_blank">AS2 algorithm by Mario Klingemann</a> (Quasimondo) for selective color. I&#8217;ve translated it here to AS3 and applied it to video from the webcam.</p>
<p>It works like this. Once a color is selected from the video, using a seriess of thresholds, the ColorIsolator drops all pixels that don&#8217;t fall within the defined range of the target color. The remaining pixels are set to the target color and getColorBoundsRect is used to pinpoint the remaining blob of color. It&#8217;s really simple. I had the general idea, but I didn&#8217;t understand how to define a range of  color until I found Klingermann&#8217;s code.</p>
<p>I would consider this just a starting point. It actually works very well, but there are a number of things that can be done to improve it. Here are my recommendations to try out:</p>
<ol>
<li>Try using HSV color values rather than RGB.</li>
<li>Introduce a palleteMap in place of or in addition to the saturation/contrast ColorMatrixFilter.</li>
<li>Add blob detection to ignore anomalies/artifacts of the target color.</li>
</ol>
<p><a title="Color Tracking Source" href="http://redblind.com/codesamples/REDBLIND_ColorTracking.zip">Download source here.</a></p>
<p><a title="Color Tracking Source" href="ftp://joncipriano.com@redblind.com/domains/redblind.com/html/codesamples/REDBLIND_ColorTracking.zip"></a>All I ask is for constructive criticism and to let me know if and where you use this. A credit to myself and Mario in your source code comments would be nice.</p>
<p>Thanks to <a title="soulwire - justin windle" href="http://blog.soulwire.co.uk/" target="_blank">Justin Windle</a> (soulwire) for a great exchange of ideas for this.</p>
]]></content:encoded>
			<wfw:commentRss>http://redblind.com/blog/2009/11/19/color-tracking-source/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Color Tracking</title>
		<link>http://redblind.com/blog/2009/09/09/color-tracking/</link>
		<comments>http://redblind.com/blog/2009/09/09/color-tracking/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 01:00:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acitionscript 3]]></category>
		<category><![CDATA[color isolation]]></category>
		<category><![CDATA[color tracking]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[motion tracking]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://redblind.com/blog/?p=176</guid>
		<description><![CDATA[Here are the results so far for my color/motion tracking project. Turns out that you don&#8217;t have to use a difference filter when tracking colors. All you basically have to do is isolate a color range using multiple thresholds. Then run getColorBounds to get the coordinates of the color blob. The one thing I do [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the results so far for my color/motion tracking project. Turns out that you don&#8217;t have to use a difference filter when tracking colors. All you basically have to do is isolate a color range using multiple thresholds. Then run getColorBounds to get the coordinates of the color blob. The one thing I do have to add is blob detection, but with vibrant colors I don&#8217;t seem to need it.</p>
<p>Click on the image below to launch the swf. You can use the sliders to adjust the image for your lighting conditions. Click on one of the boxes to assign the colors to the channel. Check out my blog post prior to this one to see where I did most of my research. I&#8217;ll release abstracted code after the project is complete.</p>
<p><em>UPDATE: Source code now available </em><a title="color tracking source" href="http://redblind.com/blog/2009/11/19/color-tracking-source/" target="_self"><em>here</em></a><em>!</em></p>
<p><a href="http://redblind.com/exp/colorTracking/" target="_blank"><img src="http://redblind.com/blog/wp-content/uploads/2009/09/colortracking.jpg" alt="colortracking" width="598" height="345" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://redblind.com/blog/2009/09/09/color-tracking/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>An Intro to Color/Motion tracking</title>
		<link>http://redblind.com/blog/2009/09/09/an-intro-to-colormotion-tracking/</link>
		<comments>http://redblind.com/blog/2009/09/09/an-intro-to-colormotion-tracking/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 00:25:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[color isolation]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[motion tracking]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://redblind.com/blog/?p=205</guid>
		<description><![CDATA[I don&#8217;t usually like to write blog posts about other people&#8217;s blog posts. I try to create original content that people will find useful, but that is very hard to do on the web. I like to sleep, watch TV and play video games, so it&#8217;s hard keep up with all the 24/7 coders out [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t usually like to write blog posts about other people&#8217;s blog posts. I try to create original content that people will find useful, but that is very hard to do on the web. I like to sleep, watch TV and play video games, so it&#8217;s hard keep up with all the 24/7 coders out there.</p>
<p>That said, I&#8217;ve been doing a ton of research and experimentation on motion and color tracking. There is a lot of good stuff out there. A lot of it useless, but along the way I came across a few key blog posts that really got me rolling. if you are trying to get your head wrapped around all of this stuff, check out these helpful blog posts:</p>
<p><strong>Color Isolation</strong><br />
<a href="http://www.quasimondo.com/archives/000614.php" target="_blank"> http://www.quasimondo.com/archives/000614.php</a><br />
Mario Klingemann&#8217;s blog is a gold mine of info relating to bitmap data. This blog post reveals how to pick out a color range and drop the rest of the colors. I had to translate this to AS3 for my uses. I&#8217;ll release that translation soon.</p>
<p><strong>Blob Detection</strong><br />
<a href="http://play.blog2t.net/fast-blob-detection/" target="_blank"> http://play.blog2t.net/fast-blob-detection/</a><br />
Blob detection is key to dropping little pieces of bitmap data that you don&#8217;t want or to track multiple blobs of the same color. Read the post and you&#8217;ll see how it&#8217;s useful.</p>
<p><strong>Motion Tracking</strong><br />
<a title="http://blog.soulwire.co.uk/2008/06/06/webcam-motion-detection-tracking/" href="http://" target="_blank"> </a><a href="http://blog.soulwire.co.uk/2008/06/06/webcam-motion-detection-tracking/" target="_blank">http://blog.soulwire.co.uk/2008/06/06/webcam-motion-detection-tracking/</a><br />
This is motion tracking it it&#8217;s simplest form. This is the post I started on.  Ultimately, you may want to combine some of the above techniques with this one. Justin Windle is a cool guy and he has lots of good info on his blog that can help you with your generative art.</p>
<p><strong>Edge Detection</strong><br />
<a href="http://blog.inspirit.ru/?p=297" target="_blank"> http://blog.inspirit.ru/?p=297</a><br />
I just found this one most recently. Really interesting. I don&#8217;t have a use for this now, but I will be keeping an eye on where this goes. This blog also has a lot of good info and I will be adding this one to my regular reading list.</p>
<p><strong>Automated/Adaptive Threshold<br />
<span style="font-weight: normal;"><a href="http://www.quasimondo.com/archives/000690.php" target="_blank">http://www.quasimondo.com/archives/000690.php</a><br />
<a href="http://blog.inspirit.ru/?p=310" target="_blank"> http://blog.inspirit.ru/?p=310</a><br />
One of the main issues when dealing with bitmap data from a webcam is the lighting conditions the user is in. Adaptive threshold analyzes the bitmap data and applies the appropriate threshold to get the best contrast. I haven&#8217;t yet dived into the code, but this look extremely useful.</span></strong></p>
<p><strong>And there you have it!</strong><br />
The best motion and color tracking blog posts to start with. I hope this help others on the same path as I am. Hopefully I will be taking what I&#8217;ve learned from all of this and releasing it in a nice tidy code package for everyone to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://redblind.com/blog/2009/09/09/an-intro-to-colormotion-tracking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AR From Across the Pond</title>
		<link>http://redblind.com/blog/2009/03/13/ar-from-across-the-pond/</link>
		<comments>http://redblind.com/blog/2009/03/13/ar-from-across-the-pond/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 17:59:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[ARToolKit]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[FlaRToolkit]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[papervision3d]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://redblind.com/blog/?p=126</guid>
		<description><![CDATA[Looks like my fellow McCannite devs in Belgium beat us too it. If you want to try it out, download the QR code, then hit this page to launch the application. Good job guys.

]]></description>
			<content:encoded><![CDATA[<p>Looks like my fellow <a href="http://blog.mccann.be/" target="_blank">McCannite devs in Belgium</a> beat us too it. If you want to try it out, <a href="http://sqlug.be/go/ar/page" target="_blank">download the QR code</a>, then hit <a href="http://mantis.net7.be/msft_sql_energy_ar/">this page</a> to launch the application. Good job guys.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/yOu45bD2hkg&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yOu45bD2hkg&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://redblind.com/blog/2009/03/13/ar-from-across-the-pond/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

