Skip to content

The Drowsiness Detection System utilizes computer vision and deep learning to monitor eye states via webcam, alerting individuals to potential drowsiness by analyzing eye closure patterns. With adjustable sensitivity and real-time monitoring, it's a proactive safety tool, especially in critical scenarios like driving.

Notifications You must be signed in to change notification settings

ShaanManchanda/DrowziSense-Drowsiness-Detection-To-Prevent-Accidents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrowziSense: Drowsiness-Detection-To-Prevent-Accidents

This project aims to detect drowsiness in individuals using computer vision techniques. It is implemented using Python and Keras.

Overview

The Drowsiness Detection System monitors the eyes of an individual through a webcam feed. It detects if the person's eyes are closed for an extended period, which could indicate drowsiness or fatigue. When drowsiness is detected, an alarm is triggered to alert the individual.

Features

  • Real-time monitoring of eye state (open/closed) using computer vision
  • Sound alarm when drowsiness is detected
  • Adjustable sensitivity level for drowsiness detection
  • Simple and intuitive interface

Installation

  1. Clone the repository to your local machine:
    git clone https://github.com/your-username/drowsiness-detection.git
  2. Install the required dependencies:
    pip install -r requirements.txt
  3. Run the drowsiness_detection.py script:
    python drowsiness_detection.py
    

Usage

  • Ensure your webcam is connected and functioning properly.
  • Run the drowsiness_detection.py script.
  • Adjust the alarm threshold and other parameters as needed.
  • Keep your eyes visible to the webcam for accurate detection.
  • When drowsiness is detected, the alarm will sound.

Dependencies

  • OpenCV: Computer vision library for image and video processing
  • Keras: Deep learning library for building and training neural networks
  • NumPy: Library for numerical computing in Python
  • Pygame: Library for multimedia applications, used for sound playback

Contributing

Contributions are welcome! If you have suggestions for improving the project or find any issues, please open an issue or submit a pull request.

About

The Drowsiness Detection System utilizes computer vision and deep learning to monitor eye states via webcam, alerting individuals to potential drowsiness by analyzing eye closure patterns. With adjustable sensitivity and real-time monitoring, it's a proactive safety tool, especially in critical scenarios like driving.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages