Back to projects
FrontendBackend

Face-Recognition-Attendance-System

Open source software development project.

Timeline: May 2024

Technology Stack

HTMLPython

Face Recognition Attendance System

A lightweight, automated attendance tracking system powered by computer vision. The system uses a Flask web interface to allow administrators to register new users, and utilizes OpenCV to detect faces via webcam and mark attendance in real-time.


🏗 Architecture

The application is built on a standard MVC-style architecture using Flask:

  • Frontend (templates/, static/): HTML/CSS web interface for administrators to log in and manage the attendance system.
  • Backend (app.py): Flask server handling routing, session management, and API endpoints.
  • Vision Engine: Uses OpenCV's Haar Cascades (haarcascade_frontalface_default.xml) for fast, real-time face detection, and a pre-trained machine learning model (face_recognition_model.pkl) for facial feature matching and recognition.

🚀 Getting Started

Prerequisites

  • Python 3.8+
  • A working webcam

Installation

  1. Clone the repository:
git clone https://github.com/Kiruthick7/Face-Recognition-Attendance-System.git
cd Face-Recognition-Attendance-System
  1. Install dependencies:
pip install -r requirements.txt

(Ensure Flask, opencv-python, scikit-learn, numpy, and pandas are installed)

  1. Run the application:
python app.py
  1. Open your browser and navigate to http://localhost:5000.

📊 System Architecture Flow

graph LR A[Webcam Video Stream] --> B[Haar Cascade Face Detection] B --> C[Facial Feature Extraction] C --> D[Model Classification Matcher] D --> E[Attendance Logging & CSV Export]

📁 Repository Structure

├── app.py                                  # Flask application entry point
├── haarcascade_frontalface_default.xml     # OpenCV pre-trained cascade for face detection
├── requirements.txt                        # Python dependencies
├── static/
│   ├── face_recognition_model.pkl          # Serialized classification model
│   ├── style.css                           # Global stylesheets
│   └── images/                             # UI Assets
└── templates/
    ├── home.html                           # Main dashboard view
    ├── adminlogin.html                     # Secure login view
    └── admin.html                          # Admin control panel

🧠 Tech Stack

  • Backend: Python, Flask
  • Frontend: HTML5, CSS3
  • Computer Vision: OpenCV (Haar Cascades)
  • Machine Learning: Scikit-Learn (Pickle)
AI Career Assistant
Hi! I'm an AI assistant for Kiruthick's portfolio. Ask me about his projects, experience, or skills.