Skin Color Detection using opencv

别等时光非礼了梦想. 提交于 2019-12-03 15:15:11

问题


How to detect the colour of the skin using OpenCV?

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?

Update:

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


回答1:


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

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

what it was originally inspired from: https://stackoverflow.com/a/14756351/1463143

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.

:)



来源:https://stackoverflow.com/questions/17363022/skin-color-detection-using-opencv

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