Loading repository data…
Loading repository data…
Gagandeep-2003 / repository
AI-powered Driver Drowsiness Detection System using Computer Vision & Machine Learning for real-time driver alertness monitoring and accident prevention.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The Driver Drowsiness Detection System is a non-intrusive solution designed to monitor and detect signs of fatigue in drivers. By analyzing eye states through a camera feed, the system can identify early symptoms of drowsiness and issue timely warnings, helping to prevent accidents caused by driver fatigue. This project aims to enhance road safety, especially for those driving long distances who may not recognize their own drowsiness in time.
If you find this project helpful, please consider giving it a star ⭐ on GitHub!
It helps others discover the project and motivates us to keep improving it.
👉 Click the ⭐ button at the top-right of this page!
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Clone the repository:
git clone https://github.com/Gagandeep-2003/Driver-Drowsiness-Detection-System.git
cd Driver-Drowsiness-Detection-System
Install dependencies:
pip install -r requirements.txt
Download the model:
The dlib facial landmark model is required for blink detection. Download it from the link below, unzip it, and place the file inside the directory.
shape_predictor_68_face_landmarks.dat/modelsRun the application:
python main.py
(Replace main.py with the actual entry point if different.)
driver-drowsiness-detection-system/
│
├── main.py # Entry point for the system
├── blinkDetect.py # Drowsiness detection script
├── lanedetection.py # Lane detection module
├── ui.py # User interface handling
├── requirements.txt # Python dependencies
├── CONTRIBUTING.md # Contribution guidelines
├── DEPLOYMENT.md # Deployment instructions
├── PWA_README.md # PWA installation & usage
├── PWA_IMPLEMENTATION.md # Technical details of PWA
│
├── models/ # Pre-trained ML models
│ └── haarcascade_frontalface_default.xml
│
├── streamlit_app/ # Web app (Streamlit + PWA)
│ ├── streamlit_app.py
│ ├── streamlit_app_pwa.py
│ ├── manifest.json
│ ├── sw.js
│ └── icons/ # App icons for PWA
│
├── assets/ # Images, audio, and test files
│ ├── alarm.wav
│ ├── alarm.mp3
│ ├── eye.PNG
│ ├── eye_aspect_ratio.PNG
│ ├── face.PNG
│ └── test_image.jpg
We welcome contributions to improve this project! To get started:
We are actively tracking progress and assigning tasks for GSSoC'25 in our GitHub Project Board.
You can see which issues are To Do, In Progress, or Completed, and pick one to start contributing.
ℹ️ To work on an issue:
- Comment on the issue stating your interest.
- We’ll assign it to you under the appropriate GSSoC’25 level.
- Track your progress via the Project Board.
This app version uses Streamlit + Mediapipe to detect drowsiness via webcam directly in the browser.
# Standard web app
streamlit run streamlit_app/streamlit_app.py
# Or run the enhanced PWA version
streamlit run streamlit_app/streamlit_app_pwa.py
NEW! This project now supports Progressive Web App functionality! Install it like a native app on your device.
📖 Complete PWA Guide - Detailed installation and usage instructions
Dependencies: Install using:
pip install -r requirements.txt
Features:
If you have any questions or need guidance, feel free to open an issue or ask in the discussions!
Thanks to these wonderful people for contributing 💖
Thank you for your interest in improving the Driver Drowsiness Detection System! Your contributions are greatly appreciated.