SlideShare a Scribd company logo
1 of 8
Download to read offline
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
167
Automatic Traffic Estimation Using Image Processing
Pejman Niksaz
Science &Research Branch, Azad University of Yazd, Iran
Pezhman_1366@yahoo.com
Abstract
As we know the population of city and number of cars is increasing day by day. With
increasing urban population and hence the number of cars, need of controlling streets,
highways and roads is vital. In this paper, a system that estimates the size of traffic in
highways by using image processing has been proposed and as a result a message is
shown to inform the number of cars in highway. This project has been implemented by
using the Matlab software and it aims to prevent heavy traffic in highways. Moreover, for
implementing this project following steps must be considered: 1) image acquisition 2) RGB
to grayscale transformation 3) image enhancement and 4) morphological operations. At
first, film of highway is captured by a camera has been installed in highway.
Then, the film comes in the form of consecutive frames and each frame is compared with
the first frame. After that, the number of cars in highways is specified. At the end, if the
number of cars is more than a threshold, a message is shown to inform the traffic status.
By this message we can predict the need to reduce the size of traffic carried. Experiments
show that the algorithm will work properly.
Keywords: traffic analysis, image processing, motion vehicle tracking, filteration,
morphological operation, gamma correction
1. Introduction
Most of the city traffic is controlled by sensors and cameras shall be installed in big
highways and streets. But existence of a system for detecting the size of traffic
automatically will be felt [1]. Such systems can allows to extract information from the
bigger traffic issue and helps us decide to improve the traffic policy [3, 4] .The paper aims
to render automate control system for traffic on highways and streets [2].
The system using image processing has been implemented where upon it entailed the
following results: 1) Density 2) Streets and roads in order to census counted three cars 3)
monitor off roads 4) Detect the occurrence of accidents and violations occurred as well as
motion detection car is a dangerous spiral[7].Scientists and other researchers suggested
other different ways . Technically, this system is based on computers and cameras. The
project components includes: (A) hardware model (B) software model [1, 2].
A) Hardware model:
Image sensors: In this project the images are captured by a USB web camera have been
used. PC: a pc as a general purpose central unit for various image processing tasks has
been used.
B) Software model:
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
168
For our algorithm; software Matlab has been used. Some steps for implementing this
algorithm are as follows: Receiving video via camera and convert video input to two
images RGB to Grayscale conversion on received images image
enhancement Morphological operations. The rest of the paper has been divided as
follows: In Section 2 the main steps of suggested method is proposed. The gamma
correction for image enhancement is discussed in Section 3. Section talks about the
different types of vehicle tracking and operations. In Section morphological operation
has been presented. Rest of the paper shows the suggested algorithm and flowchart in
summary and Section deals with the results of experiments. Last section talks about
conclusion.
2. Our Proposed Method:
Our proposed method consists of two phases.
Phase 1:
First images are captured by camera. The first images of highway when there is no traffic
will be taken. The first image of highway has been considered as a reference file and stored
in a specific location in the program. RGB to Grayscale Conversion in order to achieve
image enhancement is done.
Phase 2:
At first, images are captured from the highway. RGB to Grayscale conversion has done
on the hierarchy of images. Then, gamma correction has been applied on each Gray images.
At the end, vehicle tracking is done. Generally, vehicle tracking included two parts: 1)
Background elimination; 2) lane masking.
3. Gamma correction
There are lots of method can be utilized for Gamma correction. One of the most
significant methods has been proposed in this paper is called Image enhancement.
For achieving to Gamma correction, the relationship between light input and output
signals must be considered. This has been defined by following equation:
( ( (
( ( is output signal gain and a constant is the exposure time that is
related to intensity and specifies the number of vehicles is linear. Thus, when , a
double logarithmic plot of exposure time or intensity versus output current will yield a
straight line. A majority of the video camera systems utilized in optical microscopy adhere
to this relationship. Since , dark features in the image become brighter, but overall
image contrast is reduced between the very bright and midtone grayscale values. When
, bright features become darker and overall contrast is increased. It should be
noted that image contrast adjustments using gamma should be that image contrast
adjustments using gamma correction factors enable utilization of the entire range of pixels
in the image.
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
4. Types of Vehicle Tracking
For analyzing vehicle tracking in video sequences, two methods are common:
1) Object definition based on object contour extraction
2) Vehicle tracking based on motion detection
Figure 1. Mathematical Graph Changes Gamma for 20th Frame
4.1. Vehicle Tracking based on Contour Extraction
Vehicle tracking based on contour extraction is one of the most common methods for
tracking vehicles. This type of tracking has been consisted of six steps. Each step has its
specific algorithm. As an example, Lane masking method has been used to separate
vehicles in one direction. This is important because it allows the processing of data over a
frame to be done. The formula for Masking Algorithm is as follows:
( ( (
Where ( is amount of the point in original frame and ( ( ( is the
new point in output image. Considering the above formula, ( is the value for masking
point such as P. If pixel has been removed, ( ; otherwise, ( . Masking must
be applied to each RGB image separately.
Figure 2. a) Background Image b) After Gamma Correction c) After
Subtraction
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
170
The algorithm eliminates all objects shared in background frame with other frames and
just will be left the vehicles has been added to other frames. The algorithm may be
influenced by conditions such as swinging trees, move lawn lighting, the clouds, rain, snow
and the others. In practical applications, some other factors like season, weather and etc.,
should be considered. The algorithm has been applied using the following equation:
( ( (
In this equation, ( is the average of the RGB values for each point such as in the
background of chosen frames. Moreover, ( shows the pixel color value for point
in a frame such as . RGB image has been generated by removing background traffic
image such as ( . The results have shown in Figure 4. Then, a vehicle frame must be
put in the observation area. This operation can be done by the edge detection algorithm
based on computing image derivatives. The first derivative must be calculated in order to
detect some modifications in density image frame rate. For determining the maximum rate,
Second derivative has been considered. The important thing is that to know there isn't only
a general recognition technique for all images work well. Some recognized algorithms are
useful for applying median filteration. These methods have been used for edge detection
techniques. Three kinds of these methods have been presented as follows:
1) Laplace 2) Sobel 3) Prewitt.
All methods mentioned above do mask or kernel operations that provide the following
results:
Sx= (a2+a3+a4)- (a0+ca7+ a6)
Sy= (a0+a1+a2)- (a6+ca5+ a4)
Sx= (a2+a3+a4)- (a0+ca7+a6) is Gradient in direction and Sy= (a0+a1+a2)- (a6+ca5+ a4) is
Gradient in direction and is the module of Gradient.
i is pixel covered by mask . refers to move from the top left
corner that the mask off has begun. If the threshold is much larger than (
, ( , otherwise ( . Mask off almost has been applied on
all image pixels except the edge area. As a result, image size has decreased because of
border effects of 2 pixels in each direction. Gradient in direction and has been
illustrated in Figure 3.
The symbol " " means the partial derivative has been calculated as the difference
in density between two points are adjacent (the difference between them is equal to 1).
Figure 3. Derivative in Direction Derivative in Direction
Sobel filter is very similar to Prewitt. The only difference is weighting coefficient that
for Prewitt filter is equal to . If early images are good contrast and be without noise, they
are also appropriate for edge extraction.
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
As mentioned above, when the field gradient is larger than the threshold, the larger
value will be considered.
Another method can be considered, is to assume that the gradient is larger when the
second order intensity gradients of zero crossing according to the gradient field operations
compared to zero crossing.
After all, Gauss Laplace equation with an additional derivative conducted by Gaussian
Convolution has been presented as follows:
( ( (
( ( (
In this equation, is considered as width of gauss function such as .
Contour linking: the next step of processing is connecting the separate sections of the
original objects into a closed contour .to ensure, suppose the RGB image has been
converted to binary.
In general, the two methods of edge linking are classified as follows:
1) Local edge linkers that connect any point consider neighbors.
2) Global edge linkers that consider all edge points at the same time according to the
equation constraints similarities edge.
Contour labeling has been utilized to mark and count the frames. For vehicle tracking in
the video hierarchy should mark through the image.
Another method is marking the geometric center of an image. For finding the geometric
center of an image following equation has been used.
Where, and are the center coordinate of vehicles and
are axes coordinate of image points limit.
To tracking our vehicles all intervals between image frames n in the vehicles and all
vehicles in the coordinate frame ( of centers should be off. In summary, by
using the following equation vehicle tracking can be applied.
dx= [(xk-xc)2+(yk-yc)2]1/2
4.2. Vehicle Tracking based on Motion Detection
Active contour based tracking; a dual to the region based approach is tracking based on
active contour models, or snakes. The main idea of this work is to have a representation of
the bounding contour of the object and keep it updating dynamically. One of the
advantages of having a contour-based representation instead of a region based
representation is reducing the computational complexity.
However, the inability to segment vehicles that are partially occluded remains. If one
could initialize a separate contour for each vehicle, then one could track even in the
presence of partial occlusion ( . Moreover, initialization is the
difficult part of the problem! Consider the example: if the vehicles enter the detection
region partially occluded, the system will group two vehicles into a single object and it will
cause to significant measurement errors.
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
172
5. Morphological Operation
While point and neighborhood operations are generally designed to modify the look or
appearance of an image for visual considerations, morphological operations have been used
to understand the structure or form of an image.
There are three primary morphological functions for achieving these objectives: 1)
erosion 2) dilation and 3) hit-or-miss. Morphological operations usually have been
performed on binary images where the pixel has two values; or . Value of zero has been
considered as black and value of 1 as white. Most of the morphological functions operate
on pixel neighborhoods. The pixel neighborhood is identified into one of two ways;
sometimes interchangeably. The pixel of interest lies at the center of the neighborhood and
has been labeled . The surrounding pixels are referred to , or by their compass
coordinate and .
In this paper some morphological operations has been done on binary images.
After subtraction, certainly some additional points on the image in order to subtraction
have been left and with morphological operation in these parts remove additional points
have been removed.
Initially, the objects on the image resulting from subtraction must be removed and then
interior and border areas of mark cars in the image resulting from subtraction have been
traced.
Figure 4 illustrates morphological operation on the resulting image subtracted.
Figure 4. Image Subtraction
6. Algorithm in Sumarry:
1-start
2-receive the first frame of movie
3-RGB to grayscale conversion
4- for {
vehicle tracking on the image;
5- if {number of cars> threshold}
print traffic is heavy;
Else
Write the number of frames under the movie;
End
End
6- Go to 4
End
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
The flowchart of proposed method is illustrated in Figure 5.
Figure 5. Flowchart of Proposed Method
7. Conclusion
In this paper, a method for estimating the traffic using Image Processing is presented.
This is done by using the camera images captured from the highway and videos taken are
converted to the image sequences. Each image is processed separately and the number of
cars has been counted. If the number of cars exceeds a specific threshold, warning of heavy
traffic will be shown automatically. The advantages of this new method include such
benefits as: 1) Non-use of sensors 2) Low cost and easy setup and relatively good accuracy
and speed. Because this method has been implemented using Image Processing and Matlab
software, production costs are low while achieving high speed and accuracy. In this respect,
the method is superior to previously published designs. The method presented in this paper
is simple and there is no need to use sensors that have been commonly used to detect traffic
in the past. However, one of the most important disadvantages of this method is extreme
sensitivity to light. For example, when installed in the road, changes in sun light potentially
cause interference with the camera. This problem can be overcome by using specific filters
during Image Processing or changes in Matlab code. With some improvements, this
method can be used to detect road accidents and identify violations of the spiral
movements of cars.
International Journal of Signal Processing, Image Processing and Pattern Recognition
Vol. 5, No. 4, December, 2012
174
References
[1] R. Danescu, S. Nedevschi, M. Meinecke and T. Graf, "Stereo Vision Based Vehicle Tracking in Urban
Traffic Environments", Intelligent Transportation System, IEEE conference on, (2007), pp. 400-404.
[2] N. J. Ferrier, S. M. Rowe, A. Blake, "Real-time traffic monitoring", proceeding of the second IEEE
workshop on applications of computer vision", (1994), pp. 81-88.
[3] Vu and M. Barth, "catadiopetric omnidirectional vision system integration for vehicle-based sensing", in
proc. Of IEEE Intelligent Transportation System Conference, (2009).
[4] M. Cao, A. Vu and M. Barth, "A Novel omni-directional vision sensing technique for traffic surveillance",
in proc. of IEEE.
[5] B. Jin, D. Zou and Y. Gan, "Research and design of traffic detection based on GPRS", IEEE conf. on
advanced computer control (ICACC), (2010) March.
[6] H. Kong, J. -Y. Audibert and J. Pounce, "General Road Detection from a single image", IEEE Journal
Transactions on image processing, (2010) August.
[7] Y. He, H. Wang, B. Zhang, "color based road detection in urban traffic scences", IEEE Transactions on
intelligent Transportation systems.
[8] Yk. Wang and Sh. Chen, "Robust vehicle detection approach”, proc. IEEE conference on advanced video
and signal based surveillance 2005,[SI]:IEEE press, (2005), pp. 117-122 .
[9] M. F. Abdelkader, R. Chellappa and Q. Zheng, "Integrated motion detection and tracking for visual”,
conference on computer vision systems (ICVS 2006), (2006).
[10] R. Reulks, S. Bauer, T. Doring, F. Meysel, "Traffic surveillance using multi-camera detection and multi-
target tracking", proceeding of image and vision computing New Zealand, (2007).
[11] Sanchez, A. Suarez, P. Conci, A. Nunes, E. Universided, R. J. Carlos, Mostoles, "Video-based distance
traffic analysis: Application to vehicle tracking and counting", IEEE, (2010) December 3.
[12] J. Melo, A. Naftel, A. Bernardino and J. Santos-Victor, "Detection and classification of highway lanes
using vehicle motion trajectories", IEEE Transactions on Intelligent Transportation Systems, vol. 7, no. 2,
(2006), pp. 188-200.
[13] P. L. M. Bouttefroy, A. Bouzerdoum, S. L. Phung, S. L. Phung and A. Beghdadi, "Vehicle Tracking Using
Projective Particle Filter", IEEE, (2009).
[14] D. Beymer, P. McLauchlan, B. coifman and J. Malik, "A real-time computer vision system for measuring
traffic parameters", IEEE conf.on computer vision and pattern Recognition, (1997), pp. 495-501.
Author
Pejman Niksaz received his Bsc. in hardware engineering, a
branch of computer engineering in 2009 from Gorgan university and
pursuing Msc. from science and research branch of Yazd university. He
is presently working as a lecturer in an engineering company. He has
authored and co-authored many papers in international and national
conferences and journals. His recent research intrests are image
processing, fuzzy applications, and Wireless Sensor Networks.

More Related Content

What's hot

Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsHelp the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsIJORCS
 
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3NanubalaDhruvan
 
Contour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic MapsContour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic MapsCSCJournals
 
Miniproject final group 14
Miniproject final group 14Miniproject final group 14
Miniproject final group 14Ashish Mundhra
 
EVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIME
EVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIMEEVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIME
EVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIMEacijjournal
 
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2NanubalaDhruvan
 
Real time-image-processing-applied-to-traffic-queue-detection-algorithm
Real time-image-processing-applied-to-traffic-queue-detection-algorithmReal time-image-processing-applied-to-traffic-queue-detection-algorithm
Real time-image-processing-applied-to-traffic-queue-detection-algorithmajayrampelli
 
Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...
Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...
Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...IJCSIS Research Publications
 
Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...
Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...
Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...cscpconf
 
Automatic Vehicle Detection Using Pixelwise Classification Approach
Automatic Vehicle Detection Using Pixelwise Classification ApproachAutomatic Vehicle Detection Using Pixelwise Classification Approach
Automatic Vehicle Detection Using Pixelwise Classification ApproachIOSR Journals
 
Street Mark Detection Using Raspberry PI for Self-driving System
Street Mark Detection Using Raspberry PI for Self-driving SystemStreet Mark Detection Using Raspberry PI for Self-driving System
Street Mark Detection Using Raspberry PI for Self-driving SystemTELKOMNIKA JOURNAL
 
Leader follower formation control of ground vehicles using camshift based gui...
Leader follower formation control of ground vehicles using camshift based gui...Leader follower formation control of ground vehicles using camshift based gui...
Leader follower formation control of ground vehicles using camshift based gui...ijma
 
Design and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of viewDesign and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of viewsipij
 
Robotic navigation algorithm with machine vision
Robotic navigation algorithm with machine vision Robotic navigation algorithm with machine vision
Robotic navigation algorithm with machine vision IJECEIAES
 
Uncalibrated View Synthesis Using Planar Segmentation of Images
Uncalibrated View Synthesis Using Planar Segmentation of Images  Uncalibrated View Synthesis Using Planar Segmentation of Images
Uncalibrated View Synthesis Using Planar Segmentation of Images ijcga
 
IRJET- Dynamic Traffic Management System
IRJET- Dynamic Traffic Management SystemIRJET- Dynamic Traffic Management System
IRJET- Dynamic Traffic Management SystemIRJET Journal
 
Da4201691696
Da4201691696Da4201691696
Da4201691696IJERA Editor
 
Al4103216222
Al4103216222Al4103216222
Al4103216222IJERA Editor
 

What's hot (20)

Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsHelp the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
 
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
 
Contour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic MapsContour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic Maps
 
Miniproject final group 14
Miniproject final group 14Miniproject final group 14
Miniproject final group 14
 
D018112429
D018112429D018112429
D018112429
 
EVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIME
EVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIMEEVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIME
EVALUATION OF THE VISUAL ODOMETRY METHODS FOR SEMI-DENSE REAL-TIME
 
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 2
 
Real time-image-processing-applied-to-traffic-queue-detection-algorithm
Real time-image-processing-applied-to-traffic-queue-detection-algorithmReal time-image-processing-applied-to-traffic-queue-detection-algorithm
Real time-image-processing-applied-to-traffic-queue-detection-algorithm
 
Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...
Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...
Image Stitching Algorithm: An Optimization between Correlation-Based and Feat...
 
Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...
Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...
Content Based Image Retrieval Approach Based on Top-Hat Transform And Modifie...
 
Automatic Vehicle Detection Using Pixelwise Classification Approach
Automatic Vehicle Detection Using Pixelwise Classification ApproachAutomatic Vehicle Detection Using Pixelwise Classification Approach
Automatic Vehicle Detection Using Pixelwise Classification Approach
 
Street Mark Detection Using Raspberry PI for Self-driving System
Street Mark Detection Using Raspberry PI for Self-driving SystemStreet Mark Detection Using Raspberry PI for Self-driving System
Street Mark Detection Using Raspberry PI for Self-driving System
 
Leader follower formation control of ground vehicles using camshift based gui...
Leader follower formation control of ground vehicles using camshift based gui...Leader follower formation control of ground vehicles using camshift based gui...
Leader follower formation control of ground vehicles using camshift based gui...
 
Design and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of viewDesign and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of view
 
Thesis summary
Thesis summaryThesis summary
Thesis summary
 
Robotic navigation algorithm with machine vision
Robotic navigation algorithm with machine vision Robotic navigation algorithm with machine vision
Robotic navigation algorithm with machine vision
 
Uncalibrated View Synthesis Using Planar Segmentation of Images
Uncalibrated View Synthesis Using Planar Segmentation of Images  Uncalibrated View Synthesis Using Planar Segmentation of Images
Uncalibrated View Synthesis Using Planar Segmentation of Images
 
IRJET- Dynamic Traffic Management System
IRJET- Dynamic Traffic Management SystemIRJET- Dynamic Traffic Management System
IRJET- Dynamic Traffic Management System
 
Da4201691696
Da4201691696Da4201691696
Da4201691696
 
Al4103216222
Al4103216222Al4103216222
Al4103216222
 

Viewers also liked

Automated traffic control system
Automated traffic control systemAutomated traffic control system
Automated traffic control systemLikithe
 
Automated traffic control by using image processing
Automated traffic control by using image processingAutomated traffic control by using image processing
Automated traffic control by using image processingswarnajui
 
Modeling Design and Analysis of Intelligent Traffic Control System Based on S...
Modeling Design and Analysis of Intelligent Traffic Control System Based on S...Modeling Design and Analysis of Intelligent Traffic Control System Based on S...
Modeling Design and Analysis of Intelligent Traffic Control System Based on S...Yasar Abbas
 
Smart Control of Traffic Signal System using Image Processing
Smart Control of Traffic Signal System using Image Processing Smart Control of Traffic Signal System using Image Processing
Smart Control of Traffic Signal System using Image Processing Raihan Bin-Mofidul
 
traffic jam detection using image processing
traffic jam detection using image processingtraffic jam detection using image processing
traffic jam detection using image processingMalika Alix
 
Traffic jam detection using image processing
Traffic jam detection using image processingTraffic jam detection using image processing
Traffic jam detection using image processingSai As Sharman
 
Density based traffic light control
Density based traffic light controlDensity based traffic light control
Density based traffic light controlRohit Nair
 
Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...Louise Antonio
 

Viewers also liked (8)

Automated traffic control system
Automated traffic control systemAutomated traffic control system
Automated traffic control system
 
Automated traffic control by using image processing
Automated traffic control by using image processingAutomated traffic control by using image processing
Automated traffic control by using image processing
 
Modeling Design and Analysis of Intelligent Traffic Control System Based on S...
Modeling Design and Analysis of Intelligent Traffic Control System Based on S...Modeling Design and Analysis of Intelligent Traffic Control System Based on S...
Modeling Design and Analysis of Intelligent Traffic Control System Based on S...
 
Smart Control of Traffic Signal System using Image Processing
Smart Control of Traffic Signal System using Image Processing Smart Control of Traffic Signal System using Image Processing
Smart Control of Traffic Signal System using Image Processing
 
traffic jam detection using image processing
traffic jam detection using image processingtraffic jam detection using image processing
traffic jam detection using image processing
 
Traffic jam detection using image processing
Traffic jam detection using image processingTraffic jam detection using image processing
Traffic jam detection using image processing
 
Density based traffic light control
Density based traffic light controlDensity based traffic light control
Density based traffic light control
 
Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...
 

Similar to 13

Image Processing Applied To Traffic Queue Detection Algorithm
Image Processing Applied To Traffic Queue Detection AlgorithmImage Processing Applied To Traffic Queue Detection Algorithm
Image Processing Applied To Traffic Queue Detection Algorithmguest673189
 
Automatic Number Plate Recognition System A Histogram Based Approach
Automatic Number Plate Recognition System  A Histogram Based ApproachAutomatic Number Plate Recognition System  A Histogram Based Approach
Automatic Number Plate Recognition System A Histogram Based ApproachJoe Osborn
 
IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...
IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...
IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...sipij
 
Improved Edge Detection using Variable Thresholding Technique and Convolution...
Improved Edge Detection using Variable Thresholding Technique and Convolution...Improved Edge Detection using Variable Thresholding Technique and Convolution...
Improved Edge Detection using Variable Thresholding Technique and Convolution...sipij
 
License plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehiclesLicense plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehicleslambanaveen
 
Number Plate Recognition of Still Images in Vehicular Parking System
Number Plate Recognition of Still Images in Vehicular Parking SystemNumber Plate Recognition of Still Images in Vehicular Parking System
Number Plate Recognition of Still Images in Vehicular Parking SystemIRJET Journal
 
Neural Network based Vehicle Classification for Intelligent Traffic Control
Neural Network based Vehicle Classification for Intelligent Traffic ControlNeural Network based Vehicle Classification for Intelligent Traffic Control
Neural Network based Vehicle Classification for Intelligent Traffic Controlijseajournal
 
Mobile Application Detection of Road Damage using Canny Algorithm
Mobile Application Detection of Road Damage using Canny AlgorithmMobile Application Detection of Road Damage using Canny Algorithm
Mobile Application Detection of Road Damage using Canny AlgorithmUniversitas Pembangunan Panca Budi
 
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...ijcisjournal
 
IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...
IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...
IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...IRJET Journal
 
A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...
A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...
A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...cscpconf
 
Intelligent Parking Space Detection System Based on Image Segmentation
Intelligent Parking Space Detection System Based on Image SegmentationIntelligent Parking Space Detection System Based on Image Segmentation
Intelligent Parking Space Detection System Based on Image Segmentationijsrd.com
 
Vehicle Tracking Using Kalman Filter and Features
Vehicle Tracking Using Kalman Filter and FeaturesVehicle Tracking Using Kalman Filter and Features
Vehicle Tracking Using Kalman Filter and Featuressipij
 
License Plate Recognition using Morphological Operation.
License Plate Recognition using Morphological Operation. License Plate Recognition using Morphological Operation.
License Plate Recognition using Morphological Operation. Amitava Choudhury
 
Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...
Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...
Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...IJTET Journal
 
Stereo matching based on absolute differences for multiple objects detection
Stereo matching based on absolute differences for multiple objects detectionStereo matching based on absolute differences for multiple objects detection
Stereo matching based on absolute differences for multiple objects detectionTELKOMNIKA JOURNAL
 

Similar to 13 (20)

Image Processing Applied To Traffic Queue Detection Algorithm
Image Processing Applied To Traffic Queue Detection AlgorithmImage Processing Applied To Traffic Queue Detection Algorithm
Image Processing Applied To Traffic Queue Detection Algorithm
 
Automatic Number Plate Recognition System A Histogram Based Approach
Automatic Number Plate Recognition System  A Histogram Based ApproachAutomatic Number Plate Recognition System  A Histogram Based Approach
Automatic Number Plate Recognition System A Histogram Based Approach
 
40120140501008
4012014050100840120140501008
40120140501008
 
IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...
IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...
IMPROVED EDGE DETECTION USING VARIABLE THRESHOLDING TECHNIQUE AND CONVOLUTION...
 
Improved Edge Detection using Variable Thresholding Technique and Convolution...
Improved Edge Detection using Variable Thresholding Technique and Convolution...Improved Edge Detection using Variable Thresholding Technique and Convolution...
Improved Edge Detection using Variable Thresholding Technique and Convolution...
 
License plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehiclesLicense plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehicles
 
Number Plate Recognition of Still Images in Vehicular Parking System
Number Plate Recognition of Still Images in Vehicular Parking SystemNumber Plate Recognition of Still Images in Vehicular Parking System
Number Plate Recognition of Still Images in Vehicular Parking System
 
Neural Network based Vehicle Classification for Intelligent Traffic Control
Neural Network based Vehicle Classification for Intelligent Traffic ControlNeural Network based Vehicle Classification for Intelligent Traffic Control
Neural Network based Vehicle Classification for Intelligent Traffic Control
 
Mobile Application Detection of Road Damage using Canny Algorithm
Mobile Application Detection of Road Damage using Canny AlgorithmMobile Application Detection of Road Damage using Canny Algorithm
Mobile Application Detection of Road Damage using Canny Algorithm
 
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
 
IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...
IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...
IRJET- Prediction of Traffic Signs for Automated Vehicles using Convolutional...
 
A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...
A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...
A Much Advanced and Efficient Lane Detection Algorithm for Intelligent Highwa...
 
Intelligent Parking Space Detection System Based on Image Segmentation
Intelligent Parking Space Detection System Based on Image SegmentationIntelligent Parking Space Detection System Based on Image Segmentation
Intelligent Parking Space Detection System Based on Image Segmentation
 
Vehicle Tracking Using Kalman Filter and Features
Vehicle Tracking Using Kalman Filter and FeaturesVehicle Tracking Using Kalman Filter and Features
Vehicle Tracking Using Kalman Filter and Features
 
A017430110
A017430110A017430110
A017430110
 
License Plate Recognition using Morphological Operation.
License Plate Recognition using Morphological Operation. License Plate Recognition using Morphological Operation.
License Plate Recognition using Morphological Operation.
 
B018110915
B018110915B018110915
B018110915
 
QDA_RTP_Traffic_ppt_final.ppt
QDA_RTP_Traffic_ppt_final.pptQDA_RTP_Traffic_ppt_final.ppt
QDA_RTP_Traffic_ppt_final.ppt
 
Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...
Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...
Supervised Blood Vessel Segmentation in Retinal Images Using Gray level and M...
 
Stereo matching based on absolute differences for multiple objects detection
Stereo matching based on absolute differences for multiple objects detectionStereo matching based on absolute differences for multiple objects detection
Stereo matching based on absolute differences for multiple objects detection
 

Recently uploaded

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 

Recently uploaded (20)

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 

13

  • 1. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 167 Automatic Traffic Estimation Using Image Processing Pejman Niksaz Science &Research Branch, Azad University of Yazd, Iran Pezhman_1366@yahoo.com Abstract As we know the population of city and number of cars is increasing day by day. With increasing urban population and hence the number of cars, need of controlling streets, highways and roads is vital. In this paper, a system that estimates the size of traffic in highways by using image processing has been proposed and as a result a message is shown to inform the number of cars in highway. This project has been implemented by using the Matlab software and it aims to prevent heavy traffic in highways. Moreover, for implementing this project following steps must be considered: 1) image acquisition 2) RGB to grayscale transformation 3) image enhancement and 4) morphological operations. At first, film of highway is captured by a camera has been installed in highway. Then, the film comes in the form of consecutive frames and each frame is compared with the first frame. After that, the number of cars in highways is specified. At the end, if the number of cars is more than a threshold, a message is shown to inform the traffic status. By this message we can predict the need to reduce the size of traffic carried. Experiments show that the algorithm will work properly. Keywords: traffic analysis, image processing, motion vehicle tracking, filteration, morphological operation, gamma correction 1. Introduction Most of the city traffic is controlled by sensors and cameras shall be installed in big highways and streets. But existence of a system for detecting the size of traffic automatically will be felt [1]. Such systems can allows to extract information from the bigger traffic issue and helps us decide to improve the traffic policy [3, 4] .The paper aims to render automate control system for traffic on highways and streets [2]. The system using image processing has been implemented where upon it entailed the following results: 1) Density 2) Streets and roads in order to census counted three cars 3) monitor off roads 4) Detect the occurrence of accidents and violations occurred as well as motion detection car is a dangerous spiral[7].Scientists and other researchers suggested other different ways . Technically, this system is based on computers and cameras. The project components includes: (A) hardware model (B) software model [1, 2]. A) Hardware model: Image sensors: In this project the images are captured by a USB web camera have been used. PC: a pc as a general purpose central unit for various image processing tasks has been used. B) Software model:
  • 2. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 168 For our algorithm; software Matlab has been used. Some steps for implementing this algorithm are as follows: Receiving video via camera and convert video input to two images RGB to Grayscale conversion on received images image enhancement Morphological operations. The rest of the paper has been divided as follows: In Section 2 the main steps of suggested method is proposed. The gamma correction for image enhancement is discussed in Section 3. Section talks about the different types of vehicle tracking and operations. In Section morphological operation has been presented. Rest of the paper shows the suggested algorithm and flowchart in summary and Section deals with the results of experiments. Last section talks about conclusion. 2. Our Proposed Method: Our proposed method consists of two phases. Phase 1: First images are captured by camera. The first images of highway when there is no traffic will be taken. The first image of highway has been considered as a reference file and stored in a specific location in the program. RGB to Grayscale Conversion in order to achieve image enhancement is done. Phase 2: At first, images are captured from the highway. RGB to Grayscale conversion has done on the hierarchy of images. Then, gamma correction has been applied on each Gray images. At the end, vehicle tracking is done. Generally, vehicle tracking included two parts: 1) Background elimination; 2) lane masking. 3. Gamma correction There are lots of method can be utilized for Gamma correction. One of the most significant methods has been proposed in this paper is called Image enhancement. For achieving to Gamma correction, the relationship between light input and output signals must be considered. This has been defined by following equation: ( ( ( ( ( is output signal gain and a constant is the exposure time that is related to intensity and specifies the number of vehicles is linear. Thus, when , a double logarithmic plot of exposure time or intensity versus output current will yield a straight line. A majority of the video camera systems utilized in optical microscopy adhere to this relationship. Since , dark features in the image become brighter, but overall image contrast is reduced between the very bright and midtone grayscale values. When , bright features become darker and overall contrast is increased. It should be noted that image contrast adjustments using gamma should be that image contrast adjustments using gamma correction factors enable utilization of the entire range of pixels in the image.
  • 3. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 4. Types of Vehicle Tracking For analyzing vehicle tracking in video sequences, two methods are common: 1) Object definition based on object contour extraction 2) Vehicle tracking based on motion detection Figure 1. Mathematical Graph Changes Gamma for 20th Frame 4.1. Vehicle Tracking based on Contour Extraction Vehicle tracking based on contour extraction is one of the most common methods for tracking vehicles. This type of tracking has been consisted of six steps. Each step has its specific algorithm. As an example, Lane masking method has been used to separate vehicles in one direction. This is important because it allows the processing of data over a frame to be done. The formula for Masking Algorithm is as follows: ( ( ( Where ( is amount of the point in original frame and ( ( ( is the new point in output image. Considering the above formula, ( is the value for masking point such as P. If pixel has been removed, ( ; otherwise, ( . Masking must be applied to each RGB image separately. Figure 2. a) Background Image b) After Gamma Correction c) After Subtraction
  • 4. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 170 The algorithm eliminates all objects shared in background frame with other frames and just will be left the vehicles has been added to other frames. The algorithm may be influenced by conditions such as swinging trees, move lawn lighting, the clouds, rain, snow and the others. In practical applications, some other factors like season, weather and etc., should be considered. The algorithm has been applied using the following equation: ( ( ( In this equation, ( is the average of the RGB values for each point such as in the background of chosen frames. Moreover, ( shows the pixel color value for point in a frame such as . RGB image has been generated by removing background traffic image such as ( . The results have shown in Figure 4. Then, a vehicle frame must be put in the observation area. This operation can be done by the edge detection algorithm based on computing image derivatives. The first derivative must be calculated in order to detect some modifications in density image frame rate. For determining the maximum rate, Second derivative has been considered. The important thing is that to know there isn't only a general recognition technique for all images work well. Some recognized algorithms are useful for applying median filteration. These methods have been used for edge detection techniques. Three kinds of these methods have been presented as follows: 1) Laplace 2) Sobel 3) Prewitt. All methods mentioned above do mask or kernel operations that provide the following results: Sx= (a2+a3+a4)- (a0+ca7+ a6) Sy= (a0+a1+a2)- (a6+ca5+ a4) Sx= (a2+a3+a4)- (a0+ca7+a6) is Gradient in direction and Sy= (a0+a1+a2)- (a6+ca5+ a4) is Gradient in direction and is the module of Gradient. i is pixel covered by mask . refers to move from the top left corner that the mask off has begun. If the threshold is much larger than ( , ( , otherwise ( . Mask off almost has been applied on all image pixels except the edge area. As a result, image size has decreased because of border effects of 2 pixels in each direction. Gradient in direction and has been illustrated in Figure 3. The symbol " " means the partial derivative has been calculated as the difference in density between two points are adjacent (the difference between them is equal to 1). Figure 3. Derivative in Direction Derivative in Direction Sobel filter is very similar to Prewitt. The only difference is weighting coefficient that for Prewitt filter is equal to . If early images are good contrast and be without noise, they are also appropriate for edge extraction.
  • 5. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 As mentioned above, when the field gradient is larger than the threshold, the larger value will be considered. Another method can be considered, is to assume that the gradient is larger when the second order intensity gradients of zero crossing according to the gradient field operations compared to zero crossing. After all, Gauss Laplace equation with an additional derivative conducted by Gaussian Convolution has been presented as follows: ( ( ( ( ( ( In this equation, is considered as width of gauss function such as . Contour linking: the next step of processing is connecting the separate sections of the original objects into a closed contour .to ensure, suppose the RGB image has been converted to binary. In general, the two methods of edge linking are classified as follows: 1) Local edge linkers that connect any point consider neighbors. 2) Global edge linkers that consider all edge points at the same time according to the equation constraints similarities edge. Contour labeling has been utilized to mark and count the frames. For vehicle tracking in the video hierarchy should mark through the image. Another method is marking the geometric center of an image. For finding the geometric center of an image following equation has been used. Where, and are the center coordinate of vehicles and are axes coordinate of image points limit. To tracking our vehicles all intervals between image frames n in the vehicles and all vehicles in the coordinate frame ( of centers should be off. In summary, by using the following equation vehicle tracking can be applied. dx= [(xk-xc)2+(yk-yc)2]1/2 4.2. Vehicle Tracking based on Motion Detection Active contour based tracking; a dual to the region based approach is tracking based on active contour models, or snakes. The main idea of this work is to have a representation of the bounding contour of the object and keep it updating dynamically. One of the advantages of having a contour-based representation instead of a region based representation is reducing the computational complexity. However, the inability to segment vehicles that are partially occluded remains. If one could initialize a separate contour for each vehicle, then one could track even in the presence of partial occlusion ( . Moreover, initialization is the difficult part of the problem! Consider the example: if the vehicles enter the detection region partially occluded, the system will group two vehicles into a single object and it will cause to significant measurement errors.
  • 6. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 172 5. Morphological Operation While point and neighborhood operations are generally designed to modify the look or appearance of an image for visual considerations, morphological operations have been used to understand the structure or form of an image. There are three primary morphological functions for achieving these objectives: 1) erosion 2) dilation and 3) hit-or-miss. Morphological operations usually have been performed on binary images where the pixel has two values; or . Value of zero has been considered as black and value of 1 as white. Most of the morphological functions operate on pixel neighborhoods. The pixel neighborhood is identified into one of two ways; sometimes interchangeably. The pixel of interest lies at the center of the neighborhood and has been labeled . The surrounding pixels are referred to , or by their compass coordinate and . In this paper some morphological operations has been done on binary images. After subtraction, certainly some additional points on the image in order to subtraction have been left and with morphological operation in these parts remove additional points have been removed. Initially, the objects on the image resulting from subtraction must be removed and then interior and border areas of mark cars in the image resulting from subtraction have been traced. Figure 4 illustrates morphological operation on the resulting image subtracted. Figure 4. Image Subtraction 6. Algorithm in Sumarry: 1-start 2-receive the first frame of movie 3-RGB to grayscale conversion 4- for { vehicle tracking on the image; 5- if {number of cars> threshold} print traffic is heavy; Else Write the number of frames under the movie; End End 6- Go to 4 End
  • 7. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 The flowchart of proposed method is illustrated in Figure 5. Figure 5. Flowchart of Proposed Method 7. Conclusion In this paper, a method for estimating the traffic using Image Processing is presented. This is done by using the camera images captured from the highway and videos taken are converted to the image sequences. Each image is processed separately and the number of cars has been counted. If the number of cars exceeds a specific threshold, warning of heavy traffic will be shown automatically. The advantages of this new method include such benefits as: 1) Non-use of sensors 2) Low cost and easy setup and relatively good accuracy and speed. Because this method has been implemented using Image Processing and Matlab software, production costs are low while achieving high speed and accuracy. In this respect, the method is superior to previously published designs. The method presented in this paper is simple and there is no need to use sensors that have been commonly used to detect traffic in the past. However, one of the most important disadvantages of this method is extreme sensitivity to light. For example, when installed in the road, changes in sun light potentially cause interference with the camera. This problem can be overcome by using specific filters during Image Processing or changes in Matlab code. With some improvements, this method can be used to detect road accidents and identify violations of the spiral movements of cars.
  • 8. International Journal of Signal Processing, Image Processing and Pattern Recognition Vol. 5, No. 4, December, 2012 174 References [1] R. Danescu, S. Nedevschi, M. Meinecke and T. Graf, "Stereo Vision Based Vehicle Tracking in Urban Traffic Environments", Intelligent Transportation System, IEEE conference on, (2007), pp. 400-404. [2] N. J. Ferrier, S. M. Rowe, A. Blake, "Real-time traffic monitoring", proceeding of the second IEEE workshop on applications of computer vision", (1994), pp. 81-88. [3] Vu and M. Barth, "catadiopetric omnidirectional vision system integration for vehicle-based sensing", in proc. Of IEEE Intelligent Transportation System Conference, (2009). [4] M. Cao, A. Vu and M. Barth, "A Novel omni-directional vision sensing technique for traffic surveillance", in proc. of IEEE. [5] B. Jin, D. Zou and Y. Gan, "Research and design of traffic detection based on GPRS", IEEE conf. on advanced computer control (ICACC), (2010) March. [6] H. Kong, J. -Y. Audibert and J. Pounce, "General Road Detection from a single image", IEEE Journal Transactions on image processing, (2010) August. [7] Y. He, H. Wang, B. Zhang, "color based road detection in urban traffic scences", IEEE Transactions on intelligent Transportation systems. [8] Yk. Wang and Sh. Chen, "Robust vehicle detection approach”, proc. IEEE conference on advanced video and signal based surveillance 2005,[SI]:IEEE press, (2005), pp. 117-122 . [9] M. F. Abdelkader, R. Chellappa and Q. Zheng, "Integrated motion detection and tracking for visual”, conference on computer vision systems (ICVS 2006), (2006). [10] R. Reulks, S. Bauer, T. Doring, F. Meysel, "Traffic surveillance using multi-camera detection and multi- target tracking", proceeding of image and vision computing New Zealand, (2007). [11] Sanchez, A. Suarez, P. Conci, A. Nunes, E. Universided, R. J. Carlos, Mostoles, "Video-based distance traffic analysis: Application to vehicle tracking and counting", IEEE, (2010) December 3. [12] J. Melo, A. Naftel, A. Bernardino and J. Santos-Victor, "Detection and classification of highway lanes using vehicle motion trajectories", IEEE Transactions on Intelligent Transportation Systems, vol. 7, no. 2, (2006), pp. 188-200. [13] P. L. M. Bouttefroy, A. Bouzerdoum, S. L. Phung, S. L. Phung and A. Beghdadi, "Vehicle Tracking Using Projective Particle Filter", IEEE, (2009). [14] D. Beymer, P. McLauchlan, B. coifman and J. Malik, "A real-time computer vision system for measuring traffic parameters", IEEE conf.on computer vision and pattern Recognition, (1997), pp. 495-501. Author Pejman Niksaz received his Bsc. in hardware engineering, a branch of computer engineering in 2009 from Gorgan university and pursuing Msc. from science and research branch of Yazd university. He is presently working as a lecturer in an engineering company. He has authored and co-authored many papers in international and national conferences and journals. His recent research intrests are image processing, fuzzy applications, and Wireless Sensor Networks.