Intelligent Traffic Management System Using The Internet of Things
Intelligent Traffic Management System Using The Internet of Things
Prof. P.R.Pagar
Certificate
This is to certify that the project report entitled “Intelligent traffic
management system using the Internet of Things” has been
successfully completed by:
With deep sense of gratitude, we would like to thank all the people who have lit
our path with their kind guidance. We are very grateful to these intellectuals who did
their best to help during our project work.
It is our proud privilege to express deep sense of gratitude to, Prof. P.M.
Dharmadhikari, Principal of Sandip Polytechnic, Nashik, for his comments and kind
permission to complete this project. We remain indebted to Prof. V. B. Ohol, H.O.D
Information Technology Department for their timely suggestion and valuable
guidance.
The special gratitude goes my guide Prof. P.R.Pagar and staff members,
technical staff members of Information Technology Department for their expensive,
excellent and precious guidance in completion of this work. We thank to all the
colleagues for their appreciable help for our working project.
With various industry owners or lab technicians to help, it has been our
endeavour to throughout our work to cover the entire project work.
We are also thankful to our parents who providing their wishful support for our
project completion successfully.
And lastly, we thanks to our all friends and the people who are directly or
indirectly related to our project work.
Punam Kakuste
Rutuja Patil
Dhiraj Girdhani
Harsh Kabra
INDEX
Page
Chapter No. Particular No.
Abstract 1
1 Preamble 2
1.1 Introduction 2
1.2 Review of Literature 3
1.3 Problem Statement 4
1.4 Proposed System 5
1.5 Feasibility Study 6
2 SDLC Model – Spiral Model 7
2.1 Methodology 8
3 Software Requirement Specification 9
3.1 Requirements of System 9
3.1.1 Hardware Requirement 9
3.1.2 Software Requirement 9
3.2 Data Requirement 9
3.3 Functional Requirement 9
3.4 External Requirement 9
4 System Modelling 10
4.1 Dataflow Diagrams 10
4.2 UML Diagram 12
5 Implementation Details 13
5.1 Implementation 14
5.1.2 Platform Used 15
5.2 Modules and Language Used 16
5.3 Cost 17
6 Coding 18
7 Testing 23
7.1 Unit Testing 23
7.2 System / Integration Testing 23
7.3 Test Cases and Results 24
8 Conclusion 25
8.1 Advantages 26
9 Future Scope 27
10 References 28
11 Appendix A 29
FIGURE INDEX
Figure Particular Page No
No.
2.1.1 Spiral Model 7
TABLE INDEX
Table No. Particular Page No
Abstract
Page 1
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
CHAPTER NO:1
PREAMBLE
Page 2
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
Page 3
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
1.1 INTRODUCTION
Page 4
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
Page 5
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
country. However, with an increasing population and vehicles in urban areas traffic
Page 6
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
congestion is becoming one of the major and challenging issues in metro cities. It
Page 7
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
creates many problems such as travelling time delays between two major cities, fuel
Page 8
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
wastage at road junctions, and air pollution due to the emission of CO2 and other air
Page 9
Department of Information Technology, Sandip Polytechnic, Nashik
Intelligent traffic management system using the Internet of Things
pollutants, resulting in various health hazards. To resolve the above issue proposed
Page
Department of Information Technology, Sandip Polytechnic, Nashik 10
Intelligent traffic management system using the Internet of Things
system is introduced.
Page
Department of Information Technology, Sandip Polytechnic, Nashik 11
Intelligent traffic management system using the Internet of Things
Dynamic traffic management using image processing is a field that involves using
Page
Department of Information Technology, Sandip Polytechnic, Nashik 12
Intelligent traffic management system using the Internet of Things
cameras and computer vision algorithms to monitor and control traffic flow. This
Page
Department of Information Technology, Sandip Polytechnic, Nashik 13
Intelligent traffic management system using the Internet of Things
technology can help to reduce traffic congestion, improve safety, and increase the
Page
Department of Information Technology, Sandip Polytechnic, Nashik 14
Intelligent traffic management system using the Internet of Things
efficiency of transportation systems. One way to use image processing for dynamic
Page
Department of Information Technology, Sandip Polytechnic, Nashik 15
Intelligent traffic management system using the Internet of Things
traffic management is to analyze live video feeds from cameras placed at strategic
Page
Department of Information Technology, Sandip Polytechnic, Nashik 16
Intelligent traffic management system using the Internet of Things
locations on roadways. Computer vision algorithms can be used to detect and track
vehicles, pedestrians, and other objects in real time. This information can then be used
Page
Department of Information Technology, Sandip Polytechnic, Nashik 17
Intelligent traffic management system using the Internet of Things
to optimize traffic signals, reroute vehicles, or provide drivers with real-time traffic
updates.
Page
Department of Information Technology, Sandip Polytechnic, Nashik 18
Intelligent traffic management system using the Internet of Things
Another way to use image processing for traffic management is to use sensors
embedded in the road surface to detect the presence of vehicles and estimate their
Page
Department of Information Technology, Sandip Polytechnic, Nashik 19
Intelligent traffic management system using the Internet of Things
speed and direction of travel. This data can be combined with video feeds and other
time. Image processing can also be used to monitor traffic and detect incidents such as
Page
Department of Information Technology, Sandip Polytechnic, Nashik 20
Intelligent traffic management system using the Internet of Things
accidents or congestion. This information can be used to alert drivers and emergency,
Overall, dynamic traffic management using image processing has the potential to
Page
Department of Information Technology, Sandip Polytechnic, Nashik 21
Intelligent traffic management system using the Internet of Things
requires sophisticated algorithms and infrastructure, and careful consideration of
privacy concerns related to the collection and use of video data.
Overall, the literature survey indicates that the use of image processing techniques
and OpenCV for traffic management systems is a popular research area. Many studies
have proposed different approaches for vehicle detection and tracking, traffic flow
analysis, and adjustment of traffic signals using these technologies. The proposed
system in this paper adds to this research area by proposing a dynamic traffic
management system that utilizes real-time traffic data to optimize traffic flow and
reduce congestion.
Page
Department of Information Technology, Sandip Polytechnic, Nashik 23
Intelligent traffic management system using the Internet of Things
In urban areas, the traffic system is one of the significant indicators to show the
growth and progress of a city and it also influences the quality of life of people living
in metropolitan cities. In recent years, there is a significant increase in the usage of
road vehicles which is becoming challenging for existing transportation systems. The
currently deployed traffic system is not based on the traffic congestion level and a
predefined time is allocated for traffic lights at every road crossing which results in
traffic congestion and the situation becomes worst during peak traffic hours.
This high-level traffic congestion contributes to pollution through the emission
of CO 2 and several other pollutants into the air. Moreover, it also causes a tripling of
fuel consumption and consequently put adverse effects on the economy as well. To
address the above problem, this paper presents the development of a congestion level-
based dynamic traffic management system using IoT. It regulates the traffic light
duration based on the real-time congestion level of the traffic measured at the road
crossings by using the camera. Additionally, the traffic details send to various
platforms like local news websites, radio stations, etc.
Technical Feasibility:
The technical feasibility of the project will be evaluated based on the availability of
the technology required for the development of the system. The system requires
cameras, sensors, image processing software, and network infrastructure to transmit
the data. The technology required for the development of the system is readily
available in the market.
Economic Feasibility:
The economic feasibility of the project will be evaluated based on the cost of
development, maintenance, and operation of the system. The cost of developing the
system will depend on the complexity of the system and the technology used. The
cost of maintenance and operation of the system will depend on the number of
cameras and sensors used, the network infrastructure, and the manpower required.
The cost of the system can be offset by the benefits it provides such as reduced traffic
congestion, improved safety, and reduced travel time.
Operational Feasibility:
The operational feasibility of the project will be evaluated based on the ability of the
system to meet the requirements of the end users. The system should be user-friendly,
reliable, and provide accurate data in real-time. The system should also be scalable to
accommodate future expansion and modifications. The system should be able to
handle high traffic volumes and provide uninterrupted service.
CHAPTER NO: 2
SYSTEM ARCHITECTURE
2.1 METHODOLOGY
The SDLC (Software Development Life Cycle) spiral model is a popular approach to
software development that involves iterative cycles of planning, design, development,
and testing. In the context of an Intelligent Traffic Management System using Image
processing project, the SDLC spiral model can be adapted as follows:
1. Planning: The first phase involves identifying the project goals and
objectives, as well as defining the scope of the project. This may include
identifying the types of cameras and sensors to be used, the number of
intersections to be monitored, and the types of traffic incidents to be detected.
2. Risk Analysis: This phase involves identifying potential risks and issues that
may arise during the project, such as technical limitations or unforeseen
obstacles. This helps the project team to plan for contingencies and adjust the
project plan as necessary.
3. Design: In this phase, the project team designs the system architecture and
creates detailed specifications for the software development. This may include
defining the algorithms and techniques to be used for image processing and
traffic analysis.
4. Development: The actual software development takes place in this phase,
with the project team building and testing the software according to the
specifications created in the design phase.
5. Testing: This phase involves testing the software to ensure that it meets the
requirements and specifications of the project. This may include testing for
accuracy and reliability of image processing algorithms and traffic
management functionalities.
6. Deployment: In this phase, the software is released and installed in the
intended environment, which in this case would be at the traffic intersections
being monitored.
7. Maintenance: The final phase of the SDLC spiral model involves on-going
maintenance and support of the system. This may include troubleshooting and
bug fixes, updates and enhancements to the system, and on-going monitoring
and maintenance of the hardware and software components.
Overall, the SDLC spiral model can provide a framework for the development of an
Intelligent Traffic Management System using Image processing project, allowing for
an iterative and adaptable approach to the development and maintenance of the
software.
CHAPTER NO: 3
SOFTWARE REQUIREMENT SPECIFICATION
CHAPTER NO: 4
SYSTEM MODELING
The Traffic Management System class represents the main system that
manages cameras, vehicles, and vehicle counts. It has lists of cameras,
intersections, vehicles, and vehicle counts. It has methods to add new
instances of these objects and to process an image captured by the cameras.
3. Sequence Diagram
A sequence diagram is a type of interaction diagram that illustrates the
interactions and messages exchanged between objects in a particular scenario
or use case. It shows the sequence of events and the order in which the objects
communicate with each other to achieve a specific task.
Sequence diagrams are also useful for documenting and communicating the
interactions between different components of a system, especially in complex
or distributed systems where many objects interact with each other. They are a
valuable tool for system analysts, developers, and other stakeholders to
understand the behaviour of a system and to identify areas for improvement or
optimization.
CHAPTER NO: 5
IMPLEMENTATION DETAILS
5.1 IMPLEMENTATION
First, the video data of the traffic scene are entered. Then, the road surface
area is extracted and divided. The YOLOv3 deep learning object detection
method is used to detect the vehicle object in the highway traffic scene.
Finally, ORB feature extraction is performed on the detected vehicle box to
complete multi-object tracking and obtain vehicle traffic information.
After counting vehicles for all the lanes system predicts the stop time for each
signal and sends these values to the microcontroller.
Also, these data are published over the cloud for remote monitoring using the
internet of things technology.
5.2 MODULES
Image Capturing
Vehicle detection
Vehicle Counting
Send data to Cloud
Dashboard
5.3 COST
Time Estimation
The working days: 25 days * 8 months: 200 days
The working hours per day: 6 hours
The total time span for development: 1200 hours
Cost Estimation
Camera cost: 2100 Rs.
Cloudcost = 6 months * 350/month: 2100 Rs/-
Installation of packages cost: 1000Rs/-
So the total cost for the project will be approximately:5200 Rs./-
CHAPTER NO: 6
CODING
import cv2
import numpy as np
<html>
<head>
<title>Traffic Monitoring Dashboard</title>
<metaname="viewport"content="width=device-width, initial-scale=1">
<linkrel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/
4.5.2/css/bootstrap.min.css">
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery
.min.js"></script>
<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/u
md/popper.min.js"></script>
<scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootst
rap.min.js"></script>
</head>
<body>
</tbody>
</table>
</div>
</div>
labels:['6am','7am','8am','9am','10am','11am','12pm','1pm','2pm','3pm
','4pm','5pm','6pm','7pm','8pm','9pm','10pm'],
datasets:[{
label:'Traffic Volume',
data:[100,200,300,400,500,600,700,800,900,800,700,600,500,400,300,200
,100],
backgroundColor:'rgba(54, 162, 235, 0.2)',
borderColor:'rgba(54, 162, 235, 1)',
borderWidth:1
}]
},
options:{
scales:{
yAxes:[{
ticks:{
beginAtZero:true
}
}]
}
}
});
data:[500,250,400],
backgroundColor:[
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)'
],
borderColor:[
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)'
],
borderWidth:1
}]
}
});
</script>
</body>
</html>
CHAPTER NO: 7
TESTING
Status Pass.
Table 7.3.2 - Test Case 2
CHAPTER NO: 8
CONCLUSIONS
The Intelligent Traffic Management System using Image Processing project has
shown promising results in improving the efficiency of traffic management on roads.
The project utilizes real-time image processing techniques to detect and track
vehicles, analyze traffic density, and control the traffic lights accordingly.
The system's ability to adapt to changing traffic conditions, provide real-time
information to commuters, and optimize traffic flow has the potential to reduce traffic
congestion, improve road safety, and enhance the overall travel experience. Moreover,
the project's use of machine learning algorithms and computer vision techniques has
shown that advanced technologies can play a crucial role in solving complex real-
world problems.
However, the project still has some limitations that need to be addressed. For
example, the accuracy of the system depends on the quality of the image captured,
and adverse weather conditions may impact the system's performance. Additionally,
the cost of deploying the system on a large scale may be a significant barrier to its
widespread adoption.
Overall, the Intelligent Traffic Management System using Image Processing project
provides a promising approach to address traffic management challenges in urban
areas, and with further development and refinement, it has the potential to make a
significant positive impact on the transportation sector.
ADVANTAGES
Intelligent Traffic Management System (ITMS) using Image processing project has
numerous advantages, including:
1. Improved Traffic Flow: ITMS can help to improve the flow of traffic by
optimizing the timing of traffic signals and managing traffic based on real-
time data.
2. Reduced Congestion: By reducing waiting times and enabling more efficient
use of road space, ITMS can reduce congestion on roads, thereby improving
the overall travel experience.
3. Enhanced Safety: ITMS can help to reduce the number of accidents on roads
by monitoring traffic and identifying potential hazards such as traffic
congestion, lane changes, and pedestrian crossings.
4. Cost-Effective: Implementing an ITMS is often more cost-effective than
traditional traffic management methods, such as constructing new roads and
bridges.
5. Real-Time Monitoring: ITMS allows for real-time monitoring of traffic
conditions and can provide up-to-date information to drivers, which can help
them make informed decisions about their travel routes.
6. Reduced Carbon Footprint: By reducing congestion and optimizing traffic
flow, ITMS can also help to reduce the carbon footprint of the transportation
sector.
7. Improved Public Transportation: ITMS can help to improve public
transportation by providing real-time information on traffic conditions,
allowing buses and trains to optimize their routes and schedules.
CHAPTER NO: 9
FUTURE SCOPES
Overall, the future of ITMS using Image Processing is bright, with potential to create
a more efficient and safe traffic system that benefits both drivers and the environment.
CHAPTER NO: 10
REFERENCES
CHAPTER NO:
11 APPENDIX A
SCREENSHOTS