Saturday, July 25th, 2009, 931 days ago

About the codes sharing

omm

Some posts with prototype codes are occasionally requested to share the relevant codes. Due to this, i make a code collection in this post which could be convenient for all the readers. But please note that some codes still need additional image files or haar files that you should pay attention to.

haarFaceDetect
If you can not download the source code file, please refer to below
http://www.andol.info/download/haarFaceDetect.cpp

This is a prototype designed to test face detection using haar training algrithms. Needs image with faces and relevant haar trained xml file.

hsv
If you can not download the sourse code file, please refer to here below
http://www.andol.info/download/hsv.cpp
This is a prototype designed to detect hands ( not hands gesture ) in the dynamic motion images from web-cam. It uses color in a specific range to detect the hands, and then filters all the noises out to get the biggest contours of hands. Several backgrounds are tested by this codes.

HoughCircle
If you can not download the source code file, please refer to here below:
http://www.andol.info/download/HoughCircle.cpp
Static circle objects in the image are quite simple to grab. However, when it comes to combining recognition containing squares and circles, i have to admit that squares are easier to detect.


15 Responses to “About the codes sharing”

  1. fireball says:

    hi,i am so happy to find your blog,there are so many code and method which are just what i want.Thank you for your sharing ! One problem is i conld not download the source code ,could you solve it or tell me why!Waiting for your reply

  2. fireball says:

    hi Li,there is a bug in houghcircle.cpp you release src which is not created.the code only impl. gray not the houghcircle.

    • Andol says:

      Oh, that is possible. Because there are hundreds of versions of that prototype, so probably i took the wrong version under debugging. Thanks for your reminding.

  3. lou says:

    hi,if I would like to detective a handclap, how could I know I had clapped or not?Which method should I use? looking forward to your reply.Thank you!

    • Andol says:

      Well, i think, you’d better find out some specific characters for hand clapping. Then you could through comparison to judge if that is clapping.

      • lou says:

        Thank you for your prompt reply and advice. In fact, I am a student and doing this Semester’s final project these days,and the theme is handclap detection with opencv. So, Can you please let me know what specific characters do you suggest that I should find?^_^

    • Andol says:

      @lou
      Due to my lack of understanding your project backgrounds, i am not able to point out which algorithms would be right. Generally, if you wanna detect the clapping motion and speed, you can adopt motion detection which is an official example of openCV. If you wanna detect the clapping gestures, there needs more work to analyze clapping contours.

      • lou says:

        刚刚看了你的个人档,原来是浙大毕业的,呵呵,你可以不跟我掰英文么?(;^^A 我大学也是在杭州读的。我跟我的搭档这两天一直在做拍手识别,很幸运找到了你的博客。我们当初的想法是“太鼓の達人”的画面+拍手识别。因为8月4号最后一节课,要有成果物。所以我们改了方案,只要一拍手,画面上就出现一朵玫瑰。老师说,这个东西他只要半个小时可以搞定。而我们已经花了好几天了。那我先理解一下你的程序,还有motiondetection。
        Thankyouverymuch!!

  4. Ghassem says:

    I couldn’t find the source code you wrote its article here:
    Hand gesture detection and recognition using openCV (http://www.andol.info/hci/895.htm)
    is it possible to give me the url of source code?

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>