The problem of traffic congestion has led to several issues like an increase in carbon dioxide emission including the inability to route emergency vehicles on a priority. Hence we aim to find an optimized approach, allocating resources based on the traffic condition at that particular instant. This could be realized by analysing the traffic data relayed by device nodes present all over the city in a real-time environment. The node is a cloud-linked camera-integrated MPU equipped with GSM communication. The captured video frames are processed which is then analysed collectively to suggest the most appropriate route to the vehicles.