OpenCV detect hand and comparison images

asked 2015-03-13 09:21:08 -0600

lukassz gravatar image

Purpose of my application is to take a photo hand (gesture) and comparing it with a picture that is in the database. The first option I was use is background subtraction on images:

http://docs.opencv.org/trunk/doc/tuto....

The solution works, but sometimes, depending on the first picture is not properly cut hand.

The second option is to detect skin color: http://bytefish.de/blog/opencv/skin_c...

Or is it better to use a hand detection based on xml files? To compare the images I wanted to use this method:http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.html

Let me remind you that I'm talking about comparing the images to which they are gestures. I also read about the possibility of making the histogram is not the entire image only on the subject of the photo and then the data is more reliable, but do not know how to do it.

edit retag flag offensive close merge delete

Comments

1

histogram comparison probably won't help you.

combine bg-subtraction and skin-segmentation, apply findContours(), normalize your contours, and apply matchShapes() on those.

berak gravatar imageberak ( 2015-03-14 04:29:33 -0600 )edit

Thank for comment. Skin color detection does not always work. better to cut out the background so I think.

lukassz gravatar imagelukassz ( 2015-03-21 11:55:09 -0600 )edit