<?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>Kenneth Ham &#187; OCR</title>
	<atom:link href="http://www.kennethham.com/wp/category/ocr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kennethham.com/wp</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:55:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Dell Sweepstakes Hack (Dellf Project)</title>
		<link>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/</link>
		<comments>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:39:39 +0000</pubDate>
		<dc:creator>kham</dc:creator>
				<category><![CDATA[CAPTCHA]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[OCR]]></category>
		<category><![CDATA[Office API]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[VB6]]></category>

		<guid isPermaLink="false">http://kham.wordpress.com/?p=48</guid>
		<description><![CDATA[Dell ran a Christmas themed contest a few years ago (2004-2005?) called the Dellf Sweepstakes. The idea behind it was pretty neat at the time: register your email address, fill out a CAPTCHA box, and you get three chances to win prizes. The CAPTCHA design made it very easy to reverse engineer (an evenly spaced [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kham.files.wordpress.com/2008/11/hdtv.jpg"><img class="alignnone size-full wp-image-147" title="Dellf HDTV" alt="Dellf HDTV" src="http://kham.files.wordpress.com/2008/11/hdtv.jpg" width="500" height="502" /></a></p>
<p>Dell ran a Christmas themed contest a few years ago (2004-2005?) called the Dellf Sweepstakes. The idea behind it was pretty neat at the time: register your email address, fill out a CAPTCHA box, and you get three chances to win prizes.</p>
<p>  <span id="more-48"></span>
<p>The CAPTCHA design made it very easy to reverse engineer (an evenly spaced grid, solid background, unaltered text). By using the photoshop API and a custom written action I was able to take this:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/index.jpg"><img class="alignnone size-full wp-image-146" title="index" alt="index" src="http://kham.files.wordpress.com/2008/11/index.jpg" width="200" height="50" /></a></p>
<p>and turn it into this:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/index2.jpg"><img class="alignnone size-full wp-image-148" title="index2" alt="index2" src="http://kham.files.wordpress.com/2008/11/index2.jpg" width="200" height="50" /></a></p>
<p>From there, I sent the edited image to the Office API and did a quick OCR command to get the text from the image. Then, using the WebBrowser control, I scripted the actions to put the text into the web page and register an email address.</p>
<p>Here&#8217;s a view of the program in action:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/dellfprogram.jpg"><img class="alignnone size-full wp-image-151" title="dellfprogram" alt="dellfprogram" src="http://kham.files.wordpress.com/2008/11/dellfprogram.jpg" width="500" height="344" /></a></p>
<p>It&#8217;s important to note that I didn&#8217;t collect any prizes. This project was more about the thrill of the chase and not so much the actual prizes. I ended up &quot;winning&quot; almost every prize including the grand prize, a 42in. plasma TV.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

