AI-Powered Driving Learning Assistance
Drive.AI is a cutting-edge AI solution designed to enhance road safety by providing real-time object detection and analysis. Using state-of-the-art technologies, Drive.AI delivers valuable insights and voice instructions to drivers, helping them navigate roads more safely and effectively. We are proud to announce that Drive.AI won the Theme Prize for Road Safety at HackAthena 2024, recognizing the significant contribution our project makes to enhancing road safety using AI.
- Pedestrian Detection: Identifies and analyzes pedestrians crossing the road.
- Vehicle Recognition: Detects and classifies nearby vehicles, including cars, motorcycles, and trucks.
- Animal Detection: Recognizes animals crossing the road.
- Technology Used: Powered by Roboflow, enabling efficient and accurate object detection.
- YOLO (You Only Look Once): Leverages the YOLOv5 model for fast and accurate object detection and classification.
- JSON Output: The model generates a JSON output containing detected objects and their classifications, allowing for further analysis.
- JSON Parsing: Extracts relevant information from the YOLOv5-generated JSON output.
- AI-Powered Instructions: Uses OpenAI's API to generate dynamic responses based on the detected objects, providing actionable instructions to the driver.
- Prompting the API: Sends the class entity and prompt to OpenAI's API for precise instruction generation.
- Voice Instructions: Converts generated responses into real-time voice instructions using Google Text-to-Speech technology.
- Real-Time Assistance: Provides voice-based guidance to drivers based on detected objects, ensuring quick and safe decision-making on the road.
We are proud to announce that Drive.AI won the Theme Prize for Road Safety at [Event/Competition Name], recognizing the significant contribution our project makes to enhancing driver safety using AI.
The project is organized as follows:
Drive.AI/
│
├── data/
├── models/
├── src/
│ ├── object_detection/
│ ├── response_generation/
│ └── text_to_speech/
│
├── requirements.txt
├── config.py
└── README.md
To run Drive.AI locally, follow these steps:
-
Python 3.x – Ensure that Python is installed.
-
Install Dependencies – Install the necessary Python libraries using
pip
. Run the following command:pip install -r requirements.txt
-
API Keys – Make sure to set up your OpenAI API and Google Text-to-Speech API keys. Update the
config.py
file with your credentials.
-
Load YOLOv5 Model: Navigate to the
src/object_detection
directory and run the following command to load the YOLOv5 model and start object detection:python object_detection.py
-
Process Output: After object detection, the JSON output will be generated, containing information about the detected objects.
-
Generate Instructions: The
response_generation
script will parse the JSON output and send it to the OpenAI API for instruction generation.python response_generation.py
-
Text-to-Speech Output: Finally, the generated instructions will be converted into live voice instructions using Google Text-to-Speech.
python text_to_speech.py
To run the full process in one go, execute the main.py
script:
python main.py
This will load the model, detect objects, generate instructions, and provide voice-based assistance.
This project is licensed under the MIT License - see the LICENSE file for details.
We would like to extend our heartfelt thanks to the following individuals and organizations who made Drive.AI possible:
- YOLOv5: For providing the object detection model used in this project, enabling accurate and efficient detection of objects on the road.
- Roboflow: For offering tools and resources that helped preprocess and manage the datasets used in our object detection tasks.
- OpenAI: For powering our response generation, enabling real-time, context-aware instructions for drivers based on detected objects.
- Google: For their Text-to-Speech technology, which allowed us to convert text-based responses into real-time voice instructions.
- HackAthena 2024: For recognizing the impact of our project by awarding the Theme Prize for Road Safety, highlighting the importance of road safety in AI development.