Skip to content

Real-time face recognition system using OpenCV and Python, capable of detecting and identifying faces from live video streams with high accuracy.

Notifications You must be signed in to change notification settings

ibrahimcreator/FaceRecognition-OpenCV-Python

Repository files navigation

👁️‍🗨️ Real-Time Face Recognition App using OpenCV and Python

A high-performance real-time face recognition system built using OpenCV and Python, designed to identify and track human faces from live video feeds. This application demonstrates core concepts in computer vision and facial recognition through efficient model training and real-time detection.


🎯 Project Objective

To develop a lightweight, real-time face detection and recognition app using OpenCV and Haar cascade classifiers in Python. This project serves as a practical application for:

  • Access control systems
  • Surveillance
  • Smart attendance
  • Personal security apps

⚙️ Key Features

  • 🔍 Real-Time Face Detection

    • Utilizes Haar cascade classifiers for rapid face localization
  • 🧠 Face Recognition

    • Matches faces against a pre-trained dataset using OpenCV's LBPH recognizer
  • 🛠️ Data Collection & Training

    • Captures face images from webcam
    • Trains the model for user recognition
  • 🖥️ Live Recognition App

    • GUI-based interface that detects and identifies faces in real time

🧰 Tech Stack & Tools

  • Programming Language: Python 3.x

  • Libraries: OpenCV, NumPy

  • Files Used:

    • haarcascade_frontalface_default.xml
    • Face Recognition App.py
    • Model Training.py
    • Data Collection.py

🗂️ Project Structure

├── Face Recognition App.py       # Main application for live detection
├── Model Training.py             # Model training from captured data
├── Data Collection.py            # Capture user face images
├── haarcascade_frontalface_default.xml
├── requirements.txt              # Python dependencies
└── README.md

📚 What I Learned

  • Hands-on experience with OpenCV and Haar cascades
  • Implementing LBPH (Local Binary Patterns Histograms) for face recognition
  • Real-time video stream processing and UI integration
  • Model training lifecycle from data capture to recognition

🙋‍♂️ About Me

Hi, I’m SYED IBRAHIM A – a driven B.Tech CSE graduate (AI specialization, IBM Certified) with a passion for real-world AI/ML applications. I enjoy building smart systems that blend deep tech with accessible user experiences.


📄 License

This project is licensed under the MIT License. Use, modify, or contribute freely.


For demo videos, collaborations, or job opportunities, feel free to connect. Let’s build the future of vision AI together!

About

Real-time face recognition system using OpenCV and Python, capable of detecting and identifying faces from live video streams with high accuracy.

Topics

Resources

Stars

Watchers

Forks

Languages