youssefnaiem/hjbfhjeb_cjkdwnbj
π Smart Face Emotion-Based Attendance System
A real-time AI-powered attendance system that uses Face Recognition + Facial Emotion Detection to automatically mark attendance through a university-style web portal.
This project integrates Deep Learning, Computer Vision, and Web APIs to deliver a fully automated, contactless attendance solution.
π Features
β Real-time face detection using MediaPipe β Face recognition using FaceNet embeddings + SVM classifier β Facial emotion recognition using CNN trained on FER-2013 dataset β Automatic attendance marking with Date, Time, Emotion & Status β Clean University Portal UI (HTML, CSS, JavaScript) β Backend powered by FastAPI β Camera opens only on user action β Attendance stored in CSV (can be extended to DB)
π§ System Architecture User β Web Portal β FastAPI Backend β Webcam Capture β Face Detection β Face Recognition (FaceNet) β Emotion Detection (CNN) β Attendance Marked (CSV)
π Tech Stack πΉ Backend
Python 3.11
FastAPI
OpenCV
MediaPipe
TensorFlow / Keras
FaceNet (keras-facenet)
Scikit-learn
Pandas
πΉ Frontend
HTML5
CSS3
JavaScript (Fetch API)
πΉ Deep Learning
FaceNet (128-D embeddings)
CNN (FER-2013 emotion dataset)
πΈ How Attendance Works
1οΈβ£ User opens the web portal 2οΈβ£ Clicks βMark Attendanceβ 3οΈβ£ Camera opens 4οΈβ£ System detects:
Face
Identity
Emotion 5οΈβ£ Attendance is marked as Present 6οΈβ£ Camera auto-closes 7οΈβ£ Popup confirms attendance
π Attendance Format (CSV) Name Date Time Emotion Status Lakshya 2025-12-15 15:30:12 Happy Present Karan 2025-12-15 Absent
π― Emotion Classes Supported
Happy
Sad
Angry
Neutral
Surprise
Fear
Disgust
π§ͺ Model Training Emotion Model
Dataset: FER-2013
Model: CNN
Framework: TensorFlow / Keras
Face Recognition
Embeddings: FaceNet
Classifier: SVM
π Future Enhancements
π Database integration (MySQL / Firebase)
π Attendance analytics dashboard
π₯ Live emotion overlay
π± Mobile-friendly UI
π« Multi-class support
π Admin authentication
π§βπ» Author
Lakshya Srivastav Computer Vision & Deep Learning Project
β Acknowledgements
FER-2013 Dataset
MediaPipe by Google
FaceNet Research Paper
TensorFlow & OpenCV Communities
π License
This project is licensed for academic and educational use.
