Project Report
Project Report
ON
By
SONAWANE ANIKET PRADIP Exam No.-T150053284
VASEKAR PRATHAMESH R. Exam No.-T150053219
GUIDE:
Prof. L.P.PATIL
DEPARTMENT OF
ELECTRONICS AND TELECOMMUNICATION ENGINEERING
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE – 43
Vasekar Prathamesh R.
Abstract 1
List of Figures 2
List of Tables 3
Abbreviations 4
1 Introduction
1.1 Background and Context 6
1.2 Relevance 7
1.3 Literature Survey 9
1.4 Motivation 12
1.5 Aim of the Project 13
1.6 Scope and Objectives 13
2 Block Diagram
2.1 Technical Approach 14
2.2 Block diagram 15
2.3 Flow chart 16
2.4 Hardware / software resources 18
3 System Design
3.1 Circuit Diagram 19
3.2 Design Calculation 22
4 Implementation, Testing
4.1 Implementation 24
4.2 Testing and debugging 25
5 Results and conclusion
5.1 Results 27
5.2 Conclusion 27
5.3 Future scope 28
References 29
CHAPTER 1
Introduction
5 | P a g e Density based traffic control system,2021
1.1 Background: -
Nowadays traffic jams and congestion are a common issue because of the
day-by-day increment of numerous vehicles. A smart traffic control
system can be one of the solutions to the above problem. This can be
done by measuring the vehicular density on that road wherein real time
image and video processing techniques will be used. The main aim is to
coordinate the traffic by keeping a check of its density from all the sides
and thereby controlling the traffic signal intelligently. This paper will
present an algorithm so as to determine the number of vehicles on that
road. This density counting algorithm will work by the comparison
between one frame of the live video (real time) and the reference image
followed by looking for the vehicles in the desired region. The 0traffic
signal will be controlled smartly by comparing the vehicle density and the
direction of the traffic.
1.2 Relevance: -
Many types of traffic control systems have been introduced in order to
This belief has led to traffic control signals being installed at many
locations where they are not needed, adversely affecting the safety and
efficiency of vehicular, bicycle, and pedestrian traffic. Traffic control
signals, even when justified by traffic and roadway conditions, can be ill-
designed, ineffectively placed, improperly operated, or poorly
maintained. While traffic signals can help in locations where they are
justified and installed properly, they also have disadvantages. There will
always be some disadvantages even if the signal is justified.
II. Traffic signal cabinet containing the traffic signal controller and
Vehicle Detection Systems
I. Fixed-time mode: Under this mode, there are no detections for any
approach. The signal continuously cycles regardless of actual
III. Actuated mode: Under this mode, there are detections for all
approaches. The traffic signal is set to provide the green light “on
demand” or only in the presence of vehicles.
1.4 Motivation:
Traffic is the major problem which every country faces because of
CHAPTER 2
Description of Project
2) Among the key features of an image i.e., edges, lines, and points. We
have used edge in our present work which can be detected from the
abrupt change in the gray level. An edge essentially demarcates between
two distinctly different regions, which means that an edge is the border
between two different regions i.e., the edge of the cars in our case. Edge
detection methods locate the pixels in the image that correspond to the
edges of the objects (cars) seen in the image.
The result is a binary image with the detected edge pixels. Common
algorithms used are Sobel Edge Detection Technique, Perwitt Edge
Detection, Roberts Edge Detection Technique, Zero cross Threshold
Edge Detection Technique and Canny Edge Detection Technique.
this algorithm has been done and also further improvements are possible.
and evaluated against all the edges on the other image. Edge detection of
reference and the real time images has been done using canny edge
detection technique. Then this edge detected images are matched and
accordingly the traffic light durations can be set.
1] Image acquisition
3] Image enhancement
Explanation: -
5) Above process is done for all the four lanes/or any other numbers of
lanes. And lane with most traffic is given preference for clearance.
Libraries: -
1. Canny algorithm.
2. Image Processing toolbox.
3. Graphical user interface (Guide)
Hardware: -
1. INTEL 8051 MICROCONTROLLER.
2. 7-SEGMENT DISPLAY
3. TRAFFIC LIGHTS
4. PULL UP RESISTORS
CHAPTER 3
System Design
1)Image Acquisition: -
The first stage of any image processing operation is the image acquisition
stage. After the image has been obtained, various methods of processing
can be applied to the image to perform the many different tasks required
today. However, if the image has not been acquired satisfactorily then the
intended tasks may not be achievable, even with the aid of some form of
image enhancement. Digital image acquisition is the creation of digital
images, typically from a physical scene. The term is often assumed to
imply or include the processing, compression, storage, printing, and
display of such images. The most usual method is by digital photography
with a digital camera but
3)Edge Detection: -
In the ideal case, the result of applying an edge detector to an image may
lead to a set of connected curves that indicate the boundaries of objects,
the boundaries of surface markings as well as curves that correspond to
discontinuities in surface orientation. Thus, applying an edge detection
algorithm to an image may significantly reduce the amount of data to be
processed and may therefore filter out information that may be regarded
as less relevant, while preserving the important structural properties of an
image. If the edge detection step is successful, the subsequent task of
interpreting the information contents in the original image may therefore
be substantially simplified. However, it is not always possible to obtain
such ideal edges from real life images of moderate complexity. Edges
extracted from non-trivial images are often hampered by fragmentation,
meaning that the edge curves are not connected, missing edge segments
as well as false edges not corresponding to interesting phenomena in the
image
CHAPTER 4
Implementation and Testing
24 | P a g e Density based traffic control system,2021
4.1 Implementation:
2) Unable to use global variables for inside different call back functions.
Solution- use global a; inside every function and that variable will be
accessible inside that function.
CHAPTER 5
Results and conclusion
5.1 Results: -
26 | P a g e Density based traffic control system,2021
As we can see the output of GUI given above clearly indicates the
implemented results of the algorithm designed. The matching gives a
good result in every cases. It displays the timing for the
2) From this percentage we can determine that the lane having least
matched percentage with reference image (clear lane) have the highest
traffic density.
3) From the matched percentage further, green light time is allocated for
each lane according to percentage match.
4) And accordingly, all lanes are cleared without much time wasted.
5.2 Conclusion: -
References