手检测Opencv [英] Hand Detection Opencv

查看:89
本文介绍了手检测Opencv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用OpenCV和C ++来检测手.

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.

因此,我开始考虑可以使用haar级联来确定手的矩形并专注于该区域,但是我尝试在线搜索xml,但我认为它无法像人脸检测那样使用.

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?

推荐答案

您可以从GitHub找到训练有素的级联xml文件...

You can find the best trained cascade xml file from the GitHub...

这是...

https://github.com/Aravindlivewire/Opencv/blob/master/haarcascade/aGest.xml

这篇关于手检测Opencv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