4.34615

4.3 | 52 ratings Rate this file 251 Downloads (last 30 days) File Size: 2.04 MB File ID: #13716

Face & eye detection

by

 

Simple face and eye detection

| Watch this File

File Information
Description

You can use this codes for face detection based on color segmentation and eye region detection.

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (114)
17 Nov 2014 noura ghazzawi

very good

09 Sep 2014 KHUSHBU PANCHAL

Plz send me how to use this file on my mail id cognixance.khushbu@gmail.com

24 Jul 2014 CHI-YI

Hi Mustafa,

I tried this code with in Matlab R2013a. The command is findeye(30,'k','JPG',0.8)
But it says
Undefined function 'imcrop' for input arguments of type 'uint8'.

Error in findeye (line 14)
templateR=double(rgb2gray(imcrop(uint8(I))));

Could you please help me with that?
chiu013116@gmail.com

Thanks a lot,
Di

17 May 2014 Nguyen Kim Lanh  
24 Feb 2014 Priya Dharshini

im in need of software which is used to convert c++ to matlab code...plz someone suggest me.

13 Feb 2014 Rose

I dont knw hw to use this code. plz help.. email to auxiliarosefernando@gmail.com
Thanks sir. Also send iris recognition code.
Thanking very much.

29 Jan 2014 akhil p  
24 Jan 2014 RAJESH  
14 Jan 2014 fan shunli

thank for your idea

19 Dec 2013 emre

Mustafa Bey bu kodun videodan okuma işlemi yapan versiyonunu mail gönderebilme imkanınız var mı ? emreyuksel09@gmail.com
Şimdiden teşekkür ederim.

07 Dec 2013 REHENA SULTANA

5

28 Nov 2013 Parvathy

thank you for the code

21 Nov 2013 liam

can you email me the code please as i dont have M files on my computer.
Liam_lincoln@hotmail.co.uk

thank you

30 Oct 2013 Mhk Syd

Thanx 4 dis code sir.
Sir can u help me in face comparison for my project work........plz sir help me its really very urgent.

14 Sep 2013 Jaiminkumar chavda

can u mail me this code? My id is "pnehal64@gmail.com" ...thank u so much

29 Aug 2013 nien-jen  
20 Aug 2013 Key Tran

good

22 May 2013 Dillon

Hi Mustafa,

I tried this code with in Matlab R2013a. The command is findeye(30,'k','JPG',0.8)
But it says
Undefined function 'imcrop' for input arguments of type 'uint8'.

Error in findeye (line 14)
templateR=double(rgb2gray(imcrop(uint8(I))));

Could you please help me with that?
shuusaku1984@gmail.com

Thanks a lot,
Di

05 Mar 2013 Nishant Narayanan

Its a good code sir.Could u tell me what is the meaning of enhancement pupil isolation method?my email id is neonishant@gmail.com

13 Dec 2012 Hayat_Mohammad Niazi

plz sir let me know how to use the code,it will help me a lot in my final year project which is "Autonomous wheelchair", in which the wheelchair will move in the direction of eye motion detected by MATLAB
I shall be much thanked for

Regards,
Hayat Mohammad Niazi
sh_comsian@live.com

09 Nov 2012 nik  
05 Nov 2012 Pei Dong

nice code

16 Aug 2012 SEECS NUST  
03 Jun 2012 seja

Great code! I have noticed that the number of frames works up to 90, after that it starts giving me errors. Thank you for sharing.

28 May 2012 ten

it's a great sharing,thanks

02 May 2012 MOHAMED

i also tried this code with the way you have given << findeye(30,'k','JPG',.8);>>
but it says a error as follows.

??? Error: File: findeye.m Line: 1 Column: 18
Unexpected MATLAB expression.
Please help me You can send it to my email: mselim@uab.edu

21 Mar 2012 maryam sohail

hey...i have no idea hw to use this code...plz plz plz tell me abt it on my email....
maryamsohail22@gmail.com

11 Feb 2012 abhishek

can anyone u help me to detect face in video using color segmentation and template matching.I am working on it but not successful till now............

29 Jan 2012 C N N

eyematch2(I,.8,temp_Rgh,temp_Lft);
what should the value for temp_Rgh and temp_Lft be? I am not sure what the value shld be.. Need some help on it..

04 Jan 2012 nur izzati

hi.. May I get the code since currently I'm doing iris recognition too so maybe I will get valuable information from your code. Thank you so much <3 :)

23 Dec 2011 Susith D

i tried this code with the way you have given << findeye(30,'k','JPG',.8);>>
but it says a error as follows.

