File Exchange

image thumbnail

Face Recognition System

version (585 KB) by Shahzad Raza
Please change the Trainpath & Testpath according to your matlab location.


Updated 11 Dec 2014

View License

Face recognition System using eigen faces,includes database also.Note:only given database will run,If you want to change the pictures then first change the dimension of the picture according to the pictures in given database.

Cite As

Shahzad Raza (2021). Face Recognition System (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Rohini Sharma

Muhammad Ahmad

moaaz alaa

thanks man
god send you to save me


Hello sir,

The code is so good. Thanks for uploading it.
Thank you.

Manoj Kumar

hello sir upon execution of this code iam getting an error at Difference = double(InImage)-m; displaying Matrix dimensions must agree and also at ProjectedTestImage = projmatrix'*Difference. so pls help me to correct these errors

Robin Jose K

Nice program with complete comments.
why does this pgm does not work for other databases??

Ejaz Ul Haq

Salam Brother..
i am Ejaz from KPK,currently in China doing Master...i need your help regarding PCA...i want to talk skype is "ejaz4616"...facebook id is ""...

mateo coronel

great system, i have only one question, it is posible to know if for a input image, the system can see if there is a coincidence or not, i mean if I input a image and if there isnt a coincidence the system can give an error or something? thanks for your reply.

Shahzad Raza

Mr. Ibrahim If you want to change the train according to your new algo, just change the trainpath according to your directory.


this file is very good but if i want apply this training about my database and use a new algorithm
what i do to run with new algorithm?

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!