This project dynamically allocates traffic signal timings based on real-time vehicle count using a YOLOv5-based object detection model. The system adjusts signal duration to optimize traffic flow, reducing congestion and improving emergency vehicle response times.
Setup
git clone https://github.com/reyy/Traffic-SIH.git cd Traffic-SIH/smart
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.py
Installation Prerequisites
Python 3.7+ Pip Virtual environment (optional but recommended) PyTorch and dependencies for YOLOv5