GithubHelp home page GithubHelp logo

face-biometry's Introduction

Face Biometry

Complete pipeline for face biometry

This project contains no novelty in terms of computer vision techniques, but it integrates all the face biometry steps.

  • Face detection and alignment is performed by MTCNN, with a choice of implementation from Tensorflow or MXNet. It runs in real time on both CPU and GPU.

  • Feature extraction is performed by ArcFace over Mobilenet on MXNet. The vector length is 128.

Other github projects made this possible:

  • From Facenet, commit 51fc8cb7880f07c766dc1cc46a6f4f619dc5626c, I got the Python/Tensorflow implementation of MTCNN.

  • From Insightface, commit be3f7b3e0e635b56d903d845640b048247c41c90, I took the feature extraction model. For a compromise between speed and accuracy, I employ ArcFace + Mobilenet.

  • From MXNet MTCNN Face Detection, commit b56065418b63a971fcf4f8f35d058513b0ce6cbf, I took the Python/MXNet implementation of MTCNN.

Requirements

This code requires the following packages:

  • mxnet
  • numpy
  • opencv-python
  • scikit-image
  • scikit-learn
  • tensorflow (optional)

Go to https://mxnet.apache.org/versions/master/install/index.html to find the adequate MXNet installation.

Tensorflow is optional, since detection defaults to MXNet. In my setup, I find that TF's implementation is a bit faster. It makes a difference if you don't have so much hardware available.

Running the demo

Create folder facerec/data/rec/ and insert face pictures to register people. The images should contain exactly one face and their names should be in the format below.

[person name]_[image number].[png|jpg|...].

Then run the demo script. Use -h to change parameters.

python3 demo.py

The base classes

For face detection, use the MTCNNDetector class, and for feature extraction use the Arcface class. For the complete pipeline, including detection, encoding and classification, use the FaceRecognition interface.

face-biometry's People

Contributors

thierrypin avatar

Stargazers

 avatar

Watchers

 avatar Joao Paulo Papa 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.