使用opencv的皮肤颜色检测 [英] Skin Color Detection using opencv

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

问题描述

如何使用OpenCV检测肤色

How to detect the colour of the skin using OpenCV?

使用OpenCV Haar面部检测器可以找到面部区域,然后获得平均或最常见的颜色在那个脸部区域,因为它应该是肤色?

What about using OpenCV Haar face detector to find a face region and then getting the average or most common color in that face region, since it should be the skin color?

更新:

环境:我的相框会有面部特征。 (只从头发到肩膀,附上)

Environment: My frames will have the facial features. (only From hair to shoulders, as attached)

推荐答案

你真的不需要HAAR检测。以下一定会工作...

you really don't need HAAR detection. the following will definitely work...

我的答案和类似问题涉及基于颜色的检测: http://stackoverflow.com/a/17375222/1463143

my answer for this and similar issues involving color based detection: http://stackoverflow.com/a/17375222/1463143

它最初的启发源自: http://stackoverflow.com/a/14756351/1463143

如果代码结束请尝试将 min_YCrCb 更改为(80,133,77)或使用该最小值进行游戏

if the codes end up detecting blond or brown hair along with the skin, try changing min_YCrCb to (80,133,77) or play around with that min value

这里是一个使用上述技术的视频展示皮肤检测

here is a video showcasing skin detection using above mentioned technique.

:)

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

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