Chanstk / FaceRecognition_MTCNN_FaceNet

A face recognition system based on facenet and mtcnn algorithm(pure c++ version)
31 stars 10 forks source link

Face recognition system

Introduction

This repository is a face recognition system. The face detection part is the implementation of MTCNN algorithm and the recognition part using tensorflow c++ api is the implementation of facenet algorithm.

Dependencies

  1. opencv3
  2. openblas
  3. tensorflow(C++ shared library)

    Usage(Demo)

  4. cd root_directory
  5. vim CMakeLists.txt
  6. change the path of tensorflow/opencv/openblas according to your machine
  7. Download the "Facenet model" and put it in the model/
  8. cmake . ( or cmake -DCMAKE_BUILD_TYPE = RELEASE . if you care about the speed performance)
  9. make
  10. ./main xxxx.jpg "yourname" (xxx.jpg must be a photo of your face)

    Inspiration

  11. Facenet part : the model file is taken from here
  12. MTCNN part : the code is taken from here