An AI-powered attendance system that uses face recognition to automatically mark students' attendance. Built with Python and Machine Learning, the system integrates face detection, encoding, and classification models to log attendance securely and efficiently.
- Python
- OpenCV
- TensorFlow / Keras
- MTCNN for face detection
- FaceNet for face embeddings
- Support Vector Machine (SVM) for classification
- Tkinter (GUI)
- Firebase (optional)
- Pandas, NumPy
- 🎯 Real-time face detection and recognition
- 🧑🎓 Auto-attendance logging with name and timestamp
- 📁 Dataset creation and embedding generation
- 🗃️ Secure model training and classification using SVM
- 📤 Export attendance logs to Excel
- 🖥️ GUI interface using Tkinter
.
├── Dataset/ # Student face images
├── Images_GUI/ # UI and app icons
├── classifier/ # Trained SVM models
├── encodings/ # Face embeddings
├── architecture.py # FaceNet model structure
├── facenet_keras_weights.h5 # Pre-trained FaceNet weights
├── generateDataset.py # Script to capture student images
├── homepage.py # GUI application
├── recognizer.py # Face recognition and attendance logging
├── train_v2.py # Train SVM on embeddings
├── requirements.txt # Dependencies
- Clone the repository:
git clone https://github.com/xHarshit/Face-Recognition-Based-Student-Attendance-System-Using-ML.git
cd Face-Recognition-Based-Student-Attendance-System-Using-ML- Install the dependencies:
pip install -r requirements.txt- Run the GUI application:
python homepage.py- Use generateDataset.py to capture images of each student.
- Train the classifier using train_v2.py.
- Launch the GUI with homepage.py.
- Recognizer detects faces from webcam and marks attendance in Excel.
- Add liveness detection to prevent spoofing
- Create dashboard for admin analytics
- Add notification system for parents
- Mobile/web app integration for real-time access
This project is licensed under the MIT License. Feel free to use and modify it for your own learning or projects.


