This project aims to create a smart traffic system using IoT sensors, AI models, and a web dashboard to monitor and manage traffic data.
- Backend: Flask application to manage traffic data.
- IoT: Script to send traffic data from sensors.
- Web Dashboard: HTML, CSS, and JavaScript to display live traffic data.
- AI Model: YOLOv5 model to detect vehicles in a video.
-
Install dependencies:
pip install -r backend/requirements.txt
-
Run the Flask application:
python backend/app.py
-
Open index.html in a browser to view live traffic data.
-
Run the IoT sensor script:
python iot/sensor_data.py
-
Run the traffic signal adjustment script:
python backend/traffic_signal.py
-
Run the vehicle detection script:
python ai_model/vehicle_detection.py