
Face Recognition and Face Detection series in Python
- Detecting Faces with 20 lines in Python
- Face Recognition with 20 lines in Python
- Detecting Facial Features with 20 lines in Python
- Facial Features and Face Recognition with 20 lines in Python
- Performance improvements with code
- Resize the camera input with OpenCV
- Working with Haar Cascades and OpenCV
- Detect and blur faces 😁 using haar cascades
- Detect and blur faces 😁 using DNN
Hi!
Quick post today. I’ll pickup yesterday demo, showing the facial features and adding Face Recognition on top of that. In other words, we’ll move from this

To this

With a couple of extra lines for face recognition
There is some room for performance improvement, so I’ll focus on this in next posts.
The complete project is available here https://github.com/elbruno/Blog/tree/master/20190528%20Python%20FaceRecognition
Happy Coding!
Greetings @ Burlington
El Bruno
Resources
- Anaconda Distribution, https://www.anaconda.com/distribution/
- Visual Studio Code, https://code.visualstudio.com/
- Adam Geitgey, https://github.com/ageitgey/face_recognition
My Posts
I hate to break it to you Amigo, but this is closer to 40 lines 🤣🤣🤣.
Neat stuff, we should get this into all the inno studios. See you in Milan next week.
LikeLiked by 1 person
Hahaha, yes, the samples started with 20, and now … a little bigger 😀
See you next week in Milan! 😀
LikeLike
Hi Bruno,
I am a student who is currently doing facial recognition for my project. And I have followed your guide from this website https://elbruno.com/2019/05/30/vscode-lets-do-some-facerecognition-with-20-lines-in-python-4-n/ However, there was some issues with the accuracy of the face recognition. I was wondering if there is a way to add more image to the data base instead using only one picture to increase the dataset ? Below is an example of the code i used to retrieve the image. May i know how do i retrieve a set of image instead of a single image for better accuracy ?
JIMMY_image = face_recognition.load_image_file(r”/Users/jimmy/Desktop/Face/JIMMY/JIMMY.jpeg”)
LikeLike
Sure, Happy to help!
I haven’t write a sample for this, however Adrian Rosebrock has.
Take a look at his sample here and it may help > https://www.pyimagesearch.com/2018/06/11/how-to-build-a-custom-face-recognition-dataset/
Regards
LikeLike