Skip to content

Akshat-Raii/DriverSentinel

Repository files navigation

Driver Sentinel 🚗

Welcome to the Driver Sentinel! This application aims to enhance road safety by incorporating features such as drowsiness detection, seatbelt monitoring, and driving license verification. With AI-powered systems, this app ensures a safer driving experience for everyone.

Features ✨

  • Drowsiness Detection: Tracks the driver's eye movements to detect signs of fatigue and triggers an alarm. 💤
  • Seatbelt Detection: Monitors if the driver and passengers are wearing seatbelts, ensuring compliance with safety protocols. 🎗️
  • License Detection: Identifies and verifies driving licenses using advanced object detection. 📜
  • Streamlit Dashboard: Provides a real-time interface for easy monitoring and alerts. 🌐

Hosted Version 🌐

A hosted version of the Driver Sentinel app is available at: Driver Sentinel

⚠️ Warning: Try to revert to local installation and use of the Streamlit app instead of hosted version as Streamlit cloud doesn't currently supports live webcam features . So you have to run the app locally by following the below mentioned steps .

How to Use 🚀

1. Clone the Repository

git clone https://github.com/yourusername/driver-sentinel.git
cd driver-sentinel

2. Install Dependencies

pip install -r requirements.txt

3. Running Individual Detection Features

You can run specific detection features by navigating to their respective folders and executing the Python scripts:

  1. Drowsiness Detection
    cd DriverDrowsiness
    python detect_drowsiness.py
    
  2. Seatbelt Detection
    cd SeatBelt_Detection
    python detectSeatBelt.py
  3. License Detection
    cd DrivingLicense_Detection
    python detect_license.py
  4. Running the Full Dashboard To view all features in a single dashboard:
    cd web_app
    streamlit run app.py

Contributing 🤝

  1. Fork the repository.

  2. Create a new branch:

    git checkout -b feature-branch
  3. Make your changes. ✏️

  4. Commit your changes:

    git commit -am 'Add new feature'
  5. Push to the branch:

    git push origin feature-branch
  6. Open a pull request.: 📥

Project Structure 🗂️

  • DrowsinessDetection/: Contains code and resources for detecting drowsiness.
  • SeatBelt_Detection/: Houses scripts for real-time seatbelt usage monitoring.
  • License_Detection/: Includes tools for driving license verification.
  • web_app: Main file to run the Streamlit dashboard.
  • requirements.txt: Python dependencies for the project.

Dependencies 🧩

The project relies on the following Python packages:

  • TensorFlow
  • OpenCV
  • Streamlit
  • NumPy
  • Matplotlib
  • Seaborn
  • YOLOv8
  • Keras
  • scikit-learn
  • playsound

Stay safe and drive responsibly! 🚦

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors