This repository contains code and resources for performing face recognition tasks using various algorithms and models.
- Face detection: Detecting faces in images or video streams.
- Face alignment: Aligning faces to a standardized pose for accurate recognition.
- Face recognition: Recognizing and identifying individuals based on their faces.
-
Clone the repository:
git https://github.com/Rayhchs/Face-recognition.git cd Face-recognition
-
Download rest libraries
-
sqlite3
sudo apt install sqlite3 sudo apt install libsqlite3-dev
-
yaml-cpp
see https://github.com/jbeder/yaml-cpp for more
make create_folder
make
./main
- press 'r' to register a face
- press 'i' to identify a face from database
- press 'q' to quit
- Detection model, ./models/Det.tflite is Blazeface which is converted from pretrain model of blazeface.
- Recognition model, ./models/Rec.tflite is MobileFaceNet converted from pretrain model of FaceX-zoo.
Recognition model can be changed to any kind of tflite model. However, Detection model cannot.
Code and model heavily borrows from zineos_blazeface and FaceX-zoo. Thanks for the excellent work!