Skip to content

A Pure Python Face Recognition System based on MTCNN and ArcFace.

License

Notifications You must be signed in to change notification settings

huangh12/py_face_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A pure python face recognition system

Introduction

This repo contructs a simple face recognition system based on the famous MTCNN and ArcFace model. The system consists of two parts, i.e., a database management interface and a real-time face recognition program.

Dependencies

  • Python 3.6+
  • TensorFlow 1.12.0 (TF 1.x or TF 2.x should also works)
  • PyQt5==5.9.2
  • scikit-image==0.16.2
  • opencv-python

Get started

Clone the project

git clone https://github.com/huangh12/py_face_recognition.git

Add your face to database

Simply run

python create_database.py

It will open a graphical interface. Try to add your target face into database as follows

Open the camera

step0

Enable face detection

step1

Capture the frame when you feel the face quality is fine. Also, you can release the frame and re-capture until the desired frame is obtained.

Enter the information according to the detection results and import to database finally.

step2

Run the face recognition program

Simply run

python run.py

It will open your webcam and execute real-time face recognition. Let's take the other Stephen Curry image for testing.

BINGO!

step4

End

Have fun with the project, and please star it if you like it.
Thank you.

About

A Pure Python Face Recognition System based on MTCNN and ArcFace.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published