Where’s Waldo? Let’s Ask Mathematica

Computers & Mobile Craft & Design
Where’s Waldo? Let’s Ask Mathematica

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]

4 thoughts on “Where’s Waldo? Let’s Ask Mathematica

  1. Judah (@jdrch) says:

    I’ve met Arnoud a few times, he’s a pretty smart guy.

  2. Adam says:

    Or in Francois Charlie…

Comments are closed.

Discuss this article with the rest of the community on our Discord server!
Tagged

I am descended from 5,000 generations of tool-using primates. Also, I went to college and stuff. I am a long-time contributor to MAKE magazine and makezine.com. My work has also appeared in ReadyMade, c't – Magazin für Computertechnik, and The Wall Street Journal.

View more articles by Sean Michael Ragan

ADVERTISEMENT

Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK