The document describes a system to automate traffic light timing using image processing and edge detection. Current traffic images are uploaded and processed using Canny edge detection to extract vehicle edges. The number of detected edges is counted and compared to a reference image to calculate traffic density. Based on the density, the system allocates a green light time between 20-60 seconds - the higher the density, the longer the light. It is designed to improve on manual traffic light timing by dynamically adjusting the lights to current congestion levels.