Skip to content

This project is an AI-powered computer vision system that detects driver drowsiness in real-time by analyzing eye movements using facial landmarks. It helps prevent road accidents by alerting the driver when signs of sleepiness or inattention are detected.

License

Notifications You must be signed in to change notification settings

Diksha-3905/driver-drowsiness-detection

Repository files navigation

🚗 Driver Drowsiness Detection using OpenCV & Dlib

A real-time computer vision system that monitors a driver's eye aspect ratio (EAR) to detect signs of drowsiness and alert them with a warning sound.

🧠 Tech Stack

  • Python 3.x
  • OpenCV
  • Dlib
  • SciPy
  • playsound

🖼️ How It Works

  • Uses facial landmarks to locate eyes
  • Calculates Eye Aspect Ratio (EAR)
  • Triggers an alert if eyes remain closed too long

📁 Dataset

  • shape_predictor_68_face_landmarks.dat is required. Download it here and extract it in the project root.
  • A sample video/image dataset can be placed inside the dataset/ folder for testing.

▶️ How to Run

  1. Clone the repo
  2. Install dependencies:
    pip install -r requirements.txt

About

This project is an AI-powered computer vision system that detects driver drowsiness in real-time by analyzing eye movements using facial landmarks. It helps prevent road accidents by alerting the driver when signs of sleepiness or inattention are detected.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages