CoolFace
Apppublic

MLengineers/distracted-driver-detection

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
App README

๐Ÿš— Distracted Driver Detection

A real-time distracted driver detection system using deep learning with 78.33% accuracy.

Features

  • โ€”๐Ÿ“ท Image Upload - Analyze driver photos
  • โ€”๐Ÿ“น Live Webcam - Real-time detection
  • โ€”๐ŸŽฏ 10 Classes - Detects various distractions

Detected Behaviors

ClassBehavior
c0Safe driving โœ…
c1Texting - right hand
c2Phone call - right hand
c3Texting - left hand
c4Phone call - left hand
c5Operating radio
c6Drinking
c7Reaching behind
c8Hair and makeup
c9Talking to passenger

Model Details

  • โ€”Architecture: Custom CNN (27M parameters)
  • โ€”Training: 15 epochs on 22,424 images
  • โ€”Accuracy: 78.33% validation accuracy
  • โ€”Input Size: 224ร—224 RGB images

Usage

  1. 1.Click "Upload Image" or "Live Webcam"
  2. 2.Provide a driver image
  3. 3.View detection results with confidence scores

Tech Stack

  • โ€”TensorFlow/Keras
  • โ€”Flask
  • โ€”OpenCV
  • โ€”Modern CSS UI

Built with โค๏ธ using Deep Learning