Subhash Vadaparthi
Fix python_version quoting and add packages.txt
d1793a2
|
Raw History Blame Contribute Delete
2.18 kB

A newer version of the Gradio SDK is available: 6.33.0

Upgrade
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