KLKKK
KLKKK
KLKKK
Usage
The src.py file contains the class EigenFaces, whose usage is given in
demo.py over the ATnT face dataset.
Requirements
python 3.7.0
opencv-python 3.4.2.16
opencv-contrib-python 3.4.2.16
numpy 1.15.2
scipy 1.1.0
sklearn 0.19.2
Idea
This paper tries to use the idea of Principal Component Analysis to
Methodology
Training
We next find the ‘mean-face’, i.e. the mean of all the vectors
as .
matrix , where,
After we get all of the , we drop the all but the top
equation,
We store the resulting weight vectors for each of the training
images.
Testing
the label that the argmin belonged to, is predicted the label of
Testing
We tested the class that we implemented by only letting the
algorithm learn 38 subject images in the dataset above. We then
tested the algorithm on a collection of all the 40 subjects in the
dataset.
differences in weights.
use case.
Results
We used the ATnT face data set to train our algorithm and then we
Accuracy_knownFaces: 0.7157894736842105 ,
We print the accuracies to the console and the main class that has been
Hyperparameters used:
K = 30 # dimension of face_space
ght vectors
pace
Top 3 eigenfaces:
Conclusions
Setting the hyperparameter of threshold te to a big value
ensures that we get good recognition when the faces are known
face.
Accuracy_nonFaces: 1.0 .
Reference
F. Samaria and A. Harter
identification”
http://www.vision.jhu.edu/teaching/vision08/Handouts/case_study_pca1
http://www.face-rec.org/algorithms/pca/jcn.pdf