Detect skin tone from an image

后端 未结 3 1705
渐次进展
渐次进展 2021-02-14 21:19

I am trying to develop an application which will detect the color of the face once an image is provided. I was able to find out the face detection algorithm from OpenCV and inte

3条回答
  •  一生所求
    2021-02-14 21:45

    The histogram represents the amount of pixels of a given color which are in the image.

    For example, lets say you have this 3x3 image:

    3 4 3 1 1 1 2 2 1

    The histogram would be: count: 4 2 2 1 color: 1 2 3 4

    from this you would have that the color which is found most is the color 1. It probably also would make sense to sum up very similar color.

    For example use count(2) = sum(hist(1), hist(2), hist(3)); (being hist the number of pixels in that color)

提交回复
热议问题