"""
This project implements face recognition using the face_recognition library in Python and OpenCV. The goal is to identify known faces from a set of unknown images using pre-trained facial encodings.
- Identifies faces in images by comparing them with a set of known images.
- Draws bounding boxes around detected faces and labels them with the person's name.
- Uses
face_recognitionlibrary to compute face encodings and compare them. - Integrates OpenCV for image processing and displaying results.
- Python 3.x
- The following Python libraries must be installed:
face_recognitionopencv-pythonnumpy
You can install the dependencies using:
pip install face_recognition opencv-python numpy
# Project Structure
├── known/ # Folder containing images of known people
│ ├── elon.jpg # Example image for Elon Musk
│ ├── bill.jpg # Example image for Bill Gates
│ └── obama.jpg # Example image for Barack Obama
├── unknown/ # Folder containing images of unknown people
│ ├── 1.jpg
│ ├── 2.jpg
│ └── 3.jpg
├── face_recognition.py # Main Python script to run the face recognition
└── README.md # Project README file