From the standpoint of the problem of congestion and traffic jams in the roads and the lack of time when the light signals were designed and narrow streets compared to the increase in the number of vehicles annually, the constant time of green light becomes less effective at peak hours, which is increasing significantly, leading to the accumulation of vehicles at intersections came the idea of this project in the design of a program that sets the time for green light each time based on the volume of traffic in the street using traffic cameras and take advantage of the modern programming techniques of programming languages and its libraries instead of sensors proving ground in the road (Inductive Loops), which can be expensive and the distortion of the view of the road with limited functionality compared with surveillance cameras.