??? Error: File: findeye.m Line: 1 Column: 18
Unexpected MATLAB expression.

Pls someone help me....thanx in advance

15 Dec 2011 INDRANI GANESAN

hello sir. im doing my fyp. it will be very helpful if u could send me the codings for this product for me to refer. thank u.

18 Oct 2011 Tiju Mathew

Hi sir , send your codes to me as well. I was working with iris recognition too

29 Sep 2011 Suree yatho

Thanks
i want to know how you slected range of hue and Cb and Cr in skin.m too
prang_yta@hotmail.com

18 Sep 2011 mohsen gold

hello
i want to know how you slected range of hue and Cb and Cr in skin.m ???
thank you
zarrinengineer@yahoo.com

12 Sep 2011 Huy Nguyen Quang

Thanks for sharing!!!!

09 Sep 2011 nethaji anandhavalli

Awesome !!!!!!!!!!!!

16 Jul 2011 sam jadhav  
23 Jun 2011 Matthew Sherwood

I was wondering if this code worked well for thermal images (grayscale images 14-bit images converted to scaled 16-bit normalized images where the lowest pixel value becomes zero and the highest becomes 65535). Maybe I could convert the images to jet or some colored scaled. I am trying to find the eyes to auto-select control points based upon the position of the eyes and a single selection of the points.

08 May 2011 Jayanta

Only findeye.m & eyematch2.m are used..how to use eyematch.m , face.m & skin.m .....
please sir respond me.

06 Jan 2011 vipin vc

great work man but it seems too slow with webcam

15 Nov 2010 sirshar mehreen

hi u wrote amazing code.if it want to add video frames of avi format what must i do..kindly reply as early as possible

21 Oct 2010 Electron Ali

Sir , i m interested in Face detectioN of A particuLAr perSon, in a crowd.....

Example:.. i haVe daTa stored in my a Computer,,of a particular person or a grp...,,,.,.then my live camera detect a face frm a crowd ,who match with, a persons, in my list,,,

i get automatically its complete data and info,,.,.

i m electronic student,.plZ,.,help me,
u gUys help me tOO....
(electronx@ymail.com)

SALAM

17 Oct 2010 praveen sharma

' function ' is not opening in my matlab how can i use this code for eye finding

12 Oct 2010 gopalkrishna reddy

i am B.tech final year student i want take your code as my mini project can you please mail me how to use the code sir

mail id: gopalkrishnareddy2007@gmail.com

07 Sep 2010 Qiu dw

Thank you for sharing the codes.

02 Sep 2010 shaila garg

m making a proj on iris recognition... n m facing probs... so plzz send ur iris recognition code as soon as possible on
shailagarg23@yahoo.com
plzzzzzzzzzzzz send it asap

04 Aug 2010 Math Baba

Is this algorithm uses generalized hough transformations

17 Jun 2010 kaitao yang

I tried this code as the following steps mentioned by Richard Zhao :
1.copy the *.jpg in folder 'jpg' to same folder of 'findeye.m' and others.
2.use "findeye.m' to start.
eg.
findeye(100,'k','jpg',.8);
after i run the code, it shows the picture k001.jpg, but it shows nothing about face detection or eyetracking, then i double-click the picture, the command window shows "Please Crop The Right Eye Template" , some body please tell me how to test this code, whether i miss the inputs of function "eyematch2"-- templates for left and right eyes, and how to get these templates, my email-address is ykaitao_best@126.com, i am very appreciate if someone can help me.

16 Jun 2010 Rabab Alkasah

The code is good.. but i am facing the problem.. it is giving me the following error
??? Error using ==> imread at 315
File "k050.JPG" does not exist.

Error in ==> findeye at 12
I=imread(strcat(prefix,art,'.',fileformat));
plz reply me on

rabab_elghdi@yahoo.com

26 May 2010 ayesha anwar

this code is good.. but i am facing the problem.. it is giving me the following error
??? Error: File: findeye.m Line: 2 Column: 18
Unexpected MATLAB expression.

27 Mar 2010 dishant

i am working on a project that detects the position of the eyes on the face without any manual input. ur code requires that the user crop the eye region himself. can u plz give any suggestions on how to detect the eyes without any manual input from the user?plz reply my id is dishant06@gmail.com

04 Mar 2010 Ina

Hey! Please help to run Mustafa's Matlab program for iris detection. I know that the main code is findeye.m but i still have errors on line number 3.
Error in ==> findeye at 3
ort=round(NumberOfFrames);

