Face detection through skin colour
Show older comments
Hey, Could somebody please send me the code to detect skin in an image, and the value for skin should be taken using ginput. After that image is coverted into RGB and later on, using connected components(may be), find holes in each of connected component. And if there are 2 wholes, it is detected as a face. I need urgently. Thanks.
Answers (1)
Image Analyst
on 15 Dec 2011
0 votes
You'll need to convert your image into hsv space and carve out a banana or boomerang shaped 3D color gamut. Of you can check out my File Exchange for some color segmentation demos. None on skin color though because that is an unusual-shaped gamut. For holes (not "wholes") you'll need to ask regionprops for the Euler number.
Categories
Find more on Detect, Extract, and Match Features in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!