File Exchange

image thumbnail

Face Recognition

version 1.0 (1.61 KB) by

Face recognition using eigenface system

3.85417
46 Ratings

186 Downloads

Updated

No License

This matlab code implements the face recognition system. It uses the AT&T database. You need to download the database before running the code. Instruction to download the database is in the comment section of the file.

Comments and Ratings (106)

KHOA TRAN

Step to put the images data in right place
1/ download the file "att_faces.tar" in the link http://www.cl.cam.ac.uk/Research/DTG/attarchive:pub/data/att_faces.tar.Z
2/ extract the file "att_faces.tar" with 7-zip to obtain folder "orl_faces"
3/ copy all of the subfolder s1, s2, ... into the same folder with the file.m
After that, you can run the file "face_recognition.m" and enjoy the magic.

i want to downlod dataset

proper way of loading the database:
first of all copy and paste the data base files ( S1 S2 and so on) to the directory where the (.m) files are saved.

Stephen Kairu

if you are experiencing this error:

Cannot CD to s1 (Name is nonexistent or not a directory).
Error in load_database (line 9)
cd(strcat('s',num2str(i)));
Error in face_recognition (line 13)
w=load_database()

make sure that you have changed the current folder on the matlab desktop to the location of the database. then try running the script again.

mustafa demir

HELP
Error in load_database (line 9)
cd(strcat('s',num2str(i)));
and how can ı load dathabase

beyler bunu yapabilen varsa açıklasın lütfen bu hatayı nasıl düzeltcez bilen varmı ??

Ranjan Kumar

..

Syed Irtaza

