Urban traffic has become increasingly congested in recent years due to the prevalence of personal vehicles. As a result, one of the major issues in major cities around the world is traffic. Congestion, accidents that take a lot of time and result in property damage, and environmental pollution are some of the traffic- related issues. In this research paper, an automated and intelligent traffic control system that makes use of computer vision and image processing techniques is designed and put into operation. The algorithm counts the number of vehicles on each route and provides an optimal waiting period based on the number of vehicles loaded onto each road. A dynamically managed traffic system can take the place of the traditional fixed-time, present traffic system using this completely automated approach. Low-cost image processing and traffic load balancing are the main topics of this study.