A smart traffic light focusing on computer vision and IoT to reduce traffic congestion in urban areas, while ensuring pedestrian safety