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
- Let us first load the image using
load_image_file
- After importing the image, let us pass this to
face_locations
. This funtion returns a bounding box around the faces in the image.
- Next, let us draw the bounding box in the image. For simplicity, we assume there is only one face in the image.
- Let us visualise the final output.
Nungu © 2023.