GithubHelp home page GithubHelp logo

geekquad / facial-recognition-with-pca Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 494 KB

Face Recognition Implementation using PCA, eigenfaces, and SVM

Jupyter Notebook 100.00%
pca eigenfaces svm-classifier sklearn gridsearchcv lfw-dataset face-recognition

facial-recognition-with-pca's Introduction

PCA

PCA is a systemized way to transform input features into principle components, then those principle components are used as new features. It is basiclly a mathematical technique used for dimensionality reduction.

Working:

PCA finds a new coordinate system that is obtained from the old one by translation and rotation only. and it moves the center of the coordinate sysetm with the centre of the data.

PCA is resolved as:

The amount of information we loose is equal to the distance between a given point(as it existed in the sort od 2D space) and its new spot in the line.

Documentation:

https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html


Facial Recognition using PCA:

One of the simplest and most effective PCA approaches used in face recognition systems is the so-called eigenface approach. This approach transforms faces into a small set of essential characteristics, eigenfaces, which are the main components of the initial set of learning images (training set). Recognition is done by projecting a new image in the eigenface subspace, after which the person is classified by comparing its position in eigenface space with the position of known individuals.

Evaluation:

Classification Report:

                precision    recall  f1-score   support

Ariel Sharon      0.60      0.69      0.64        13
Colin Powell      0.78      0.88      0.83        60
Donald Rumsfeld   0.73      0.70      0.72        27
George W Bush     0.91      0.88      0.90       146
Gerhard Schroeder 0.81      0.88      0.85        25
Hugo Chavez       0.73      0.53      0.62        15
Tony Blair        0.91      0.86      0.89        36

accuracy                              0.84       322
macro avg         0.78      0.78      0.78       322
weighted avg      0.84      0.84      0.84       322

Prediction:

(a) The most significant faces:

(b) Eigenfaces:

facial-recognition-with-pca's People

Contributors

geekquad avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.