<?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>blog.sketchit.de &#187; augmented reality</title>
	<atom:link href="http://blog.sketchit.de/tag/augmented-reality/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sketchit.de</link>
	<description>Glaubt mir ich hab den Weihnachtsmann mit eigenen Augen gesehen...</description>
	<lastBuildDate>Wed, 30 Jun 2010 06:28:01 +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>ToneMatrix &#8211; Webcam Object Tracking</title>
		<link>http://blog.sketchit.de/2009/12/tonematrix-webcam-object-tracking/</link>
		<comments>http://blog.sketchit.de/2009/12/tonematrix-webcam-object-tracking/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 11:45:31 +0000</pubDate>
		<dc:creator>Hubert Hölzl</dc:creator>
				<category><![CDATA[AS3 & Flash]]></category>
		<category><![CDATA[Multimedia Technology]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://blog.sketchit.de/?p=205</guid>
		<description><![CDATA[During our subject Interface Culture we (Matthias Schmidt, Bettina Steger and my humble self) were working on a project that uses hand-drawn objects on a white paper for making music. Note: You have to allow the webcam! Hold a white paper with black (or dark) objects that you painted on it in front of the [...]]]></description>
			<content:encoded><![CDATA[<p>During our subject Interface Culture we (Matthias Schmidt, Bettina Steger and my humble self) were working on a project that uses hand-drawn objects on a white paper for making music.</p>
<p><em><strong>Note: You have to allow the webcam!</strong></em></p>
<p><strong>Hold a white paper with black (or dark) objects that you painted on it in front of the camera. The red rectangle indicates the tracked area, the green rectangles indicates the tracked objects. Then hit the space-bar (Note: be sure that the flash movie gets the focus)</strong></p>
<p><a title="ToneMatrix Demo" href="http://blog.sketchit.de/wp-content/uploads/2009/12/ToneMatrixApp.swf" target="_blank">Check it out!</a></p>
<p>The flash-app uses the webcam for accessing three different videos. The normal video that we convert into two other videos: A threshold video and a palette video.</p>
<p><a href="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.24.45-PM.png"><img class="aligncenter size-full wp-image-206" title="Screen shot 2009-12-29 at 12.24.45 PM" src="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.24.45-PM.png" alt="" width="478" height="358" /></a></p>
<p><a href="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.25.15-PM.png"><img class="aligncenter size-full wp-image-207" title="Screen shot 2009-12-29 at 12.25.15 PM" src="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.25.15-PM.png" alt="" width="471" height="342" /></a></p>
<p>The palette video is used for tracking the brightest area in the video and reducing the tracking-area to this area (e.g. the white paper is usual the brightest color in the video, so objects that are in the background aren't tracked any longer). The threshold video is used for tracking the darkest objects within the brightest area.</p>
<p>How does this work? In the treshold video it is supposed that the red pixels are the objects, and coherent pixels belongs to one object. I've implemented a flood fill algorithm that counts the pixel of each object and returns the x,y position and width and height of an object. With this information we can nearly perfectly track the object and use for example the pixelamount for the volume of the sound and the x,y/width,height information for the timeline.</p>
<p>When all objects are tracked and you press <strong>the Space-Bar</strong> the tracked area is converted into a matrix of 16x16 fields. Each field represents a sound, fields that are lower plays a lower sound, fields that are higher a higher one. The timeline goes from left to right.</p>
<p><a href="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.36.08-PM.png"><img class="aligncenter size-full wp-image-208" title="Screen shot 2009-12-29 at 12.36.08 PM" src="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.36.08-PM.png" alt="" width="476" height="359" /></a></p>
<p><a href="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.36.51-PM.png"><img class="aligncenter size-full wp-image-209" title="Screen shot 2009-12-29 at 12.36.51 PM" src="http://blog.sketchit.de/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-12.36.51-PM.png" alt="" width="479" height="359" /></a></p>
<p>The source code is available here: <a href="http://blog.sketchit.de/wp-content/uploads/2009/12/ToneMatrixSource.zip">ToneMatrixSource</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sketchit.de/2009/12/tonematrix-webcam-object-tracking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
