View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Skin Detection

2.8 | 10 ratings Rate this file 82 Downloads (last 30 days) File Size: 394 KB File ID: #28565 Version: 1.0

Skin Detection



Detects skin by producing a map of "skin-like" pixels within a given image.

| Watch this File

File Information

This file helps identify the presence of a human face, hand or any other body part by identifying and marking skin-like pixels within a given image. With further image processing techniques, the output produced by this script can be refined and processed to be fed into larger face detection and tracking, gesture recognition, and other HCI applications.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (18)
16 Dec 2016 Aj_ti

Aj_ti (view profile)

So basic. Have to set skin threshold manually for different skin color.

02 Oct 2016 annisa amalia

how to call function to be the run?
i get error in :
error('usage: generate_skinmap(filename)');

Error using generate_skinmap (line 19)
usage: generate_skinmap(filename)

Comment only
25 Sep 2016 Nazeer ahmed

Dear vishal these both are of same color as skin you can differentiate face and hand
1:Edge 2.size, 3.Shape representation.

Comment only
01 Aug 2016 Waheeb Yaqub

The skin detection algorithm performance is not that good, it only depends on detection of skin in single colorspace YCbCr.

23 Jun 2015 januar muhtadiin

working well...

but I wanna know how to reduce noise ?

24 Mar 2015 Y Simson

Y Simson (view profile)

01 Mar 2015 Vishal Kumar

this is a great work but just one question...
how do we differentiate between the hand and the face or anything for that matter...please reply fast...thanks in advance..!!

28 Jan 2013 Satya

Satya (view profile)

10 Jan 2013 Ashwin

Ashwin (view profile)

Works excellently

08 Mar 2012 prem preet

??? function [out bin] = generate_skinmap,C:\Users\prempreet\Desktop\major project\skin detection\nadal.jpg;
Error: Function definitions are not permitted at the prompt or in scripts.

how to remove this error .........
rply soon

Comment only
26 Jan 2012 kal

kal (view profile)

12 Mar 2011 rajesh sharma

08 Jan 2011 shekhar Raheja

what is the need of applying grayworlg algo?
why do we need illumination compensation?
without it also its workikng fine.

Comment only
08 Jan 2011 shekhar Raheja

its working now but with some change. instead of typical syntax as follows:

function [out bin] = generate_skinmap('E:\DSP\skin detection\skin detect from net\nadal.jpg')

it is working with this:

function [out bin] = generate_skinmap, 'E:\DSP\skin detection\skin detect from net\nadal.jpg';

plz suggest why it is happening like this? brackets have to be replaced with , and ;

Comment only
08 Jan 2011 shekhar Raheja

hello mr.gaurav,
i implemented your code n it is showing folloeing error:

??? Error: File: generate_skinmap.m Line: 1 Column: 39
Unexpected MATLAB expression.

and it says there is ),],} one of these missing....i hv chekd they r ok....please suggest what to do.....i have to implement it in my project.
thank you.

Comment only
10 Dec 2010 Sarada Moorthy

08 Oct 2010 Azlan

Azlan (view profile)

i changed the filename,
when i click evalute cell,nothingĂ­s happen.

what i'm doin wrong?
is there something i need to modify?

thanks in advance.

Comment only
02 Sep 2010 Gaurav Jain

Hello all,

I'd appreciate it if you can drop a line about the performance of this script for your images, and any cases that you might encounter under which the performance drops down steeply or vice versa.

Or any other functionality you'd like to see. Thanks!

Comment only

Contact us