Real Time Face Recognition by FaceNet
This application used the FaceNet library of @davidsandberg
to implement the real time face recognition on the your computer's camera. This implementation made several changes to face.py
and real_time_face_recognition.py
.
to adapt to this modification.
- Detect faces and their landmarks in video input stream by MTCNN.
- Align detected face images.
- Contruct embeddings for each of these face images.
- Construct an embedding database of people you want to recognise.
- Compare these face embeddings with your embedding database and find the matching person.
- Download the pre-trained model 20180402-114759 to folder
model_checkpoints/
- Make a folder of images of people you want to recognise (one person for each image) and name the images with respect to the corresponding people.
- Clone the repository to your local computer.
- Install the library and framework requirements and set up the
PYTHONPATH
variable to thesrc/
folder. - In
distributed/real_time_face_recognition.py
, provide the full path of the image folder you created earlider to variableimg_folder
- Run the python file with command
C:\...distributed> python real_time_face_recognition.py