Skip to content

Real-time face detection, training, and recognition project using Haar cascading in Python. OpenCV, NumPy, PIL, and OS libraries facilitate image processing, LBPH Face Recognizer training, and efficient dataset management. Annotate recognized faces in videos. Easy setup and usage. Explore and contribute!

Notifications You must be signed in to change notification settings

01bps/Face_Recognition_DIC_P

Repository files navigation

Face Detection, Training, and Recognition Project

Overview:

This project focuses on developing a robust facial recognition system in three main phases: face detection, training, and recognition. Leveraging the power of computer vision, OpenCV, and machine learning, the system employs the Haar cascading method for efficient face detection and recognition. The project utilizes popular Python libraries such as OpenCV, NumPy, PIL, and OS for image processing, numerical operations, and file handling.

Demo:

DIC_Demo.mp4

Phases:

1. Face Detection:

  • Method: The Haar cascading method is employed for real-time face detection.
  • Libraries: OpenCV is used to load the pre-trained Haar cascade classifier, while NumPy assists in efficient numerical operations.

2. Training:

  • Algorithm: The LBPH (Local Binary Pattern Histogram) Face Recognizer is employed for training the system.
  • Data Handling: Images are processed using the PIL (Python Imaging Library), and face data is stored with OS library functions.
  • Storage: The trained model is saved into a YAML file using OpenCV's LBPHFaceRecognizer.

3. Recognition:

  • Integration: The trained model is integrated into the recognition phase using Haar cascading for face detection and LBPH Face Recognizer for identification.
  • Real-time Display: The recognized faces are annotated in real-time video streams, displaying names and confidence levels.

Libraries Used:

  • OpenCV: Utilized for image and video processing, Haar cascading, and LBPH Face Recognizer.
  • NumPy: Used for efficient numerical operations and array manipulations.
  • PIL (Python Imaging Library): Employed for image loading, grayscale conversion, and preprocessing.
  • OS: Facilitates file and directory manipulation, crucial for managing datasets and trained models.

Feel free to contribute, report issues, or extend the project for personalized use cases!


About

Real-time face detection, training, and recognition project using Haar cascading in Python. OpenCV, NumPy, PIL, and OS libraries facilitate image processing, LBPH Face Recognizer training, and efficient dataset management. Annotate recognized faces in videos. Easy setup and usage. Explore and contribute!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages