<?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"
	>

<channel>
	<title>Not Really a Blog</title>
	<atom:link href="http://www.loftie.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.loftie.com</link>
	<description>Random programming ramblings</description>
	<pubDate>Thu, 02 Oct 2008 22:00:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Camera Mouse</title>
		<link>http://www.loftie.com/2008/09/camera-mouse/</link>
		<comments>http://www.loftie.com/2008/09/camera-mouse/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 22:57:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.loftie.com/?p=13</guid>
		<description><![CDATA[Using just a simple webcam it is possible to track your eyes and head movement in such a way that you can actually control the computer mouse.  You can also simulate mouse clicks just by blinking (a left blink would be a left-click, right blink naturally is a right-click)

This might be very useful for example [...]]]></description>
			<content:encoded><![CDATA[<p>Using just a simple webcam it is possible to track your eyes and head movement in such a way that you can actually control the computer mouse.  You can also simulate mouse clicks just by blinking (a left blink would be a left-click, right blink naturally is a right-click)</p>
<p><a href="http://www.loftie.com/wp-content/uploads/2008/09/cameramouse.jpg"><img class="size-medium wp-image-14 alignright" title="Camera Mouse" src="http://www.loftie.com/wp-content/uploads/2008/09/cameramouse-300x169.jpg" alt="" width="300" height="169" /></a></p>
<p>This might be very useful for example for people with disabilities who can not use a regular mouse (and where the normal solutions tend to very expensive since they require specialized hardware such as infrared tracking cameras, whereas only a plain webcam is neccassary here)</p>
<p>The whole system is written in Python, using the Intel OpenCV library and SciPy.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/N2-wTNr7Dok&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/N2-wTNr7Dok&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
<p><span id="more-13"></span></p>
<p>Source Code:</p>
<p>Once I get the time to remove some code specific to my machine I&#8217;l make it available here for anyone who wants to try out the system. The code is currently only available for windows only, but it should be easy to port to other systems.  (The only platform specific code is the part to simulate the mouse clicks)</p>
<p>You will also need the following:</p>
<ul>
<li>The Intel OpenCV library</li>
<li>Python (naturally)</li>
<li>libsvm</li>
<li>A computer with a webcam</li>
</ul>
<p>The syste</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loftie.com/2008/09/camera-mouse/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ICFP programming contest</title>
		<link>http://www.loftie.com/2008/09/hello-world/</link>
		<comments>http://www.loftie.com/2008/09/hello-world/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 01:04:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[icfp]]></category>

		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.loftie.com/?p=1</guid>
		<description><![CDATA[This July I (together with and 3 other people - Janto Dreijer, Pieter Holtzhausen and Albert Swart) entered a team in the ICFP programming contest.
The problem was to navigate a robotic rover though some alien terrain, while avoiding rocks, craters and evil martians.    We wrote everything in Python, and tried several different approaches but in [...]]]></description>
			<content:encoded><![CDATA[<p>This July I (together with and 3 other people - Janto Dreijer, Pieter Holtzhausen and Albert Swart) entered a team in the ICFP programming contest.<a href="http://www.loftie.com/wp-content/uploads/2008/09/screenshot-viewer.png"><img class="size-medium wp-image-5 alignright" title="screenshot-viewer" src="http://www.loftie.com/wp-content/uploads/2008/09/screenshot-viewer.png" alt="" width="196" height="200" /></a></p>
<p>The problem was to navigate a robotic rover though some alien terrain, while avoiding rocks, craters and evil martians.    We wrote everything in Python, and tried several different approaches but in the end settled on a simple obstacle avoidance algorithm.  Given that the martians in the sample server were not very smart we ignored them for the first run, and only start active avoidance if we see more than 5 of them at the same time.</p>
<p>I think our solution in the end was pretty decent.   Our entry of <span class="survivor">AntiCylonDefenseTeamImpersonator </span><a href="http://www.icfpcontest.org/results/final/results-by-score-Final-1.html">actually ended in first place in the initial round</a>. (though to be fair, we did share that spot with 18 other teams <img src='http://www.loftie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )  In the end we dropped out at round 4, apparently our rover crashed into a crater. (though through our own testing we cannot duplicate that..)</p>
<p>We&#8217;ll definitively be back next year. (<a href="http://janto.blogspot.com/2008/07/icfp-2008-programming-contest.html">Janto </a>also has good writeup)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loftie.com/2008/09/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
