DriveSafe

Driver’s drowsiness is one of the huge factors that cause road accidents. In such a scenario, simple prevention can be availed from DriveSafe. A system built in Python, to observe drivers whether they are in the drive or drowsy to have alerts for accident prevention.

Features

The system analyzes live video input of the driver to detect when a driver’s eyes remain closed too long and is considered one of the key indicators of drowsiness. This then acts as the trigger to immediately activate a sound alert in the case of DriveSafe with the aim of keeping a driver awake and safe.

How It Works

source: youtube.com

  1. Live Video Capture: A camera captures the driver in real-time.
  2. Eye Detection: OpenCV and Dlib track the driver’s eyes.
  3. Drowsiness Detection: It monitors how long the eyes are closed to detect fatigue.
  4. Sound and Alert: In case drowsiness is detected, a sound is played to alert the driver and a notification will be sent to selected devices.

Libraries 

DriveSafe makes use of the following Python libraries:

  • OpenCV
  • NumPy
  • dlib
  • face-utils
  • Iimutils
  • pushbullet.py
  • scipy
  • pygame

How to setup DriveSafe

  1. Clone the repository from GitHub.
  2. Run pip install -r requirements.txt to install the needed libraries.
  3. Run the main script to start the detection system

GITHUB REPOSITORY