Giter VIP home page Giter VIP logo

facerecognitionlib's Introduction

Face Recognition Library

Developed by Kristian Lauszus, 2016

The code is released under the GNU General Public License.


This library can be used in order to calculate Eigenfaces and Fisherfaces in C++.

This Eigenfaces are calculated efficiently as described in the paper by M. Turk and A. Pentland.

The Eigenfaces.m Matlab script was used for development and was then ported to C++.

If you want to convert the PGM image run the convert_pgm.sh script.

Documentation

Some information can be found in the Eigenfaces_Report.pdf.

The final project report describing Fisherfaces and the Android application is available as well.

A short blog post can be found at the following link: http://blog.tkjelectronics.dk/2017/07/face-recognition-using-eigenfaces-and-fisherfaces.

The source is documentated using Doxygen. The documentation can be found at the following link: http://lauszus.github.io/FaceRecognitionLib.

AT&T Facedatabase

When using the code with the AT&T Facedatabase the output looks like this:

Eigenfaces:

Fisherfaces:

Notice how the Eigenfaces is only slightly worse compared to Fisherfaces.

Yale Face Database

However when using the Yale Face Database the difference is significant:

Eigenfaces:

Fisherfaces:

This clearly shows the weakness of Eigenfaces, as it only maximizes the scatter between classes and thus end up matching all images with light coming from the left side.

Note you need to prepare the Yale Face Database by running the convert_yalefaces.sh script first.

Android application

This library was used for an Android application. Some screenshots can be seen below:

Build instructions

In order to build the C++ code and run the script you need to install Eigen3 and ImageMagick:

Mac:

brew install eigen imagemagick

Ubuntu:

sudo apt-get install libeigen3-dev imagemagick

The RedSVD library is included as a submodule.

For more information send me an email at [email protected].

facerecognitionlib's People

Contributors

lauszus avatar

Watchers

James Cloos avatar  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.