A real-time driver drowsiness detection system using eye state analysis. Captures driver images via mobile camera and uses machine learning to detect signs of drowsiness.
- Project Overview
- System Architecture
- Features
- Installation
- Usage
- Alert Notification
- Contributing
- Contact
- Demo
This system consists of two main components:
- Mobile Application: Captures driver images (2 images/minute) and communicates with API
- Detection Model: Uses Haar cascade classifier for face detection and pre-trained CNN for eye state classification
Workflow:
- Mobile app captures and sends images to API
- Server processes images using OpenCV and ML model
- Returns eye state classification with confidence score
- Triggers alerts when eyes are closed beyond threshold
- Real-time image capture and processing
- Haar cascade face detection
- Eye state classification (Open/Closed)
- Confidence percentage for predictions
- REST API integration
- Customizable alert thresholds
- Multi-platform support
- Python 3.10+
- OpenCV
- TensorFlow/Keras (for model loading)
- Flask (for API server)
- Android/iOS development environment (for mobile app)
- Clone repository:
git clone https://github.com/Wahid234/driver-drowsiness-detection.git
cd driver-drowsiness-detection
- Install Python dependencies:
pip install -r requirements.txt
- Place phone in vehicle facing driver
- Launch application
- Grant camera permissions
- System will auto-capture images and send to API
- Detection Model
- API Integration
- 🔊 Audio alarm
- 📳 Vibration
- Wahid Alzubeir (Detection Model and API)
- Essa Shehab (Flutter)
For questions or support, contact: Wahid Alzubeir - [email protected]
Project Link: https://github.com/Wahid234/driver-drowsiness-detection