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.
-
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.
- Raspberry Pi (tested on Pi 5)
- Pi Camera module
- Python 3
This project is licensed under the Apache 2.0 License – see the LICENSE file for details.
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.
Follow these steps to set up and run the project:
-
Clone the repository
git clone https://github.com/aireynexxx/driver_monitoring_ai.git cd driver_monitoring_ai -
Create a new Python virtual environment
python3 -m venv venv
-
Activate the virtual environment
-
On macOS/Linux:
source venv/bin/activate -
On Windows:
venv\Scripts\activate
-
-
Install dependencies
pip install -r requirements.txt
-
Wait for the installation to complete.
-
Run the application
python3 main.py