Loading repository dataβ¦
Loading repository dataβ¦
atharvakarval-dev / repository
π‘οΈ GuardianDrive AI: The Ultimate Driver Drowsiness Detection & Drunk Driver Alert System using Python, OpenCV & MediaPipe. Features Real-time Anti-Sleep Alarm, Intoxication Detection, IoT Alerts & Insurance Telematics. Production-ready for all face types. π
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
"Transforming every vehicle into a connected safety node."
Concepted, Architected, and Engineered by [Atharva Karval]
π Features β’ π§ Technical Deep Dive β’ π οΈ Installation β’ πΈ Demo β’ β FAQ
GuardianDrive AI is a complete Driver Drowsiness Detection System and Drunk Driving Alert System built with Python, OpenCV, and MediaPipe.
Unlike basic "sleep detection" scripts, this is a full-fledged Driver Monitoring System (DMS) that uses AI-powered facial analysis to detect:
Designed for IoT Edge Devices (Raspberry Pi, Jetson Nano) and Connected Vehicles.
GuardianDrive AI uses a Weighted Sensor Fusion approach:
Geometric Analysis (MediaPipe Face Mesh):
Mathematics of Detection:
Optimization for Indian/Asian Faces:
# 1. Clone the repository
git clone https://github.com/AtharvaKarval/GuardianDrive-AI.git
cd GuardianDrive-AI
# 2. Create virtual environment
python -m venv venv
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Run the Drowsiness Detection System
python -m streamlit run streamlit_app/streamlit_app_pwa.py
Q: How does the drunk driver detection work?
A: It analyzes head posture stability (swaying), gaze fixation (staring), and blink rate anomalies over time. If a driver shows lack of motor control combined with vacant staring, the system flags it as "Intoxicated".
Q: Can this detect drowsiness with glasses or at night?
A: Yes. The system includes CLAHE image enhancement to see in low light. It uses geometric landmarks which work well with clear glasses. For sunglasses, it automatically falls back to Head Pose detection.
Q: Is this a real-time system?
A: Yes, GuardianDrive AI runs at 30+ FPS on standard laptops and is optimized for low-latency Edge devices.
Q: Does it save video data?
A: No. It is a Privacy-First system. All processing is done locally (On-Device). Only text-based alerts (GPS, Time, Status) are sent to contacts if enabled.
driver-drowsiness-detection drunk-driver-alert computer-vision mediapipe opencv python machine-learning iot smart-vehicle dms adas safety-system sleep-detection face-mesh pnp-algorithm real-time edge-ai
Concepted, Architected, and Engineered by [Atharva Karval].
This project is licensed under the MIT License.
Star β this repository if it saved your life (or your grades)!