Exact Skin color HSV range

后端 未结 8 666
独厮守ぢ
独厮守ぢ 2021-02-02 03:34

I have seen all questions on SO for range of HSV color space for skin
But I can only figure out this

Code -

CvScalar  hsv_min = cv         


        
8条回答
  •  清酒与你
    2021-02-02 03:42

    Basically, it's hard to have one fixed color range for skin, because even if you want to detect only your own skin, its color will actually change a lot depending on lighting conditions.

    So, maybe you can use the idea of this nice scientific article from 2011:

    http://www.robots.ox.ac.uk/~vgg/research/hands/

    Basically, they detect face (it's easy with oepncv). Then they extract the skin color of the face (which is very specific to the persons on the image). Then they detect skin using this color. Since the color is very specific, they should have much less false detection, than what you have with your fixed color range.

提交回复
热议问题