|
Download README.md from subhash595/driver-drowsiness-detection: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/spaces/subhash595/driver-drowsiness-detection/resolve/main/README.md
- Command line
-
hf download hf://spaces/subhash595/driver-drowsiness-detection/README.md
-
curl -L -o README.md https://huggingface.co/spaces/subhash595/driver-drowsiness-detection/resolve/main/README.md
2.18 kB
A newer version of the Gradio SDK is available: 6.33.0
metadata
title: Driver Drowsiness Detection
emoji: π
colorFrom: blue
colorTo: red
sdk: gradio
app_file: app.py
pinned: false
license: apache-2.0
python_version: '3.10'
π Driver Drowsiness Monitoring System
An AI-powered real-time Driver Drowsiness Detection System that monitors a driverβs eye movements using computer vision and alerts them when signs of drowsiness are detected.
π Overview
Driver fatigue is one of the major causes of road accidents worldwide. This project uses Computer Vision and Facial Landmark detection to monitor eye closure and alert the driver.
The system continuously monitors the driver's face through a webcam and identifies potential drowsiness using the Eye Aspect Ratio (EAR).
π― Features
- π Real-time eye detection: Utilizes webcam feed for continuous monitoring.
- π§ Facial Landmark Analysis: Accurate detection using MediaPipe's high-fidelity mesh model.
- π Live Analytics: Displays EAR, blink count, and status on an interactive dashboard.
- β‘ Fast and lightweight: Optimized for real-time web inference using MediaPipe.
- π₯ Easy Cloud/Local setup: Run it as a Hugging Face Space or locally with Gradio.
π οΈ Tech Stack
- Python
- OpenCV
- MediaPipe (Facial Landmarks)
- Gradio (Web Interface)
- SciPy (EAR Calculation)
ποΈ Project Structure
DriverDrowsinessDetection/
β
βββ app.py # Main Gradio application
βββ requirements.txt # Dependencies
βββ README.md
π Installation & Setup
1οΈβ£ Run as Hugging Face Space
- Create a new Space on Hugging Face.
- Select Gradio as the SDK.
- Push this repository to the Space.
2οΈβ£ Local Setup
# Clone the repository
git clone https://github.com/KL2300030695/DriverDrowsinessDetection.git
cd DriverDrowsinessDetection
# Install dependencies
pip install -r requirements.txt
# Run the app
python app.py
π¨βπ» Author
Subhash Vadaparthi B.Tech Computer Science Engineering Koneru Lakshmaiah Education Foundation AI & Cloud Enthusiast