Driver Drowsiness Detection

AI monitoring system to keep you alert and safe while driving

Your Privacy Protected - Nothing Recorded or Shared

📷 Live Camera Detection

Loading drowsiness detection model...

Loading camera...

Eye Region (24x24)

Cropped & Scaled 5x

Face detection active

Status

Initializing...

Confidence

-

Closed Count

0/6

Inference Time

-

💡 How it works:

  • Local AI inference - No backend required, runs in your browser
  • • TensorFlow.js model analyzes each frame for eye state
  • • Predictions run every 1 second (~1 FPS)
  • • If eyes closed for 3+ consecutive frames → drowsiness alert
  • Privacy-first - All processing happens locally

How It Works

Camera Access

Your webcam captures video of your face

Eye Detection

AI identifies your eyes and tracks their state

Smart Analysis

Checks if your eyes stay closed for too long

Wake-Up Alert

Beeping alarm and visual warning appear

Safety Features

  • Continuous eye monitoring
  • Instant audio alarm when drowsy
  • Visual warning on screen
  • Ignores normal blinking
  • Real-time confidence display
  • Easy start/stop controls

Privacy & Security

  • No videos recorded
  • No images saved
  • Nothing uploaded to internet
  • Works completely offline
  • All processing in your browser
  • 100% private and secure

Quick Instructions

  1. Allow camera access when prompted
  2. Position yourself so your face is visible
  3. Click the Start Detection button
  4. If you get drowsy, an alarm will sound - take a break!
  5. Click Stop Detection when done