AI-powered attendance platform leveraging real-time facial recognition and deep learning inference.
The Facial Recognition Attendance System is a full-stack web application designed to automate attendance tracking using computer vision and deep learning.
The system integrates InsightFace's Buffalo model with ONNX Runtime to perform high-performance facial recognition inference. A Flask-based backend manages user enrollment, recognition workflows, and structured attendance logging.
This system provides a contactless, secure, and scalable solution for automating attendance management in educational institutions, organizations, and secure facilities.
The system follows a modular pipeline combining computer vision, deep learning inference, and backend processing.
ββββββββββββββββββββββββ
β Web Camera β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Face Detection β
β (OpenCV) β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Feature Extraction β
β (InsightFace) β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Embedding Comparison β
β (Face Matching) β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Attendance Logging β
β (Flask Backend) β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Attendance Records β
β (CSV / Structured) β
ββββββββββββββββββββββββ
The system is designed for fast and accurate facial recognition using optimized deep learning inference.
| Metric | Description |
|---|---|
| Model | InsightFace (Buffalo Model) |
| Inference Engine | ONNX Runtime |
| Face Detection | OpenCV |
| Recognition Type | Embedding similarity comparison |
| Processing | Real-time webcam frame processing |
- β‘ Fast inference using ONNX Runtime optimization
- π― High recognition accuracy using deep facial embeddings
- π§ Efficient embedding comparison for identity verification
- π Real-time frame processing for continuous attendance tracking
- Face embeddings are stored instead of raw facial images
- Recognition based on vector similarity matching
- Supports integration with secure authentication systems
- Can be extended with access control and role-based authentication
- π₯ Real-time facial detection using webcam video streams
- π§ Deep learning-based face recognition using InsightFace
- β‘ High-performance inference powered by ONNX Runtime
- π€ Dynamic user enrollment system for new users
- π Automated timestamped attendance logging
- π Structured attendance records for export and analysis
- π ERP and backend system integration ready
| Layer | Technologies |
|---|---|
| Backend | Python, Flask |
| Computer Vision | OpenCV |
| Face Recognition Model | InsightFace (Buffalo Model) |
| Inference Engine | ONNX Runtime |
| Frontend | HTML, CSS, JavaScript |
| Data Storage | CSV / Structured Logs |
Users register through the web interface where their facial images are captured and stored as embeddings.
OpenCV captures frames from the webcam and detects faces in real time.
The InsightFace model generates facial embeddings representing unique facial features.
Generated embeddings are compared against stored embeddings to identify the user.
Recognized users are automatically logged with a timestamped attendance entry.
Facial-Recognition-Attendance-System/
β
βββ app.py # Main Flask application
βββ requirements.txt # Project dependencies
β
βββ static/ # CSS, JS, and frontend assets
βββ templates/ # HTML templates
β
βββ model/ # Face recognition models
βββ utils/ # Helper functions and utilities
β
βββ README.mdgit clone https://github.com/MalharBhatt-dev/Facial-Recognition-Attendance-System
cd Facial-Recognition-Attendance-Systempython -m venv venvWindows
venv\Scripts\activateMac / Linux
source venv/bin/activatepip install -r requirements.txtpython app.pyOpen your browser and visit:
http://localhost:5000
- Educational institutions for automated attendance
- Corporate employee tracking systems
- Secure check-in and identity verification systems
- Smart campus or smart office solutions
- Role-based authentication system (Admin / User)
- Database integration (MySQL / PostgreSQL / MongoDB)
- Attendance analytics dashboard
- Cloud deployment support
- Face mask detection integration
- Performance optimization for large user datasets
- Improved recognition accuracy in low-light environments
- Multi-camera support for larger deployment areas
This project is open-source and distributed under the MIT License.