View License

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

» Watch video

Highlights from
PCA based face recognition

4.1 | 21 ratings Rate this file 30 Downloads (last 30 days) File Size: 2.03 KB File ID: #22496 Version: 1.13
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}
  (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 (26)
28 Jul 2016 Xinhua

Xinhua (view profile)

it doesnt work

Comment only
02 Jun 2015 john

john (view profile)

the frame is helpful though the algorithm is a little uncomfortable.The accurary is 74% using the ORL database,which is low in some situation.How can we improve the accurary?

07 Apr 2015 Amit Kumar

How to employ 2D PCA for face recognition? suggest some text to refer this problem

Comment only
26 May 2014 Hau

Hau (view profile)

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 (Shahab) 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 (view profile)

23 Apr 2009 Nikola

Nikola (view profile)

Very helpful

22 Apr 2009 Xu Wings

15 Apr 2009 Mustafa

Good work

05 Apr 2009 Mathew Sermen

This is a great work too

05 Apr 2009 Robin Torres

05 Apr 2009 Xing Yu

05 Apr 2009 alain boyer

05 Apr 2009 V. Poor

04 Apr 2009 Ziba

Ziba (view profile)

Thank you

03 Apr 2009 Ali

Ali (view profile)

31 Mar 2009 Hal 9000

poorly written

30 Mar 2009 Kemal

Kemal (view profile)

29 Mar 2009 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 (Shahab) Anbarjafari

Thanks Cadiz.

Comment only
20 Mar 2009 133131321313132 2321232323123231

very good

20 Mar 2009 133131321313132 2321232323123231

15 Mar 2009 Xu Wings

See the comment for the LDA code, good work.

08 Apr 2010 1.9


15 Nov 2013 1.11

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

04 Dec 2013 1.12

a YouTube link is provided

07 Oct 2014 1.13

A link has been removed.

Contact us