Giter VIP home page Giter VIP logo

yumin-chen / where-is-wally Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 4.32 MB

A simple image processing object recognition example to find Wally in an image.

Home Page: http://chenyumin.com/p/template-matching-and-color-segmentation-in-image-processing-wheres-wally

License: MIT License

MATLAB 100.00%
image-processing object-detection object-recognition matlab template-matching color-segmentation

where-is-wally's Introduction

Where Is Wally -- Image Processing Object Recognition

Introduction

This repository is the source code for my blog post Template Matching and Color Segmentation in Image Processing: Where's Wally?. This script demonstrates using correlation matching and color segmentation to find desired object (Wally) in an image. This project aims to locate an object from an image.

  • Correlation Matching:
    This method loops through the image in an attempt to find the object template. For each location, the difference between the template and the neighborhood is calculated and recorded. The location with minimum difference is returned.

  • Color Segmentation: This method firstly converts the image to HSV color space and use the Hue and Saturation to segment the red and write stripes. Then a vertical linear structuring element is used to dilate the stripes and find their overlapped area so the result will be only connected red and white area.

Scenario

Wally (Wally.png) is lost at a Cosplay convention (Where.jpg). Find him.

  • Correlation matching would work well here for starters;

  • Challenge : Using this method on the full-size image (WhereLarge.jpg) is painfully slow. See if you can find Wally without using the template image but instead by recognising Wally and his stylish red and white T-shirt. (try colour segmentation then morphology here);

Results

Correlation Matching Color Segmentation
Correlation Matching Color Segmentation

Licensing

Please see the file named LICENSE.md.

Author

  • Chen Yumin

Contact

where-is-wally's People

Contributors

yumin-chen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.