informramiz / opencv-face-recognition-python

Face Recognition using OpenCV and Python.
MIT License
517 stars 351 forks source link

Want to know more about the teory #18

Open yekosebayang opened 6 years ago

yekosebayang commented 6 years ago

hi, thankyou, its really easy to understand your explaination about the theory of LBPH, but how about the classification, what theory that openCV use, can you explain that to? or do you have any reference that explaining the classification? Thankyou very much

AyushTejwani commented 6 years ago

The eigenfaces lbph and fisherfaces work on PCA method which is based on machine learning. What it does is it takes the average of the all the pics you add to database of a person and brings out an mean image(stored in face in the program) now it calculates the difference between the input new image and mean(stored in confidence in the program) so if the difference is below 200 it recognizes the person.

yekosebayang commented 6 years ago

now im confused, at this link he says that it use KNN with euclidian distance... are those the same? https://towardsdatascience.com/face-recognition-how-lbph-works-90ec258c3d6b

AyushTejwani commented 6 years ago

I am not sure if they are completely same but they are similar though.. Here is ths link for PCA https://googleweblight.com/i?u=https://en.m.wikipedia.org/wiki/Principal_component_analysis&hl=en-IN