News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kae Verens' Blog:
Extracting a sudoku puzzle from a photo
February 04, 2009 @ 12:57:18

Kae Verens has posted a cool little application of how to pull information out of a photo and parse it with the GD library. His example is a visual sudoku solver (part one, at least).

The plan for this one is that, if you're doing a sudoku puzzle in the pub or on the train, and you get stuck, you just take a snapshot of the puzzle with your camera-phone, send the photo to a certain mobile number, and a few seconds later the solution is sent back as an SMS message. The solution costs you something small - 50 cents, maybe.

The script looks at a picture of a sudoku puzzle, converts it to b&w and tries to find the squares surrounding each position of the board. With these measurements, the next step is to grab the numbers already in the puzzle and hand those off to the puzzle solver to be processed.

2 comments voice your opinion now!
extract sudoku puzzle number grid photo solve textmessage


blog comments powered by Disqus

Similar Posts

Codewalkers.com: Flickr Puzzle Mashup

Felix Geisendorfer's Blog: Cake 1.2’s Set class eats nested arrays for breakfast!

PHPBuilder.com: Math & Number Handling in PHP - The ABCs of PHP Part 6

Pádraic Brady's Blog: Redux: First Official Code!

Codewalkers.com: Flickr Puzzle Mashup


Community Events

Don't see your event here?
Let us know!


api laravel example language security extension interview library release framework opinion podcast voicesoftheelephpant community introduction php7 series laravel5 video version

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework