You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A complete face recognition solution with intuitive GUI for easy usage
๐ Overview
A robust yet beginner-friendly Face Recognition System that combines computer vision capabilities with a simple graphical interface. Built using OpenCV's LBPH (Local Binary Pattern Histogram) algorithm, this system allows users to capture facial data, train recognition models, and perform real-time identification through an intuitive Tkinter-based application.
โจ Features
๐ธ Data Collection
Direct face capture via webcam with automatic detection
Organized storage in person-specific directories
Configurable sample count and capture interval
๐ง Machine Learning
Implementation of OpenCV's LBPH Face Recognizer
Local pattern extraction for efficient recognition
Confidence-based identification threshold
๐ฅ Real-Time Processing
Live webcam face detection and recognition
Real-time confidence score display
Frame-by-frame processing with performance optimization
๐ฅ๏ธ User Experience
Intuitive Tkinter GUI with clear navigation
Progress indicators for training and recognition
Support for multiple user profiles
Clean project structure with modular components
๐๏ธ Project Structure
Face_Recognition/
โ
โโโ cli_based/
โ โโโ collect_images.py # Capture images for each person
โ โโโ train_&_recognize.py # Train model & recognize via command line
โ
โโโ face_recognition.py # Tkinter GUI + Face recognition
โโโ requirements.txt # Dependencies
โโโ .gitignore
โโโ README.md
๐ ๏ธ Tech Stack
Component
Technology
Purpose
Core Language
Python 3.8+
Application development
Computer Vision
OpenCV 4.x
Face detection & recognition
ML Algorithm
LBPH
Face pattern recognition
GUI Framework
Tkinter
User interface
Face Detection
Haar Cascades
Initial face localization
Image Processing
PIL/Pillow
Image manipulation
Data Handling
NumPy
Numerical operations
๐ Quick Start
Prerequisites
Python 3.8 or higher
Webcam/camera device
2GB+ RAM recommended
Installation
Clone Repository
git clone https://github.com/MuhammadUsman-Khan/Face-Recognition.git
cd Face-Recognition
Create Virtual Environment
python -m venv venv
# Windows
venv\Scripts\activate
# Linux/Macsource venv/bin/activate
"Simplifying face recognition, one face at a time."
About
A lightweight CLI-based face recognition system using OpenCV and LBPH algorithm. Capture facial data, train models, and identify people through terminal commands. (Also available: GUI version with Tkinter)