CoolFace
Apppublic

youssefnaiem/hjbfhjeb_cjkdwnbj

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

πŸŽ“ 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.