Friday, March 27th, 2009, 349 days ago

Hand detection using openCV

Looks like i am a computer vision researcher rather than a great interaction researcher on these days — Andol

In this post, as the progress goes, the hand detection technologies using openCV is introduced. As the pictures inllustrated below, this detection method is independent  with distance and background ( just not the background full of hands ), and the main segment method is color abstract which means getting the hand color pixels filtered. As the result tested within several environments, it workd well except slightly noise varying. But the noise is easy to take off.

The tested source code file is offered underneath the illustrations, feel free to use it.

handdetection

handdetection2

SOURCE FILE HERE:  handDetection.CPP

Posted in HCI, Research | Share on facebook twitter digg delicious

19 Responses to “Hand detection using openCV”

  1. Edwin says:

    Hello, I need your help on hand detection in OpenCV, I am quite poor at computer programing and I want to use this technique to control a robot eye. I have successfully managed to acquire and capture the image from my web cam and now need to move on to the next step. I was told i have to use the Haar libraries and the same concept of Face detection by my professors. What should i do? Thank you

    • Andol says:

      well, if haar is adopted to detect the hand’s gestures, the first thing you should do is to capture enough number of samples including positive and negative. Then you can train your application according to these samples you have gathered. for more details, it is possible to refer the machine learning part of openCV.

  2. Nguyen Van Bao says:

    great….
    i using EgmuCV, can you Hand detection using EgmuCV, my email:baonv2109@gmail.com
    thank !!

  3. Nguyen Van Bao says:

    great….
    i using EgmuCV, can you send me Hand detection using EmguCV, my email:baonv2109@gmail.com
    thank you!!

  4. Nguyen Van Bao says:

    great….
    i using EgmuCV, can you send me Hand detection using EmguCV code, my email:baonv2109@gmail.com
    thank you!!

  5. quarks says:

    hi i would like to control cursor movements by using hand so please help me to find coordinates of hand..please help me in this urgent

  6. quarks says:

    hi i need to get the coordinates of the hand while moving ….. please help me …its urgent

    • Andol says:

      first, detecting the hand, and then finding a centre of detected hand as a rectangle, and at last connecting the cursor to coordinates of the hand.

  7. quarks says:

    hi thanks for this i had done still but i dont know how to proceed again (ie) to detect the gesture and perform mouse clicks help me please

    • Andol says:

      once you segment clean hand contours, the next step would be detect the convexities by using a function in openCV called ‘CvConvexityDefect’ to get the hand’s features.

  8. Avesum says:

    how can i perform left click and right click by my finger using webcam in open CV library plz help..

  9. kabir hossain says:

    Hi, i got your code.This is working well but i want to find the hand location.I have used contour but still can not find hand location.can your help me?plz

  10. Namesake says:

    Hi Andol,
    After detecting the hand, Is there a way to connect the mouse pointer to coordinate(x,y)? I am using Ubuntu. What command should I use to do so?

  11. sobia says:

    hi Andol
    i have to control a robotic car by fingers i hv saw ur code.it working for hand exraction.nw i hve to count of fingers in a particular moment.plaese help me wat i do next..

Leave a Reply

You can use these XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>