问题
I am trying to detect hand using OpenCV and C++.
I am able to find the contour of the hand (Positive image) with person hand present in the image. Basically I am finding largest contour and consider it as hand contour. Lets say in the given image the hand is not present then I will take any contour and consider it as the hand.
So I started thinking can I use the haar cascade to determine the rectangle of the hand and focus on that area, but I tried searching online for the xml but I think it is not available like face detection.
So given a image how can I determine from the set of contour which one is of hand?
回答1:
You can find the best trained cascade xml file from the GitHub...
Here it is...
https://github.com/Aravindlivewire/Opencv/blob/master/haarcascade/aGest.xml
来源:https://stackoverflow.com/questions/25542344/hand-detection-opencv