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 ...

Get Machine Learning Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.