Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8798065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:59:36+00:00 2026-06-13T23:59:36+00:00

Shamelessly jumping on the bandwagon :-) Inspired by How do I find Waldo with

  • 0

Shamelessly jumping on the bandwagon 🙂

Inspired by How do I find Waldo with Mathematica and the followup How to find Waldo with R, as a new python user I’d love to see how this could be done. It seems that python would be better suited to this than R, and we don’t have to worry about licenses as we would with Mathematica or Matlab.

In an example like the one below obviously simply using stripes wouldn’t work. It would be interesting if a simple rule based approach could be made to work for difficult examples such as this.

At the beach

I’ve added the [machine-learning] tag as I believe the correct answer will have to use ML techniques, such as the Restricted Boltzmann Machine (RBM) approach advocated by Gregory Klopper in the original thread. There is some RBM code available in python which might be a good place to start, but obviously training data is needed for that approach.

At the 2009 IEEE International Workshop on MACHINE LEARNING FOR SIGNAL PROCESSING (MLSP 2009) they ran a Data Analysis Competition: Where’s Wally?. Training data is provided in matlab format. Note that the links on that website are dead, but the data (along with the source of an approach taken by Sean McLoone and colleagues can be found here (see SCM link). Seems like one place to start.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:59:37+00:00Added an answer on June 13, 2026 at 11:59 pm

    Here’s an implementation with mahotas

    from pylab import imshow
    import numpy as np
    import mahotas
    wally = mahotas.imread('DepartmentStore.jpg')
    
    wfloat = wally.astype(float)
    r,g,b = wfloat.transpose((2,0,1))
    

    Split into red, green, and blue channels. It’s better to use floating point arithmetic below, so we convert at the top.

    w = wfloat.mean(2)
    

    w is the white channel.

    pattern = np.ones((24,16), float)
    for i in xrange(2):
        pattern[i::4] = -1
    

    Build up a pattern of +1,+1,-1,-1 on the vertical axis. This is wally’s shirt.

    v = mahotas.convolve(r-w, pattern)
    

    Convolve with red minus white. This will give a strong response where the shirt is.

    mask = (v == v.max())
    mask = mahotas.dilate(mask, np.ones((48,24)))
    

    Look for the maximum value and dilate it to make it visible. Now, we tone down the whole image, except the region or interest:

    wally -= .8*wally * ~mask[:,:,None]
    imshow(wally)
    

    And we get waldo!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new on Ruby on Rails. Now I want to use rvm; in this
Is there any free installer allow user to seamlessly install a software that could
According to this Mozilla article on Ogg media , media works more seamlessly in
A good friend recommended this site to me, it looks really useful! I'm a
I'd like to create a Python class decorator (*) that would be able to
I'm rewritting my Textarea Line Count plugin (<-- shameless plug), and have this question:
I've made a data access layer modeled shamelessly off of Castle Project's ActiveRecord implementation.
Working on existing code, I recently found smt like this: if(Config.ExceptionBehavior.DEBUG_EXCEPTIONS) { foo.Foo(); }
I recall seeing a paper a while back for an algorithm that could automatically
After shamelessly pilfering a code snippet from Tomas Petricek's Blog: http://tomasp.net/blog/csharp-fsharp-async-intro.aspx Specifically, this one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.