The Drive Guardians aims to address global challenges related to road accidents and car thefts using a combination of AI, Computer Vision, Machine Learning, and IoT technologies. The project introduces a connected anti-theft bar with advanced features to enhance vehicle security and promote driver safety.
- Anti-Theft Bar: Equipped with automatic lock and Bluetooth module linked to ELM327 for enhanced security.
- Driver Condition Monitoring: Mobile application detects fatigue, distraction, or intoxication and provides alerts.
- IoT Integration: Integrated into the anti-theft bar for improved functionality.
- Computer Vision System: Utilizes AI technology for facial detection, driver monitoring, and timely alerts.
In 2021, an estimated 2,497,657 people were injured in police-reported traffic crashes, with distraction-affected crashes accounting for 15% of injuries. Distracted driving plays a substantial role in motor vehicle crashes, highlighting the need for innovative solutions.
The Drive Guardians combines the anti-theft bar with advanced features and a mobile application for comprehensive security and driver safety. The project integrates IoT, AI, and Computer Vision technologies to provide real-time data, diagnostics, and emergency features.
- Face Detection: Unlocks the anti-theft bar for authorized users.
- Driver Condition Monitoring: Alerts and makes emergency calls in case of fatigue or distraction.
- IoT Integration: Real-time data on temperature, humidity, and vehicle diagnostics.
- Infrared and Phone Camera Options: Provides flexibility for face detection in various conditions.
To effectively run the Drive Guardians application, follow these steps:
- Ensure you have Python and Flask installed on your machine.
-
Open a terminal and navigate to the
backend-user
directory.cd backend-user
-
Install the required dependencies.
pip install -r requirements.txt
-
Run the Flask server.
python app.py
-
The backend server should now be running. Make note of the server address (e.g.,
http://localhost:5000
).
- Ensure you have Node.js and React Native installed on your machine.
-
Open a new terminal window and navigate to the
frontend
directory.cd frontend
-
Install the required dependencies.
npm install
-
Start the React Native application.
npx expo start # or run-ios for iOS
Ensure that you have an Android emulator or a connected Android device.
-
The React Native application should now be running.
-
Open the application on your mobile device or emulator and follow the authentication steps as prompted.
- Make sure both the backend-user and frontend applications are running simultaneously for the complete functionality of the Drive Guardians .
- Arduino Nano Board: Facilitates communication with the vehicle's onboard computer.
- ELM327 OBD-II Adapter: Provides diagnostic capabilities and real-time sensor data.
- Bluetooth Module (HC-05): Enables efficient communication between components.
- Electric Lock (12VDC): Integrated into the anti-theft bar for enhanced security.
- React Native: Front-end development for the mobile application.
- Flask: Backend for Computer Vision system.
- OpenCV: Integrated into the Computer Vision system for image and video analysis.
- Python: Primary programming language for AI model development and system integration.
- Express.js: Backend for Authentication and REST APIs.
- Authentication Page: User or company account creation with high-security measures.
- Detection: Face detection for unlocking the anti-theft bar.
- Home Page: Access to real-time data, diagnostics, and emergency features.
- Details: More detailed information about the vehicle.
- Emergency Call: Initiates emergency call if the driver does not respond to alerts.
Watch a brief video prototype showcasing the app's key features and user interactions.