SkinDetection
Skin detection using HSV & YCbCr color space (python using opencv)
Install / Use
/learn @CHEREF-Mehdi/SkinDetectionREADME
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/

SFA (A Human Skin Image Database based on FERET and AR Facial Images) Image Database
URL : http://www.sel.eesc.usp.br/sfa/

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



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

Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
82.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
334.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
