https://github.com/aireynexxx/driver_monitoring_ai
AI-powered driver monitoring system that detects phone use, yawning, and sleep to help prevent road accidents.
https://github.com/aireynexxx/driver_monitoring_ai
ai automotive-applications computer-vision driver-monitoring machine-learning mediapipe rasperry-pi real-time-detection tensorflow
Last synced: 2 months ago
JSON representation
AI-powered driver monitoring system that detects phone use, yawning, and sleep to help prevent road accidents.
- Host: GitHub
- URL: https://github.com/aireynexxx/driver_monitoring_ai
- Owner: aireynexxx
- License: apache-2.0
- Created: 2025-06-09T08:02:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-09T10:50:17.000Z (about 1 year ago)
- Last Synced: 2026-05-03T21:34:57.264Z (2 months ago)
- Topics: ai, automotive-applications, computer-vision, driver-monitoring, machine-learning, mediapipe, rasperry-pi, real-time-detection, tensorflow
- Language: Python
- Homepage:
- Size: 2.86 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Driver Monitoring AI
Welcome to the Driver Monitoring AI project!
This project is a real-time AI-based **Driver Monitoring System** built to enhance road safety by detecting driver distraction and fatigue. It is designed to run on a Raspberry Pi using a camera module and leverages **MediaPipe**, **TensorFlow Lite**, and **OpenCV** for intelligent monitoring.
## Features
- **Phone Usage Detection**
Detects when the driver is using a mobile phone while driving.
- **Sleep Detection**
Detects if the driver has fallen asleep.
- **Fatigue Detection (Yawning)**
Detects repeated yawning as a sign of drowsiness or fatigue.
## Requirements
- Raspberry Pi (tested on Pi 5)
- Pi Camera module
- Python 3
## License
This project is licensed under the **Apache 2.0 License** – see the [LICENSE](LICENSE) file for details.
## Disclaimer
This is a proof-of-concept project and should **not be used as a sole safety mechanism**. Always ensure multiple layers of road safety measures are in place.
## Getting Started
Follow these steps to set up and run the project:
1. **Clone the repository**
```bash
git clone https://github.com/aireynexxx/driver_monitoring_ai.git
cd driver_monitoring_ai
```
2. **Create a new Python virtual environment**
```bash
python3 -m venv venv
```
3. **Activate the virtual environment**
* On macOS/Linux:
```bash
source venv/bin/activate
```
* On Windows:
```bash
venv\Scripts\activate
```
4. **Install dependencies**
```bash
pip install -r requirements.txt
```
5. **Wait for the installation to complete.**
6. **Run the application**
```bash
python3 main.py
```
---