Skip to content

shank50/drowsiness-dlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Drowsiness Detection System using DLib

This project uses facial landmarks to monitor drowsiness in real-time using the Eye Aspect Ratio (EAR) to prompts/alertss whether a person is awake or drowsy.

๐Ÿ“ฆ Features

  • Real-time video feed processing using OpenCV
  • DLib facial landmark detection (68 points)
  • EAR-based thresholding to detect eye closure
  • Works on a customizable thresholding.

๐Ÿš€ Quick Start

  1. Install dependencies

    pip install -r requirements.txt
  2. Run the application

    python main.py

    The system will open your camera feed and begin monitoring for drowsiness immediately.

๐Ÿ“‚ Model File

The shape predictor file shape_predictor_68_face_landmarks.dat can be fetched from Dlib's official site too.

๐Ÿ“š Reference

This implementation is inspired by the concepts presented in:

  • Soukupovรก, T., & ฤŒech, J. (2016). Real-Time Eye Blink Detection using Facial Landmarks Read paper (PDF)

About

Drowsiness Detection using DLib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages