Exact Skin color HSV range

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

    I know it is too late to reply to this. But I am doing the same, and I used K means clustering to get the skin color. That is first you have to Detect the face, which I am doing with the use of Haar cascade classifier, and then based on the coordinates of the face you can crop the face and then use it as the source to cluster the color. Find out the cluster that has the most elements and that will be your skin color. Or without specifying one particular value you can get the cluster center point and you can use it as a range by deducting and adding a particular value. This will be helpful http://answers.opencv.org/question/23196/k-mean-clustering-of-hsv-histogram-of-frames-of-a-video/

提交回复
热议问题