File Exchange

image thumbnail

FLD-based Face Recognition System

version 1.0 (180 KB) by

This package implements 'Fisherface', a FLD-based face recognition system.

4.33333
19 Ratings

73 Downloads

Updated

View License

This package implements a well-known FLD-based face recognition method, which is called 'Fisherface'.
All functions are easy to use, as they are heavy commented. Furthermore, a sample script and two small training and test databases are included to show their usage.

Comments and Ratings (30)

AMIT KASANA

Will

Will (view profile)

I tried not to apply PCA at first. However, it takes such a long time to run the training code.

Will

Will (view profile)

Based on what Jaime and other people said.

1.In line 43 of "FisherfaceCore.m".
Replace "for i = 1 : P-Class_number" with "for i = P : -1 : Class_number+1".
If the results is still bad, try to increase the number of part " Class_number+1 ".
For example. "for i = P : -1 : (P - Class_number)".

2.Multiply Sb by the number of images per class intraining set.
For example, Sb = Sb + class_number*(m(:,i)-m_PCA) * (m(:,i)-m_PCA)';

Thanks to Amir, Jamie and who contributed to the code.

Will

Will (view profile)

Bayu Pradinta

I used 20 images for training data, the accuracy was good but when I used more than that (ex.100) the accuracy was bad. anyone can help me ?
what the function of class pouplation ? when I change it, it will be error

PAVAN KOKANE

in which line sb should mutliplied by number pictures in class and is any preprocessing is required if i take pictures from camera continuously.
which preprocessing is better to get good efficiency.

beldi makrem

thank you for this code I just changed the code I find good results.
my problem is how to can generates confusion matrix for n class.

Dalvin

Dalvin (view profile)

Hi
i wanted to ask is there any pre-processing can be apply to the recognition to improve recognition rate?

Osama Ramadan

gamed fash5

Dani

Dani (view profile)

@Jaime
Thanks to you for your correctness in this cod in fisherfacecore.m file
its really effective for me.

Thanks and best regards.

fa ah

fa ah (view profile)

I AM USING 1-FACE IMAGE PER PERSON FOR TRAINING... CAN ANY ONE PLEASE GUIDE ME, HOW TO MODIFY THE CODE?

Jaime

Jaime (view profile)

Tsai, I forgot to mention that Sb should be multiplied by the number of pcitures per class (in this case 2), you are right on that too. Refer to section 2.4 of the following paper to note the error: http://www.face-rec.org/algorithms/LDA/belhumeur96eigenfaces.pdf

If you guys would like to look at another sample Matlab code for fisher faces, look at:

http://dailyburrito.com/projects/facerecog/FaceRecReport.html

Jaime

Jaime (view profile)

Jaime

Jaime (view profile)

Tsai there is a mistake indeed; the order of the eigenvectors is backwars, and you are using the eigenvectors with less relevance.

In line 43 of FisherfaceCore.m, you have to substitute line 43:

"for i = 1 : P-Class_number"

for

"for i = P:-1:Class_number+1"

This will solve the problem. I tested with all the faces in the sample set, and it was 90% accurate.

Everything has been working perfectly, thanks for an excellent and well commented code Amir!

Mr Smart

Lucas Chai

And the PCA, the eigen vectors selected should be corresponding to the largest eigen values but in the source code it is opposite,
my email is: chaizhh@gmail.com
expect to dicuss with u:)

Lucas Chai

Inthe Sb part, there should be a multipler 2, right?

Lucas Chai

Mike Gu

Thanks.

BTW, can I ask why in FisherfaceCore.m - under "Sorting and eliminating small eigenvalues" we don't need to fliplr "V" first since eigenvalues there are in ascending order? is it mean we eliminate large eigenvalues?

Kahn615 Y

Thanks

It simply works

Amir Omidvarnia

Amir Omidvarnia (view profile)

Dear friend! My code is only a prototype of FLD-based face recognition systems. In fact, this code implements the core algorithm for the system. So, you shouldn't expect it to work well on all datasets. Instead, you can customize it according to your needs and used facial images.

Works well for the toy example provided. Should have been more general.

chao shi

Thank you very much for your code.

Chao Wang

perfect except that there are two little problems in matlab 6.5

Dilip kumar

thanks a lot

Syed Adnan Ahmed

Thanks for your code
they are commented to the max level
keep up the good work

radha lak

good

kaveh Rad

Thank you for your Excellent and clearly Code

MATLAB Release
MATLAB 7.2 (R2006a)

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

» Watch video