Skip to content

Repository files navigation

👁️ Face Recognition System

Automated Facial Recognition using OpenCV & Machine Learning

🔹 Author: Zaheer Shaik

AI & Software Engineer | Passionate about Machine Learning, Computer Vision, and Scalable Systems

📖 Overview

This project is a Face Recognition System built using Python and OpenCV, designed to detect, train, and recognize human faces from real-time camera input. It demonstrates how computer vision and machine learning can be integrated to create smart and secure systems — such as authentication, attendance monitoring, and surveillance.

The system follows a simple but powerful pipeline:

Face Detection using Haar Cascade Classifier.

Dataset Generation for multiple users.

Model Training using OpenCV’s LBPH (Local Binary Patterns Histogram).

Real-time Recognition via webcam feed.

🚀 Features

✅ Real-time face detection and recognition ✅ Simple and modular code structure ✅ Easy to extend for multiple users ✅ Dataset generator for new faces ✅ Trained model storage and reusability ✅ Lightweight — runs efficiently on any machine

🧠 Tech Stack

Programming Language: Python 3.x

Libraries: OpenCV, NumPy, OS

Model Used: LBPH Face Recognizer (Local Binary Pattern Histogram)

Classifier: Haar Cascade Frontal Face

📂 Project Structure face-recognition/ │ ├── face_dataset.py # Captures and stores face samples ├── training.py # Trains the model using the stored dataset ├── face_recognition.py # Recognizes faces in real-time via webcam ├── haarcascade_frontalface_default.xml # Haar Cascade model for detection └── README.md # Project documentation

⚙️ How to Run 1️⃣ Clone this Repository git clone https://github.com/ShaikZaheer-developer/face-recognition.git cd face-recognition

2️⃣ Install Dependencies pip install opencv-python numpy

3️⃣ Generate Face Dataset

Run the dataset script and follow the on-screen instructions to capture your images:

python face_dataset.py

4️⃣ Train the Model

Train the face recognizer using the saved dataset:

python training.py

5️⃣ Recognize Faces in Real-Time

Launch the real-time recognition system:

python face_recognition.py

💡 Use Cases

Attendance management systems

Access control & security systems

Personalized customer experience

Smart IoT and home automation

🧩 Future Enhancements

🔹 Integrate with deep learning (CNNs) for higher accuracy 🔹 Cloud-based recognition using TensorFlow or PyTorch 🔹 Add face mask detection and emotion analysis 🔹 Web interface for dataset management

🧑‍💻 About the Developer

👋 Hi! I’m Zaheer Shaik, a final-year AI & Data Science student passionate about machine learning, computer vision, and intelligent automation.

I love building projects that connect AI with real-world applications — from healthcare to cybersecurity. If you're an MNC looking for a dedicated and creative AI developer, let’s connect!

📫 Reach me on:

LinkedIn : https://www.linkedin.com/in/zaheershaik2/

📧 shaikzaheer.dev@gmail.com

⭐ Support

If you found this project helpful, please star this repo ⭐ — it motivates me to keep building innovative AI solutions!

About

it is a face recognition project using python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages