O'Reilly logo

Machine Learning Solutions by Jalaj Thanaki

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Approaches for implementing face recognition

In this section, we will be implementing the FR application. We are using the face_recognition library. We have already configured the environment for that. We will be implementing the following approaches here:

  • The HOG-based approach
  • The CNN-based approach
  • Real-time face recognition

Now let's start coding!

Implementing the HOG-based approach

In this approach, we are using the HOG algorithm to find out two things: the total number of faces in the image, and the paces. We are using the API of the face_recgnition library. You can find the code by clicking on the following GitHub link: https://github.com/jalajthanaki/Face_recognition/blob/master/face_detection_example.py. The code snippet is provided in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required