Programmer Creates Algorithm to Find Waldo

Recommended Videos

Because people with phenomenal computer skills get bored of simply being geniuses and need to exercise their genius every now and then, we, the human race, have found a way to make computers find Waldo. Over on collaborative programming site Stack Overflow, the question of how to easily make a computer find Waldo using computational software program Mathematica was posed, so the programmers collaborated and user Heike’s solution seems to have done the job, garnering the most upvotes by a wide margin.

Rather than post all of Heike’s code, which can be viewed over on Stack Overflow, we’ll simply discuss the steps his code took. First, he filtered out all of the colors that aren’t red. Next, he calculated the correlation of the Waldo scene to a black and white image in order to find the red and white transitions in Waldo’s iconic shirt. Then, he picks out the pixels in that image that were found to have a high correlation, and draws a white circle around them. He had to fidget with the level of the image, as when it is too high, the code identifies false positives.

Finally, he compares the image the code was working on — the compared one — and joins it to the original Waldo scene.

Heike’s method seems to work, with commenters granting it many upvotes and posting their support, one commenter notes that the method isn’t exactly ideal, as it requires manual tuning (fidgeting with the levels). Though Heike’s method was post a few months ago, it’s just being widely discovered now, and we couldn’t help but share it with you, as Heike answered everyone’s most important childhood question, “Where’s Waldo?” Sorry Carmen, but wondering where Waldo is only takes three syllables.

(Stack Overflow via The Verge)

Relevant to your interests


The Mary Sue is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more
related content
Read Article Will Colin Finally Make the Right Choice in ‘Bridgerton’ Season 3?
Nicola Coughlan and Luke Newton as Penelope Featherington and Colin Bridgerton in Bridgerton season 3
Read Article Here Are 10 Gritty Crime Shows Fans of ‘Criminal Minds’ Will Love
The cast of Lie To Me
Read Article It’s Called Unadaptable for a Reason: All the ‘Dune’ Movies, Ranked
Timothee Chalamet as Paul Atreides in 'Dune: Part Two'
Read Article The Best Horror Movies on Max Right Now
A collage featuring some of the best horror movies on Max right now (clockwise from top left): 'House,' 'Under the Skin,' 'We're All Going to the World's Fair,' and 'It Comes at Night'
Read Article Who is Crystal Palace? Kassius Nelson’s ‘Dead Boy Detectives’ Character, Explained
Image of George Rexstrew as Edwin, Jayden Revri as Charles, and Kassius Nelson as Crystal in Netflix's 'Dead Boy Detectives.' Edwin is a white teenager wearing an 1800s boys' school uniform with a bow tie. Charles is a mixed race Indian teenager wearing a 1980s style leather jacket. Crystal is a Black teenager with long, wavy dark hair wearing a purple velvet blazer. They are standing together at night looking off into the distance.
Related Content
Read Article Will Colin Finally Make the Right Choice in ‘Bridgerton’ Season 3?
Nicola Coughlan and Luke Newton as Penelope Featherington and Colin Bridgerton in Bridgerton season 3
Read Article Here Are 10 Gritty Crime Shows Fans of ‘Criminal Minds’ Will Love
The cast of Lie To Me
Read Article It’s Called Unadaptable for a Reason: All the ‘Dune’ Movies, Ranked
Timothee Chalamet as Paul Atreides in 'Dune: Part Two'
Read Article The Best Horror Movies on Max Right Now
A collage featuring some of the best horror movies on Max right now (clockwise from top left): 'House,' 'Under the Skin,' 'We're All Going to the World's Fair,' and 'It Comes at Night'
Read Article Who is Crystal Palace? Kassius Nelson’s ‘Dead Boy Detectives’ Character, Explained
Image of George Rexstrew as Edwin, Jayden Revri as Charles, and Kassius Nelson as Crystal in Netflix's 'Dead Boy Detectives.' Edwin is a white teenager wearing an 1800s boys' school uniform with a bow tie. Charles is a mixed race Indian teenager wearing a 1980s style leather jacket. Crystal is a Black teenager with long, wavy dark hair wearing a purple velvet blazer. They are standing together at night looking off into the distance.