GithubHelp home page GithubHelp logo

sds-dubois / face-recognition Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 2.0 626.02 MB

C++ software to classify faces in pictures

C++ 98.26% C 0.01% Python 1.64% R 0.01% CMake 0.07%
machine-learning face-recognition

face-recognition's Introduction

Face Recognition (INF552 Project)

This project aims at recognizing faces on pictures, by focusing on computer vision techniques and using simple machine learning tools.

C++ code using OpenCv & Boost. Please read the report for more details.
You can also read the article here to get an overview of the project.


The challenges tackled are :

  • extracting features from the image
  • representing these features in a vector space
  • building and managing classifiers

Different methods are implemented to extract useful features from the pictures. In particular, one of our successful methods is to detect some key zones in the picture (like the face /eyes/mouth/ nose) and then compute SIFT descriptors on these particular zones.
Classification is done with multi-class SVM.


Best methods are implemented in the file featureDetection.cpp. One should first run featureExtraction to extract features on training and test images (this has already been done for 3 people of the Yale Face DB, see in data/yale_face_db). Then one can build classifiers and see prediction results using different methods (classifyAndPredict, classifyAndPredictSingleDescriptor or clusteringClassifyAndPredict). Many comments are written in header files to explain how to use these functions and what are their differences.

A Bag-of-Words method is also implemented in BOWmethod.cpp but the other ones are much better.


Functions to run only in debug mode :

  • classifyAndPredict (still fast)
  • classifyAndPredictSingleDescriptor (still fast)
  • createBowClassifier (very slow)
  • computeBowTestDesciptors

Directory Structure :

  • allFeatures ..............................The features extracted on images are stored here
  • classifiers................................................................The classifiers are stored here
  • data/database.........................The images on which to train and test the program
  • dictionnary...............The dictionnaries for Bag-of-Words methods are stored here
  • lib.........................................Some libraries for OpenCv (HaarCascade classifiers)
  • stats...Some statistics on the position and size of eyes, nose, and mouth in a face
  • viz........................Some Python script to display the features extracted on images

face-recognition's People

Contributors

alexandresablayrolles avatar sds-dubois avatar

Stargazers

 avatar  avatar

Watchers

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