Efficient Density Based Traffic Control System
Traffic congestion is a serious problem nowadays. It pervades in almost every mega city of Pakistan especially Karachi, Lahore and Rawalpindi. And it's ever increasing nature makes it imperative to know the road traffic density in real time for better signal control and effective traffic management.
2025-06-28 16:32:19 - Adil Khan
Efficient Density Based Traffic Control System
Project Area of Specialization Artificial IntelligenceProject SummaryTraffic congestion is a serious problem nowadays. It pervades in almost every mega city of Pakistan especially Karachi, Lahore and Rawalpindi. And it's ever increasing nature makes it imperative to know the road traffic density in real time for better signal control and effective traffic management. There can be different causes of congestion in traffic like insufficient capacity, unrestrained demand, large Red Light delays etc. While insufficient capacity and unrestrained demand are somewhere interrelated, the delay of respective light is hard coded and not dependent on traffic. In recent years, video monitoring and surveillance systems have been widely used in traffic management for traveler’s information, ramp metering and updates in real time. The traffic density estimation and vehicle classification can also be achieved using video monitoring systems. Our aim in this project is to design intelligent traffic control system which controls heavy traffic via image processing. Using different
types of image processing algorithms, the vehicles can be detected on basis of which traffic lights can switch. It also focuses on the algorithm for switching the traffic lights according to vehicle density on road, thereby aiming at reducing the traffic congestion on roads which will help lower the number of accidents. In turn it will provide safe transit to people and reduce fuel consumption and waiting time. It will also provide significant data which will help in future road planning and analysis. In further stages multiple traffic lights can be synchronized with each other with an aim of even less traffic congestion and free flow of traffic.
- Our aim in this project is to design intelligent traffic control system which controls the heavy traffic in big cities of Pakistan.
- Our objective is to create a more smart traffic system than existing.
- The initial step is to obtain image of the road without vehicles, taken as the reference image.
- Then images of the road with vehicles are taken periodically as the current image.
- Set threshold value.
- Find the difference between the two images by using abs() [absolute].
- If difference between the two images is greater than the threshold value then those will be displayed as blobs at the output.
- then we apply some marphological operations upon giving results
- Add Gaussian noise to the output image and filter it using wiener filter.
- Count the no. of blobs by using bwconncomp.
- The number of blobs gives the number of vehicles present in the image. Which gives density of traffic.
- upon that desity time allocation of traffic light is being done.
- Advance method for controlling traffic lights.
- Intelligent traffic control method to save the time.
- This system can installed good infrastructure.
- Reduce the traffic jams and avoid noise and air pollution.
1.Algorithm / Code
- Vehicle Detection and Density measuring algorithm.
- Arduino code to implement Matlab algorithms on hardware.
2. Hardware
- A traffic light module controlled by Arduino in real time.
| Item Name | Type | No. of Units | Per Unit Cost (in Rs) | Total (in Rs) |
|---|---|---|---|---|
| Total in (Rs) | 49000 | |||
| Camera | Equipment | 1 | 20000 | 20000 |
| Traffic Light | Equipment | 1 | 20000 | 20000 |
| Ethernet cable | Equipment | 1 | 3000 | 3000 |
| Power cable | Equipment | 1 | 2000 | 2000 |
| Relay system | Equipment | 1 | 500 | 500 |
| Aurdino | Equipment | 1 | 500 | 500 |
| labour | Miscellaneous | 1 | 3000 | 3000 |