I’m sure when I mention this all of us will agree that face recognition is a fascinating technology and at one point we all asked “How does it know that’s me?” or “How does this work?”
Doing a simple Google search does not help much cause I will be honest, I have been there. I tried to understand the concept of how this works. The math behind this is enough to discourage a person to not dig deeper. Also, learning about Machine Learning, Neural Networks and all those technologies can be really frustrating for a beginner. I mean, I’m sure everyone read about “training models using 100 of different photos of the same person” for a computer to detect and recognize someone. Who would even want to go through all that hassle?
[[For source code scroll to the bottom]]
Luckily, I found a very easy way to detect face and even recognize it. Python is your answer! This is not a complete beginners tutorial. I will assume everyone already has Python installed and a working compiler for it. Let’s start!
The first thing is to import these three libraries — face_recognition, cv2 and numpy.