Skip to content

gazawi788/FocusGuard-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FocusGuard AI ๐Ÿ‘๏ธ๐Ÿง 

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.


๐Ÿš€ Features

  • 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

๐Ÿ› ๏ธ Technologies

  • Python
  • OpenCV
  • MediaPipe
  • NumPy

โ–ถ๏ธ How to Run

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

About

AI system for visual attentiveness, distraction, and drowsiness detection using computer vision

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages