/Face-Recognition-SVD

Facial Recognition Using Singular Value Decomposition

Primary LanguageJupyter Notebook

Facial Recognition System using Singular Value Decomposition (SVD)

Classifier Accuracy: 81%

Brief Summary:

  1. A matrix of test images and training images were obtained. alt text

  2. Both the matrices were normalized by subtracting the mean.
    alt text

  3. The training images were decomposed using the SVD into eigenfaces(eignevectors).
    alt text

  4. Adequate number of principle components(k) were determined amongst the largest eigenvalues.

  5. Each training image was then represented as a linear combination of the k-eigenfaces (eigenvectors).

  6. The testing images were then projected on the the eigenspace and the minimum distance of the testing image with a training image.

  7. The least distant image was recognized and compared with the correct label(f(x)).

  8. If h(x) = f(x), then a correct face was recognized.