Face Recognition using Principal Component Analysis - PCA using 5 photos for training and 1 image for testing for 9 individual persons.
- Prepare a face training dataset
- Compute the average face vector
- Subtract the average face vector from original images
- Calculate the covariance matrix
- Calculate the eigenvalues
- Select the top K of all
- Create features weight for training
- Read the testing face image
- Calculate the feature vector of the testing face
- Compute the Euclidean distance between the test feature vector and all the training feature vector
- Find the face class with minimum distance
The image when averaged will look like this:
All the images were verified correctly. The system successfully recognized the human faces and worked better in different conditions of face orientation.