Real-Time Face Recognition System

Computer Vision & Deep Learning Project

This project implements a real-time face recognition system using computer vision and deep learning techniques. The application identifies individuals based on a small dataset of three images and performs live video processing using a webcam. The purpose is to demonstrate the fundamentals of face recognition using pre-encoded face images.

Project Features

Technical Details

How It Works

  1. Image Preprocessing: The system reads the known images, extracts facial features, and encodes them into numerical vectors. For this project, the dataset consists of the following images:
    • My Image
    • Lionel Messi’s Image
    • Cristiano Ronaldo’s Image

    These encodings serve as a reference for recognizing faces in the webcam feed.

  2. Real-Time Face Detection: The application captures video frames from the webcam and scales them down to speed up processing. It converts the frames to RGB format for the face recognition library.

  3. Face Recognition: For each frame:
    • Face Locations are detected.
    • Face Encodings are generated for the detected faces.
    • The system compares the detected face encodings with the known encodings and calculates the distance.
    • If a match is found (i.e., the distance is below a defined threshold), it displays the person’s name (e.g., “Messi” or “Ronaldo”). Otherwise, it labels the face as “Unknown.”
  4. Output Display: Bounding boxes and labels are drawn around the recognized faces in real-time. This allows users to visually confirm the recognition results on their screen.

Demo

Conclusion

This project serves as a simple yet effective demonstration of face recognition using a small dataset. By focusing on a real-time application, it showcases the potential of computer vision and deep learning technologies in building intelligent recognition systems. Although trained on only three images, the system successfully distinguishes between authorized faces and unfamiliar faces.

Future Improvements

For the complete code and further details, you can visit the GitHub repository.

Next Project

Drowsiness Detection

Get in Touch

Interested in collaborating or have any questions? Reach out to me through this form.