An facial recognition app
A gui implemenation of face recognition app.
The app is created using Python's Kivy.
based on @ageitgey face recognition:
https://github.com/ageitgey/face_recognition
Also, Take a look at Adam ageitgey's medium brilliant article for further insight link:https://medium.com/@ageitgey/machine-learning-is-fun-part-4-modern-face-recognition-with-deep-learning-c3cffc121d78
video sample:https://www.youtube.com/watch?v=Hjg55_fqiiI
- Tensorflow == 1.12
- Dlib == 19.8.1
- sklearn == 0.20.2
- kivy == 1.10.1
- openface
- OpenCv == 4.0.0
- sqlite3
- numpy
- Download dlib shape predictor dat file and place it in impstuff folder
- Download facenet pretrained model and place it in impstuff folder link:https://github.com/davidsandberg/facenet
git clone this repo and download dlib's shape predictor and facenet model and then open 'godseye.py'and change directory path and run.
Enter details and hit 'submit' and then'start face capture'
If you have video of the profile, choose 'Video initiate' else choose webcam.
Webcam takes your images for training.
- Add profile option allow users to add profiles which get stored in sqlite database
- Start Face capture is responsible for taking images either from webcam or video.
- These images get stored in ./images/profile
- 'Initiate training' takes all the images of all profiles and get their 128 face embeddings using facenet pre-trained model and classifies them using SVM and saves .pkl file of the svm model.
- During prediction i.e. "Initiate Face Recognition" , it loads svm model and predicts the current face detected among the given profiles.
- Dlib is used face detection and calculating facial landmards while openface is responsibile for aligning the face to the centre.