A real-time AI-powered system that analyzes user attention using facial landmarks, eye tracking, and head pose estimation.
- 🎥 Real-time webcam monitoring
- 🎬 Video upload analysis
- 📊 Live attention graph
⚠️ Smart distraction alerts- 🧠 Focus mode with session tracking
- 👥 Face-wise attention summary (no duplicates)
- 📁 CSV report export
- Uses MediaPipe Face Mesh for facial landmark detection
- Calculates Eye Aspect Ratio (EAR) for blink detection
- Uses head pose estimation for attention tracking
- Combines signals with temporal smoothing for stability
- Python
- OpenCV
- MediaPipe
- Streamlit
- NumPy / Pandas / Matplotlib
pip install -r requirements.txt
streamlit run app.py
- Online learning monitoring
- Productivity tracking
- Classroom analytics
- Focus improvement tools
- Face recognition (identity tracking)
- Mobile app version
- Advanced ML models for attention
Built as a Deep Learning project with practical real-world application.