This script implements face recognition algorithm with memorization. When a person looks at the camera for the first time, he will not be recognized. The algorithm will create a series of photos of a person. Next time this person will be identified.
- Run
recognition.py
script. - If you want to train the model with other photos, add these photos to the 'data' directory and run
extract_embeddings.py
andtrain_model.py
(Preliminary remove '#' in the last line).
- OpenCV
- Pickle
- Imutils
- OpenFace (
models/openface_nn4.small2.v1.t7/
) — is a Python and Torch implementation of face recognition with deep neural networks - OpenCV’s Caffe-based deep learning face detector used to actually localize the faces in the images (
models/deploy.prototxt/
andmodels/res10_300x300_ssd_iter_140000.caffemodel/
)