FocusGuard AI is a computer vision system that monitors visual attentiveness using a webcam.
The system detects:
- ๐ข Attentive (No visual signs of distraction)
- ๐ Distracted (Looking away)
- ๐ด Drowsy (Prolonged eye closure)
โ ๏ธ Note:
"Attentive" does not guarantee cognitive focus.
It indicates absence of visible distraction or drowsiness.
- MediaPipe Face Mesh
- Eye Aspect Ratio (EAR) for drowsiness detection
- Iris-based eye gaze detection
- Personal calibration
- Temporal voting for stable decisions
- Real-time dashboard with percentages
- Python
- OpenCV
- MediaPipe
- NumPy
pip install -r requirements.txt
python main.py
press Q to exit.
๐ Use Cases
Study focus monitoring
Online exam proctoring (visual)
Driver attention research
AI & Computer Vision portfolio project