Reputation: 127
I'm working with eigenfaces for a facial recognition program I am writing. I have a couple questions about how eigenfaces are actually generated:
Are they generated from a lot of pictures of different people, or a lot of pictures of the same person?
Do these people need to include the people you want to recognize? If not, then how would any type of comparison be made?
Is an eigenface determined for every image you provide, or do multiple pictures go towards creating one eigenface?
This is all about the generation or learning phase of the eigenfaces. Thanks for any help or pointing me in the right direction!
Upvotes: 3
Views: 1232
Reputation: 3852
I actually find the description for Eigenfaces on Wikipedia quite useful. To answer your questions:
Edit: Answering the question, that Kevin added in the comment to the question:
The idea behind using eigenfaces, is that you can express an image of a face by mixing eigenfaces together. Let's suppose you have three eigenfaces ef_1, ef_2, ef_3
and you have an image of a face f_1 = a_1 * ef_1 + a_2 * ef_2 + a_3 * ef_3
. The eigenfaces do not change, regardless which face you want to express with them, however, the coefficients a = (a_1, a_2, a_3)
are characteristic to the face. This is what you would use to compare two faces.
But in order to get to the stage where you can use eigenfaces, you first have to align (register) an observed face with the eigenfaces, which is not trivial and a completely different topic (see pxu's answer).
P.S.: I recommend, that you keep an eye on Area 51: Computer Vision, which is a Stack Overflow sister site about computer vision in the making.
Upvotes: 2
Reputation: 6675
Nota bene: you need very good registration of the faces. Eigenfaces is notoriously bad about translation/rotation invariance. Your results are likely to be terrible unless you register well. The original Turk and Pentland paper was groundbreaking not just because of the technique but for the scale and quality of data set they gathered which enabled said technique.
Upvotes: 1