4.1 | 20 ratings Rate this file 111 Downloads (last 30 days) File Size: 2.03 KB File ID: #22496
image thumbnail

PCA based face recognition



19 Dec 2008 (Updated )

This code is PCA base face recognition programme.

| Watch this File

File Information

This code is PCA base face recognition programme. It reads nots(here 5) faces from ORL database and the rest (noc-nots) are used as test. PCA_Performance shows the recognition performance.
In order to be able to run this programme for ORL face database you need to download the face database. You can google it and it is for free.
This code has been written in Spring 2006 by me, Gholamreza Anbarjafari (Shahab). You can use this code for any research and academic purposes and you may refer to us in your acknowledgement!
Feel free to contact us for any further information:
 {hasan.demirel, shahab.jafari}@emu.edu.tr
  (c) Demirel and Anbarjafari -2013

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.5 (R2007b)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (23)
26 May 2014 Hau


Error using imread (line 350)
File "face4.bmp" does not exist.

Error in PCA_Face_Recognition (line 35)
Help me!

18 Mar 2014 saranya


When i run this code, i am getting the following error????

??? Error using ==> iptcheckmap at 34
Function IND2GRAY expected its second input argument, MAP, to be a valid colormap.
Valid colormaps must be nonempty, double, 2-D matrices with 3 columns.

Error in ==> ind2gray>parse_inputs at 79
iptcheckmap(varargin{2}, mfilename, 'MAP', 2);

Error in ==> ind2gray at 23
[a,cm] = parse_inputs(varargin{:});

Error in ==> PCA_Face_Recognition at 17

Comment only
31 Oct 2013 Gholamreza (Šahab) Anbarjafari

No you do not need to have equal number of images in both test and training set. Then you should also do slight modification on the code. If you notice the first loop is for training and the second is for the testing.

Comment only
31 Oct 2013 KARTHIK


1.Is it necessary to have equal no.of images both in testing and training dataset.

2.Where do we give the test image to recognize?

17 Jun 2013 Süleyman


16 Dec 2009 yu sam

yu sam

23 Apr 2009 Nikola


Very helpful

22 Apr 2009 Xu Wings

Xu Wings

15 Apr 2009 Mustafa


Good work

05 Apr 2009 Mathew Sermen

Mathew Sermen

This is a great work too

05 Apr 2009 Robin Torres

Robin Torres

05 Apr 2009 Xing Yu

Xing Yu

05 Apr 2009 alain boyer

alain boyer

05 Apr 2009 V. Poor

V. Poor

04 Apr 2009 Ziba


Thank you

03 Apr 2009 Ali


31 Mar 2009 Hal 9000

Hal 9000

poorly written

30 Mar 2009 Kemal


29 Mar 2009 Dimitri Shvorob

Dimitri Shvorob

Loop-heavy script by a Matlab novice, adding to a mountain of PCA face-recognition code samples already on FEX.

20 Mar 2009 Gholamreza (Šahab) Anbarjafari

Thanks Cadiz.

Comment only
20 Mar 2009 133131321313132 2321232323123231

very good

20 Mar 2009 133131321313132 2321232323123231  
15 Mar 2009 Xu Wings

Xu Wings

See the comment for the LDA code, good work.

08 Apr 2010


15 Nov 2013

The link for ORL face database has been removed and now new information about it has been provided.

04 Dec 2013

a YouTube link is provided

07 Oct 2014

A link has been removed.

Contact us