Hand Detection Opencv

别来无恙 提交于 2019-12-04 08:45:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!