`whoever getting error like Cannot CD to s1 (Name is nonexistent or not a directory).
Error in load_database (line 9)
cd(strcat('s',num2str(i)));
Error in face_recognition (line 13)
w=load_database();

please see that you have downloaded the face database .... link is provided in comment section....

also save the rar file in the same directory as your code

and open the face database folder. and then run the code.

Ming Chen

very nice code

akshaya mano

Error using cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in load_database (line 9)
cd(strcat('s',num2str(i)));

Error in face_recognition (line 13)
w=load_database();
help with error

akshaya.m2015@vit.ac.in

solved this error but how can we modify for finding picture according to our choice?
someone help

Error using cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in load_database (line 9)
cd(strcat('s',num2str(i)));

Error in face_recognition (line 13)
w=load_database();
help with error
aggarwaltanvi18@gmail.com

SAMAN ANJUM


sir, I have the same problem
>> face_recognition
Error using cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in load_database (line 9)
cd(strcat('s',num2str(i)));
please help me:
samananjum08@gmail.com

Aidil Sufyan

Hi, I am working on a project similar to this, however I need to work with different colour spaces. Can this program work on other database that is not grayscale?

Bibin Prasad

copy all the folders ie,(from folder no. s1 to s40) and paste out of the database folder...it will works....

Fatima Ansari

please help me , how to attach database as i download it successfully but have error in loading database

John

John (view profile)

Link for database...
http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html.

For anyone experiencing 'nonexistent directory error'
Simply extract the database contents and move the folders (s1,...sn) in the folder 'att_faces\orl_faces' to the same directory as the .m files.

Sir How I can get the Database?

lai sky

sir i have the same problem
>> face_recognition
Error using cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in load_database (line 9)
cd(strcat('s',num2str(i)));

Error in face_recognition (line 13)
w=load_database();

Pham Hong Son

Dear sir. Can you show me how to launch this project in MATLAB, i've used ver 2009. Please give me the video tutorial .
MY skype : vn680260

Asdil Fibrizo

Zanib Khalid

Sir! I'm stuck with this error.Kindly help me out.

>> face_recognition
Error using cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in load_database (line 9)
cd(strcat('s',num2str(i)));

Error in face_recognition (line 13)
w=load_database();

Code is running perfectly.Now I had inserted 10 (*.pgm) image of my own face in the dataset and when i try to compare my image which is not on the dataset then it is matching with different person.
saifahmedkhan9@gmail.com

fariha abbasi

please specify the link to download database

I downloaded the database but still get the error for cd in load_database function. could you help me please?
hanishoja@yahoo.com

Nimmy Mathew

how to connect database.I have error.Please help me anyone >> Error using ==> cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in ==> load_database at 9
cd(strcat('s',num2str(i)));

mandy

mandy (view profile)

Hello sir,
This code works. I am so excited to get such good codes. Thanks alot for uploading.

hey thanks for the code, its a brilliant code but instead of random images can we manually select an image or capture an image through webcam using real time.. do reply asap.. Thanks a ton ......

i can't find the database plz help me
emeliokgb@gmail.com

vivek sonone

@pranali shinde and radhi :
facedataset= imageSet('test','recursive');
it create database directly on matlab 2015a

how to connect database.I have error.Please help me anyone >> Error using ==> cd
Cannot CD to s1 (Name is nonexistent or not a directory).

plz mail dandhanyafrancis@live.com

AT&T database download from website anyone can help how to import this database to matlab plz guide me

akram radhi

AT&T database download from website anyone can help how to import this database to matlab plz guide me

pooja kumari

sir,what is signature?
sir plz help me i hav to implement this code using live camera.

jak

jak (view profile)

database

sungchan kim

Haris Karahodza

'ri' is number of pictures.
you can modify "ri=round(400*rand(1,1));"
to "ri=x;"
x is integer and 1<x<400

Josh Kamps

umair ashraf

AT&T database download from website anyone can help how to import this database to matlab plz guide me

did anyone modified the code to select a picture instead of random

pooja kumari

it is nice code but, how can we relate this code in case of real time face recognisation via webcam.

how to connect database.I have error.Please help me anyone >> Error using ==> cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in ==> load_database at 9
cd(strcat('s',num2str(i)));

plz do reply me at ksnm515@gmail.com

ADITYA SINGH

Sir how to modify the code to select a picture instead of random??

very impressive

Shahzad Raza

Oluseun oyeleke
Try this one, sure it will help you.
http://www.mathworks.com/matlabcentral/fileexchange/48722-face-recognition-system

how to connect database.I have error.Please help me anyone >> Error using ==> cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in ==> load_database at 9
cd(strcat('s',num2str(i)));

Does anyone have the solution to modify the code to select a picture instead of random slection.? pls help!pls mail me at priyadharshini2023@gmail.com

Kevin

Kevin (view profile)

Sir how to modify the code to select a picture instead of random??

ecmel

ecmel (view profile)

GOOD JOB

greena modi

having a problem in code display

ANKUR

ANKUR (view profile)

Sir,please guide me to display the mean image ? pls help and reply .thanx

this is good one

Hou

Hou (view profile)

How could I get the database?Thanks so much

Sum ukh

where i have to modify the code if the size of images in database is 46*112

reply at anantsourabhpatil@gmail.com

alberto

m

Well done !!

Allan

Allan (view profile)

Is there anyway thta i can modify the code to pick the picture instead of random?? Can i use a gui with this code??
Some help with this thanks, my email is allanmcintron@yahoo.com.

Hussein

Useful,
well, i tried to make the system not to pick up randomly !! i made the necessary changes like to select an image, but it didnt work.. can you help me with that?

sir, i am doing final year project on face recognition based oned eigen values, we have the same program that is mentioned here, but it fails to detect the images properly, eg it matches my image with another image loade in database, can you suggest me, what should i do t remove this problem?

longan

longan (view profile)

thank u for your kindly sharing~

divya

divya (view profile)

hello
Thanx for d project.you have done a great job.i am also doing my thesis on sign language recognition. i have segmented the hand and done with fingertips detection and tracking.i want to do feature extraction using PCA(principal component analysis). please suggest me which features should i take to match signs and how to implement it.I shall be very thankful to you.

Mr Smart

how to connect database.I have error.Please help me anyone >> Error using ==> cd
Cannot CD to s1 (Name is nonexistent or not a directory).

Error in ==> load_database at 9
cd(strcat('s',num2str(i)));

Tarek

Tarek (view profile)

Excellent work, please tell me how can i cite this work

Mahmoud

Very Good, Thanks

hello,
it is not working in matlab 7.4 version there is some eroor when i run the database
??? Error using ==> imread at 315
File "1.pgm" does not exist.

Error in ==> load_database at 11
a=imread(strcat(num2str(j),'.pgm'));
and when run the main program
Error in ==> face_recognition at 13
w=load_database();
so please help me that how i can remove these problems.mail me at d.k.bharti.30@gmail.com
thank you

gyan prakash

gyan prakash

sir pls tell me how can i use my own set of jpge format images to the data ... my email id is gyan00048@gmail.com

pankaj

pankaj (view profile)

sir, kindly say me how to download the database...

arjun anil

sir,
i find that the pca algortihm fails to recognize accurately in very few cases..how can i improve on this aspect of pca algorithm

face detection from a datbase using matlab gui, CONTACT: dbedant2009@gmail.com

None ?

None ? (view profile)

very goog,,

prakash

could you please tell me how to run the code....i have downloaded the database....but whenever i run the functions it gives one error load_database can anyone tell me pls

raja

raja (view profile)

nice work sir...thanks

Vinil Pillai

i want to use live feed of video to matlab from a wireless camera for face recognition from a pre-set database .can any1 help me with this? my email is: neyo_napster@yahoo.com

could you please tell me how to run the code....i have downloaded the database....but whenever i run the functions it gives one error or the other

madan kumar

it works good

Hanaa

Hanaa (view profile)

Hi

How do you detect facial features using template matching?

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

arvind

arvind (view profile)

am new to matlab.... pl help me with the execution of the file....how to load the database.... how to update ..... pl do reply

daud daud

i cant running this program... y?
at load database.. i already dL database and paste at same file..

perfect!!1

vidya patil

prathamesh bhat

It's good!!!!

Nilesh Purohit

It is interesting.

Harpreet Singh

Had to make some changes to use my image database. Works nicely after that.

Ganesan Kaliyaperumal

interesting

Vaibhav Bedia

Works perfectly.Nicely commented

Francesco Maffessanti

Excellent code, very light and heavy commented! Useful

karel horak

You have to read description with attention! In source code (face_recognition.m) is described how to obtain image database (visit http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html). There's link to TAR (alternatively ZIP) file contain face images on the web.

sunil gella

sir, how can i download the database?

saeed mehdizadeh bakhshmand

qwe poi

Dear sir:
I hope you can set the code of face's detection and eye's detection made in matlab.Thank you very much.

Deepak Murugan

gud work..........
can i add some more datas...
so how could i get a pgm format for a normal image

monisha g

where can i download the database?thanx..

anmol dubey

phoenie tam

where can i download the database?thanx...

nadim kanaan

gurmeet hello

i need how to download the database and from where we can download the database

sheetu m

amazing.........

Chanakya Vyas

RAMDAS NAMBISAN

ITS A VERY GOOD CODE!!!!!!1

MATLAB Release
MATLAB 7.5 (R2007b)
Acknowledgements

Inspired: Face Detection & Recognition System

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

» Watch video

Win prizes and improve your MATLAB skills

Play today