Please, if someone knows , write me on email: inulea87@yahoo.com
I need this to explain at faculty, how it works... :(

25 Feb 2010 cunming ?

thank you!

19 Feb 2010 fatmA fatma

Error using ==> imread at 315
File "k015.JPG" does not exist.

Error in ==> findeye at 12
I=imread(strcat(prefix,art,'.',fileformat));

Error in ==> main at 31
findeye(30,'k','JPG',.8);

please add your main codes or send it to me by email: samira.sallam@yahoo.fr
can any one solve this problem...
thanks

25 Jan 2010 chang haiyan

hi,guys~ could you teach me how to write the main function? thank you very much!

20 Jan 2010 pavithra pandian

i dont know how to run this program please tell me.

17 Jan 2010 anu grover

Error using ==> imread at 329
File "k050.jpg" does not exist.
Error in ==> findeye at 12
I=imread(strcat(prefix,art,'.',fileformat));
How do I resolve this?

04 Dec 2009 Kai Tang

please add your iris recognition codes or send it to me by email: tangkai20@hotmail.com. Thanks a lot

18 Oct 2009 wilson

hi all,

how to crop an object from the image automatically by using matlab coding?
example: crop the eye from the face!
How am i going to do so?
anyone pls help me?

10 Oct 2009 Raymond Cheng

Thanks for your code.

27 Sep 2009 Loh

Hi all,

These codes are very useful. But this program is meant for RGB format only.
For gray scale format , how do we modify the programs?

26 Sep 2009 anand arasu

sir could you please give me an idea on how to detect the eyes given a single photo of the face, i require it as a part of my project work

05 Sep 2009 Tarun(TJ) Jhamnani

code is looking good but not yet able to experiment due to following problem:-
File "k050.jpg" does not exist.(for 100 frames)
Error in ==> findeye at 12
I=imread(strcat(prefix,art,'.',fileformat));

can any one solve this problem...

thanks

09 Jul 2009 Murali

I always get this error
??? Error using ==> imread at 329
File "k050.JPG" does not exist.

Error in ==> findeye at 12
I=imread(strcat(prefix,art,'.',fileformat));
plz help me out |-O

23 Jun 2009 wang feng

Hi,thank you very much!But i cannot still run the code .The question appears always"??? Error using ==> imread at 329
File "k050.jpg" does not exist.
Error in ==> findeye at 12
I=imread(strcat(prefix,art,'.',fileformat));
" .Please contact me by mail. mail:sysuwgf@gmail.com
Have a good time!Thanks!

19 Apr 2009 rania aziz

skin detection in video

19 Apr 2009 rania aziz

plz can you help me to run the code of eyematch cause i can't

13 Apr 2009 Hanaa

Hi

How do you detect facial features using template matching?

I'll be very grateful for your help. Thanks! :)

20 Mar 2009 martin dufii

Hi mustafa I have a problem with use video format, can you help me?

10 Mar 2009 S S

i am working on a project that detects the position of the eyes on the face without any manual input. ur code requires that the user crop the eye region himself. can u plz give any suggestions on how to detect the eyes without any manual input from the user? thanks

05 Mar 2009 Hanaa

Hi,

I'm doing my final year project on 'Image Processing Methods for facial recognition using Matlab'. I've got Visual Studio 2005 background but never used MatLab before. I've just started on with research, video tutorials and reading.

Can you please help me with a guide, where can I start this from? I just downloaded this file. Will it help to what I'm doing?

Will be waiting for your reply, your help would be very much appreciated! :))

Thanks, Hanaa

11 Feb 2009 abc dmello

plz mail me the exact details of how the code works like how skin gets detected and so forth.mail me at a.dmello@yahoo.co.in

11 Feb 2009 abc dmello

code is excellent thank u but plz mail me soon the exact working

01 Nov 2008 Fake Ghost

Adjeinfo:

"by using existing eye template so that i don t need to crop every

time"
can u tell me how do u do that pleeeeeeeeezzzzzzzzzzzzzzzz

27 Sep 2008 siti mohd zaid  
12 Sep 2008 Muharram Mansoorizadeh

Why don't you use matrix operations instead of loops ?

12 Sep 2008 Adjeiinfo oracle

Thank you
your program was very helpful. But i modified a bit (by using existing eye template so that i don t need to crop every time)
I would like to know how we could upgrade this program to 3D. thank you

11 Sep 2008 Ruchika Arora

i dont know how to run the file would you plz tell the procedure

23 Aug 2008 Stephen Fleming

hi...
we don't know how to run the program and we don't know where s the input given. can u please help us with it.pls send me the details regarding this.

