/SkinDetection

Skin detection using HSV & YCbCr color space (python using opencv)

Primary LanguagePython

SkinDetection

Skin detection using HSV & YCbCr color space (Python, OpenCV)

About the precedure of detection

The above entire procedure is applied to each and every pixel of the image.

The RGB image value is converted to HSV as well as YCbCr value, the HSV and YCbCr value of each pixel is compared to the standard values of a skin pixel and the decision is made whether the pixel is a skin pixel or not depending on whether the values lie in a range of predefined threshold values for each parameter.

The ranges for a skin pixel used in this algorithm are as follows:

    0<=H<=17 and 15<=S<=170 and 0<=V<=255

			and
			
    0<=Y<=255 and 135<=Cr<=180 and 85<=Cb<=135

Please cite this method as follow :

Djamila Dahmani, Mehdi Cheref, Slimane Larabi, Zero-sum game theory model for segmenting skin regions, Image and Vision Computing, Volume 99, 2020, 103925,ISSN 0262-8856, https://doi.org/10.1016/j.imavis.2020.103925.

Experimentation

We have tested the perfomence of this methode using images from two diffrent database :

HGR (Hand Gesture Recognition) Image Database

URL : http://sun.aei.polsl.pl/~mkawulok/gestures/

alt text

SFA (A Human Skin Image Database based on FERET and AR Facial Images) Image Database

URL : http://www.sel.eesc.usp.br/sfa/

alt text

In the following images you will see the skin detection results of each color space threshold, and the result of their association

alt text

alt text

alt text

In the following images you will see the skin detection results of this methode using images from two databases SFA and HGR

alt text