# Face-Recognition-Using-PCA **Repository Path**: liudaxiong/Face-Recognition-Using-PCA ## Basic Information - **Project Name**: Face-Recognition-Using-PCA - **Description**: Implemented Principal Components Analysis algorithm in MATLAB for face recognition. Compared two faces by projecting the images into Eigenface space and measure the Euclidean distance between them - **Primary Language**: Matlab - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-06-14 - **Last Updated**: 2022-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Face-Recognition-using-PCA Implemented Principal Components Analysis algorithm in MATLAB for face recognition. Compared two faces by projecting the images into Eigenface space and measure the Euclidean distance between them

Main.m

Run whole program by runing this script.

ReadFace.m

Construct 2D matrix from all of the 1D image vectors in the training data file

EigenfaceCore.m

Compute the covariance matrix. Use the "svd" function to compute the eigenvectors and eigenvalues of the covariance matrix. Set Threshold value whatever you like to picks eigenvalues.

Recognition.m

Project the selected test image and all of the training images into Eigenfaces space. Compare the Euclidean distances between them and find the index of image who gets minmum Euclidean distances.

Visualize_Eigenface.m

Show the maxmum nine pictures of Eigenfaces.

Result

Test Result 1

Test Result 1

Test Result 2

Test Result 2

Test Result 3

Test Result 3

Eigenfaces

Eigenfaces