Skip to content

Roxonn-FutureTech/AlertDrive

Repository files navigation

Drowsy Driver Alert Safety App 🚗

License API Kotlin

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.

Features 🌟

  • 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

Screenshots 📱

[Add screenshots of your app here]

Requirements 📋

  • Android SDK 24 or higher
  • Android Studio Arctic Fox or newer
  • Kotlin 1.8.0 or higher
  • Device with front-facing camera

Installation 🔧

  1. Clone the repository:
git clone https://github.com/yourusername/DrowsyDriverApp.git
  1. Open the project in Android Studio

  2. Build and run the app:

./gradlew assembleDebug

Architecture 🏗

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

Dependencies 📚

  • AndroidX Core KTX
  • Jetpack Compose
  • CameraX
  • ML Kit Face Detection
  • Kotlin Coroutines
  • Android Lifecycle Components

Contributing 🤝

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

Privacy Policy 🔒

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.

License 📄

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Acknowledgments 👏

  • ML Kit for Face Detection
  • Android CameraX team
  • All contributors to this project

Contact 📧

Your Name - @DineshR15567042

Project Link: https://github.com/Roxonn-FutureTech/DrowsyDriverAlertApp

Citation 📚

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}
}

About

AI-Powered Driver Safety System for Accident Prevention

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages