Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skin Detection

Detecting skin in images by using different color spaces.
This is an implementation of the paper down below:
https://www.atlantis-press.com/proceedings/iccasp-16/25871632

Here is the main part of the article in which the algorithm is explained.

paper algorithm

The algorithm described in the paper "Human Skin Detection Using RGB, HSV and YCbCr Color Models" involves a multi-step process for skin detection in images. The algorithm includes the following key steps:

  1. Conversion of ARGB values to HSV and YCbCr values using conversion factors and built-in functions.
  2. Comparison of the HSV, YCbCr, and ARGB values of each pixel with standard values of a skin pixel.
  3. Decision-making based on whether the values lie within predefined threshold ranges for each parameter in the different color spaces (HSV, YCbCr, and ARGB).

As there can be seen in the algorithm, there is an OR operation, by which the algorithm divides into two steps. So I decided to make two masks, one for the conditions stated before OR, and one for the conditions stated after OR; and at the end, the union of them is computed and this final mask is applied on the original image.

Additionaly, morthological operations and other noise removal methods have been applied in order to improve the quality of the masks.

sample result:
oprah

About

skin detection in python using OpenCV library, and RGB, HSV and YCbCr color spaces.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages