Code covered by the BSD License  

Highlights from
Skin Detection

3.0 | 5 ratings Rate this file 59 Downloads (last 30 days) File Size: 394 KB File ID: #28565

Skin Detection


Gaurav Jain


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 (11)
28 Jan 2013 Satya


10 Jan 2013 Ashwin


Works excellently

08 Mar 2012 prem preet

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


12 Mar 2011 rajesh sharma

rajesh sharma

08 Jan 2011 shekhar Raheja

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

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

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

Sarada Moorthy

08 Oct 2010 Azlan


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

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