A real-time Emotion and Drowsiness Detection application built with Python, Streamlit, OpenCV, MediaPipe, and FER (Facial Expression Recognition).
The system uses a webcam to detect facial emotions and signs of fatigue such as frequent blinking.
Built by Abdullahi Bundi β’ 2025
- π₯ Real-time webcam processing
- π Emotion detection (happy, sad, angry, neutral, etc.)
- π΄ Fatigue detection using Eye Aspect Ratio (EAR)
- π Live statistics in an interactive sidebar
- ποΈ Camera controls (Start / Stop)
- β‘ Optimized for performance and stability
- π§ Clean Streamlit UI (no threading errors)
- Python 3.10+
- Streamlit β Web-based UI
- OpenCV β Webcam & image processing
- MediaPipe β Facial landmarks detection
- FER β Emotion recognition model
- NumPy β Numerical computations