🚗 Driver Drowsiness Detection System

This system detects driver drowsiness using computer vision and deep learning.

Features:

  • Image analysis
  • Video processing with speed monitoring
  • Webcam detection (PC and mobile)
  • Multi-factor drowsiness prediction (face, eyes, head pose, speed changes)

Upload an image for drowsiness detection

How It Works

This system detects drowsiness using multiple factors:

  1. Facial features - Using a trained CNN model
  2. Eye openness - Measuring eye aspect ratio (EAR)
  3. Head position - Detecting head drooping
  4. Automatic speed detection - Using optical flow analysis to track vehicle movement and detect irregular speed changes

The system automatically detects speed changes from the video frames using computer vision techniques:

  • Optical flow is used to track movement between frames
  • Irregular speed changes (±5 km/h) are detected as potential signs of drowsy driving
  • No external speed data required - everything is analyzed directly from the video content

Combining these factors provides more reliable drowsiness detection than using facial features alone.