Hand detection

Hi, I am new to kinect. I want to make something of this sort-
But using of_v0.8.0 and ofxKinect on my 64-bit Ubuntu machine.
I started with hand detection by making appropriate changes in this code : https://github.com/openframeworks/ofSite/blob/master/-documentation/addons/ofxOpenCv/ofxCvContourFinder.markdown
I am taking input from Kinect. This method is working fine, but not that good! Can you please suggest an alternative and also if you could tell me if I am heading in the right direction?


you dont need to look for a hand, you can do other ways:

  • using ofxkinect you can set an near and far treshold and look for something that cross this area and this will be a hand, later get the centroid of that blob and done

  • using ofxopenni you can use the “hand generator” to track hand position

look for a hand shape and finger position purely in opencv i thinnk that ist too much complicated and it force the user to have the palm oriented to the camera.

hope that helps

Thank you so much for replying! I think this is https://github.com/roymacdonald/ofxOpenNI/blob/master/src/ofxHandGenerator.cpp what you are talking about! I really can’t say much about ofxKinect as I have just run that point cloud example, I have installed all the necessary drivers and lib needed for openframeworks + libfreenect. But if you say that ofxopenni has better method to offer then I may switch to it! What should I do?

i dont want to say that one method is better than other. It depends a lot of what you want to do with that.

The most simple i think that it will be the ofxkinect method, you can search for ofxkinect examples that do that thing.

ok I’ll look for such examples! Your reply really helped me in having a clear idea of what to choose from. Thank you so much for helping me!