Face Recognition

This tutorial is base on the face-recognition library.

Required python packages

Please install the following python packages before you begin,

  • face-recognition
pip install face-recognition

Find faces

Code: download

  1. Let us first load the image using load_image_file
  1. After importing the image, let us pass this to face_locations. This funtion returns a bounding box around the faces in the image.
  1. Next, let us draw the bounding box in the image. For simplicity, we assume there is only one face in the image.
  1. Let us visualise the final output.

Nungu © 2023.