Exact Skin color HSV range

后端 未结 8 658
独厮守ぢ
独厮守ぢ 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:58

    According to this : http://matmidia.org/sibgrapi2009/media/posters/59928.pdf

    The skin in channel H is characterized by values between 0 and 50, in the channel S from 0.23 to 0.68 for Asian and Caucasian ethnics.

    You'll have to take extra care with very dark parts of the image and probably discard them altogether, as the HSV conversion gets really noisy for small values of V.

    Depending on what your constraints are, you could also consider using a coloured glove (some colour that is not appearing normally in the scene), or setting a background of different colour than red, that is further away from skin colours (magenta, green, whatever).

    0 讨论(0)
  • 2021-02-02 03:58

    Deepgaze is a library with skin detecting in addition to other functionalities.

    DeepGaze Github

    He uses:

    [0, 58, 50] lower bound skin HSV
    [30, 255, 255] upper bound skin HSV
    

    He is quite responsive on Github so an option would be to contact him and ask how he came up with those numbers.

    0 讨论(0)
提交回复
热议问题