Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

Stack Overflow member Heike describes the image processing algorithm he wrote to automatically track down the elusive international fugitive known, to date, only as “Wally” or “Waldo:”

First, I’m filtering out all colours that aren’t red. Next, I’m calculating the correlation of this image with a simple black and white pattern to find the red and white transitions in the shirt. I use Binarize to pick out the pixels in the image with a sufficiently high correlation and draw white circle around them to emphasize them using Dilation. I had to play around a little with the level. If the level is too high, too many false positives are picked out. Finally I’m combining this result with the original image to get the result above.

How do I find Waldo with Mathematica?

[via adafruit]

Sean Michael Ragan

I am descended from 5,000 generations of tool-using primates. Also, I went to college and stuff. I write for MAKE, serve as Technical Editor for MAKE magazine, and develop original DIY content for Make: Projects.


Related
blog comments powered by Disqus

Featured Products from the MakerShed

Follow

Get every new post delivered to your Inbox.

Join 25,525 other followers