Update README.md
Browse files
README.md
CHANGED
|
@@ -1,33 +1,44 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
##
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
The system uses a Vision Transformer (ViT) model trained on driver drowsiness detection. The model is capable of detecting subtle signs of drowsiness in facial expressions.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Driver Drowsiness Detection
|
| 3 |
+
emoji: 🚗
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 3.50.2
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Driver Drowsiness Detection System
|
| 13 |
+
|
| 14 |
+
This is a real-time driver drowsiness detection system that uses computer vision and deep learning to detect signs of drowsiness in drivers. The system can process webcam feeds, video files, and single images.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
- Real-time webcam monitoring
|
| 19 |
+
- Video file processing
|
| 20 |
+
- Single image analysis
|
| 21 |
+
- Face detection and drowsiness prediction
|
| 22 |
+
- Visual feedback with bounding boxes and status indicators
|
| 23 |
+
|
| 24 |
+
## How to Use
|
| 25 |
+
|
| 26 |
+
1. **Webcam Mode**: Click the "Start Webcam" button to begin real-time monitoring
|
| 27 |
+
2. **Video Mode**: Upload a video file for processing
|
| 28 |
+
3. **Image Mode**: Upload a single image for analysis
|
| 29 |
+
|
| 30 |
+
The system will display the results with:
|
| 31 |
+
- Green box: Alert (not drowsy)
|
| 32 |
+
- Red box: Drowsy
|
| 33 |
+
- Probability score for drowsiness
|
| 34 |
+
|
| 35 |
+
## Technical Details
|
| 36 |
+
|
| 37 |
+
- Built with PyTorch and Vision Transformer (ViT)
|
| 38 |
+
- Uses OpenCV for face detection
|
| 39 |
+
- Gradio interface for easy interaction
|
| 40 |
+
- Real-time processing capabilities
|
| 41 |
+
|
| 42 |
+
## Model
|
| 43 |
+
|
| 44 |
The system uses a Vision Transformer (ViT) model trained on driver drowsiness detection. The model is capable of detecting subtle signs of drowsiness in facial expressions.
|