20 Aug 2008 Arunrat Manapian

Thank you very.It's usefull for my project

26 Jun 2008 abdolreza hashemi

research

25 Jun 2008 Atul gupta

thank you for this project , i was in need for this

12 Jun 2008 youssef hamzi

thanck you for this project

29 May 2008 plodos sodolp

I didnt write the main function, there are only sub functions inside of the RAR file..I dont know how to call in the main function..Help pls :) I need main.m for eyematch...

27 May 2008 yoon tack

I don't understand how run this program Please contact me by mail.
have a good time

26 May 2008 yang pu

It is help for matlab study

24 May 2008 dang kien

I don't understand how run this program too. Please contact me by mail.Thanks.

22 May 2008 Richard Zhao

It is good, but slowly. It might be better to change some algorithems.
And Hi,Gianpaolo Schepis
Please
1.copy the *.jpg in folder 'jpg' to same folder of 'findeye.m' and others.
2.use "findeye.m' to start.
eg.
findeye(100,'k','jpg',.8);
note: it means from 1 to 100, with prefix'k', and format as 'jpg', threshold with 0.8.
note: 0.6 is poor, 0.8 is better, 0.9 may be nothing. you can change it and test more.

20 May 2008 Gianpaolo Schepis

Sorry, can someone help me? I don't understand how run this program. Please contact me by mail

09 May 2008 yousef hamzi

thanck you

23 Apr 2008 sahar mashaqbeh

i would like to take a free edition of MATLAB program

thank you

21 Jan 2008 santhiyaku jeevakumar

Dear sir,
thank you Your code was excellent. I need some information about skin.m file. How did you determine the threshold values for the HSV of the skin? If you provide this information ,it will be helpful for my facial image analysis study. So I request you to send the above mentioned information as soon as possible.

11 Dec 2007 Mohammad mustafa

hello Mustafa ,, thank u about that but if i ask u about acode which can detect the eyes (eye pixels) from singel photo ,and set other pixels to .. say black just the result image showing the eyes ? plz

23 Nov 2007 lolo lou  
05 Nov 2007 Alvin DLR  
05 Nov 2007 Abdul Raman  
05 Nov 2007 a s  
03 Nov 2007 J Pailma

This code was very useful for me, but my concern was on the color segmentation part. How did you determine the threshold values for the HSV of the skin? I want to know that so I can study more on color segmentation. You can email me for the info.

Thank you for your time.

28 Oct 2007 Fang Wenli  
11 Oct 2007 vishal wankhede  
07 Aug 2007 maraym vazifedoost  
22 Jun 2007 sahar marashi

good;but i don,t undrestand:
I=imread(strcat(prefix,art,'.',fileformat));
please send me how ican usees

31 May 2007 hendi maxiarta

good, but i don't understand matlab
do you have c++ code for face tracking
please send me on my e-mail
thanks alot.

|| h3n50me@yahoo.co.id ||

07 Apr 2007 vishal patel

dear sir, your code is extremely simple and easy to understand. but i have a small query. i need to find all yellow colored object from an image. how do i get the threshold for HSV and cr and cb that u used

03 Apr 2007 Fei Wang

Thanks for your kindness to share!

02 Mar 2007 Mustafa UÇAK

Exactly yes. I wanna write it with NN too. But nowadays i am working on pixel based change detection for multispectral satellite images.

02 Mar 2007 Avinash Pokhriyal

I'm pleased with the simplicity of the code. Do write some more efficient code that detects face using NN.

21 Feb 2007 Mustafa UÇAK

I forgot to add how to use this code. Sory for that.
Ok.
Main code is findeye.m

Example:
findeye(NumberOfFrames,prefix,fileformat,threshold);
*NumberOfFrames: How many frame would you like to show
*prefix: It means how is your image sequence begins like k001.jpg ; k002.jpg ....
*fileformat: 'jpg','bmp',etc.
*threshold: 0 to 1

Example:
findeye(30,'k','JPG',.8);

It is possible to read video formats. But i didn't add it here.

21 Feb 2007 Abid Khan

i dont know how to use ur code .plz help me

13 Feb 2007 Ruka David

ohhh!!!!!! it's amazing to use this code... i really feel worth .....

30 Jan 2007 minamino shuichi

hi
now i'm interesting in your code but i don't know how to use it.can give me more detail how to use it.
thx you so much.

27 Jan 2007 xiang wu

very good

23 Jan 2007 Mustafa UCAK

If someone improve my codes; please send me the details. I will add my iris recognition codes too.

Contact us