The Smart Traffic System is an intelligent traffic management solution that uses computer vision to reduce congestion and improve traffic flow. The system analyzes images from traffic cameras to detect and count vehicles using the YOLO object detection model and OpenCV.
Based on the number and types of vehicles detected, the system calculates the optimal green light duration for each road. The calculated signals are then sent from the Python program to an Arduino microcontroller through serial communication, which controls the traffic lights accordingly.
This adaptive approach allows the traffic lights to respond to real traffic conditions, helping reduce waiting time, improve traffic efficiency, and decrease fuel consumption.