A real-time Android application that uses machine learning and computer vision to detect driver drowsiness and prevent accidents. The app monitors driver alertness through facial analysis and provides multi-level audio-visual alerts when signs of fatigue are detected.
- Real-time Face Detection: Continuous monitoring of driver's face using ML Kit
- Multi-level Drowsiness Detection:
- Eye openness tracking
- Head position monitoring
- Blink rate analysis
- Smart Alert System:
- WARNING: Notification sound with brief vibration
- SEVERE: Continuous alarm with extended vibration
- CRITICAL: Intensive alarm with pulsing vibration pattern
- Session Analytics: Track and analyze driving patterns
- Privacy-Focused: All processing done locally on device
- Battery Efficient: Optimized for minimal power consumption
[Add screenshots of your app here]
- Android SDK 24 or higher
- Android Studio Arctic Fox or newer
- Kotlin 1.8.0 or higher
- Device with front-facing camera
- Clone the repository:
git clone https://github.com/yourusername/DrowsyDriverApp.git
-
Open the project in Android Studio
-
Build and run the app:
./gradlew assembleDebug
The app follows MVVM (Model-View-ViewModel) architecture and uses modern Android development practices:
- UI Layer: Jetpack Compose
- Business Logic: ViewModel + Coroutines
- ML Processing: ML Kit Face Detection
- Camera: CameraX API
- Concurrency: Kotlin Coroutines + Flow
- AndroidX Core KTX
- Jetpack Compose
- CameraX
- ML Kit Face Detection
- Kotlin Coroutines
- Android Lifecycle Components
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This app does not collect or store any personal data. All face detection and drowsiness analysis is performed locally on the device. No images or data are transmitted to external servers.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- ML Kit for Face Detection
- Android CameraX team
- All contributors to this project
Your Name - @DineshR15567042
Project Link: https://github.com/Roxonn-FutureTech/DrowsyDriverAlertApp
If you use this app in your research, please cite:
@software{drowsy_driver_app,
author = {Dinesh Rampalli},
title = {Drowsy Driver Alert Safety App},
year = {2024},
publisher = {GitHub},
url = {https://github.com/Roxonn-FutureTech/DrowsyDriverAlertApp}
}