web cam image recognition

Posted on 2007-08-08
Last Modified: 2013-11-08
I want to write a program that will have my web cam be able to interpret how many fingers I am holding up in front of it.  Any ideas where I would start?
Question by:kevinvw1
    LVL 3

    Accepted Solution

    Most likely what you will want to do is discard as much useless information from the image as possible. I think an edge-detection algorithm would be a good first step, reducing it from a complex color image to something that resembles simple shapes (like fingers) in a bitmap:

    Of course, there are many edge detection algorithms and there is still active research in developing better ones, so find one that works best for you.

    Once you've found the edges, the next step would be to pattern match the shape of a finger somewhere in the image. You could do that by having a prototype bitmap for the expected edges a finger would form and then doing an alignment to the edges found from your original image.

    Once again, image alignment is an area of active research and there are a number of algorithms to do it. I can't find a readily available web resource for it, unfortunately, and it really is a lot more complicated than can be described, here.
    LVL 3

    Assisted Solution

    RoboRealm is a great environment to work on developing computer vision systems.

    To get started, I would just play around with different filters using some test images.  There is no doubt that this will be a challenging undertaking, so I wish you luck!

    Assisted Solution


    Considered using a simple neural network? They're relatively easy to implement, I would use VB.NET or C#. The concept is the same for any programming language, however.

    To implement this there are a number of approaches you could take.

    1. First, you'd need to capture the web cam image into your application.
    2. You'd want to 'normalise' it. I.E., you need some code to ensure that every image the cam captures is rotated the same way around, and resized to roughly the same proportions. I.E. Loading the image into a grid, of say 16 x 16 squares.
    3. You then train your neural network to identify what a finger looks like. There is a ton of stuff you can read up on about neural nets. They're fun to play with and should get the job done for you.

    Good luck!

    Author Comment

    Thanks for all the tips!
    LVL 3

    Expert Comment

    No problem.  Good luck!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Article by: Nadia
    Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
    It started not too long ago. It was at first annoying. My keystrokes seemed to be randomly generated, not the ones I typed on the keyboard. For some reason this only happened in certain applications (especially browsers such as IE11, Firefox and Chr…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now