SlideShare a Scribd company logo
1 of 12
101seminartopics.com

               Real-Time Image Processing Applied To Traffic –
                               Queue Detection Algorithm



                                          ABSTRACT


               This paper primarily aims at the new technique of video image processing used to
solve problems associated with the real-time road traffic control systems. There is a growing
demand for road traffic data of all kinds. Increasing congestion problems and problems
associated with existing detectors spawned an interest in such new vehicle detection
technologies. But the systems have difficulties with congestion, shadows and lighting
transitions.


                Problem concerning any practical image processing application to road traffic is
the fact that real world images are to be processed in real time. Various algorithms, mainly
based on back ground techniques, have been developed for this purposes since back ground
based algorithms are very sensitive to ambient lighting conditions, they have not yielded the
expected results. So a real-time image tracking approach using edged detection techniques
was developed for detecting vehicles under these trouble-posing conditions.


                This paper will give a general overview of the image processing technique used
in analysis of video images, problems associated with it, methods of vehicle detection and
tracking, pre-processing techniques and the paper also presents the real-time image processing
technique used to measure traffic queue parameters.


                Finally, general comments will be made regarding the extensibility of the method
and the scope of the new queue detection algorithm will be discussed.




                                TABLE OF CONTENTS
   Abstract……………………………………………………………
    (1) Introduction……………………………………………………                                      4
2

    (2) Image Processing applied to traffic
       2.1     Need for processing………………………………………               5
       2.2     Parameters measurable……………………………………              5
       2.3     Image analysis system structure………………………….       5
    (3) Stages of image analysis
       Pipeline preprocessing……………………………………                    6
    (4) Real-time image processing-Queue detection algorithm
       Methods of vehicle detection and tracking……………….        7
    (5) Motion detection operation……………………………………               8
    (6) Motion detection – flowchart………………………………….             9
    (7) Vehicle detection algorithm
       Left-limit selection program……………………………….               11
(8) Threshold selection program
        8.1   Threshold selection………………………………………… 12
        8.2   Discussions………………………………………………… 12
(9) Conclusion………………………………………………………….                          13
References ……………………………………………………………...                          14




INTRODUCTION
•      increasing demand for road traffic data of all sorts

•      variation of parameters in real-world traffic
3

•        aimed to measure queue parameters accurately
•        algorithm has two operations : vehicle detection and motion detection
•        operations applied to profiles consisting sub-profiles to detect queue
•        motion detection is based on applying a differencing technique on the profiles of the images
         along the road
•        the vehicle detection is based on applying edge detection on these profiles



Image processing applied to traffic
Need for processing of traffic data: -
     Traffic surveillance and control, traffic management, road safety and development of
     transport policy.
Traffic parameters measurable: -
     Traffic volumes, Speed, Headways, Inter-vehicle gaps, Vehicle classification, Origin and
     destination of traffic, Junction turning.
Image analysis system structure: -

                                                                                   backing store
                                                                                   2 ¼ M-byte
                                                    RAM
    CCTV           ADC                            64k bytes
    camera



                                                                                               16-bit
                                            (data bus)                                          mini-
                                                                                              computer
                                           DAC



                          monitor                                                       Printer




Stages of image analysis: -
      Image sensors used :
         Improved vidicon cameras: automatic gain control, low SNR
4


       ADC Conversion: - Analog video signal received from video camera is converted to
        digital/binary form for processing
       Pre-processing:
        High SNR of the camera output reduces the quantity of processing enormous data
        flow.


To cope with this, two methods are proposed:
        1. Analyze data in real time - uneconomical
        2. Stores all data and analyses off-line at low speed.
    Pipeline Preprocessing does this job


Stages in Pipeline Preprocessing :

        (1) Spatial Averaging – contiguous pixels are averaged (convolution)
        (2) Subtraction of background scene from incoming picture.
        (3) Threshold – Large diff.s are true ‘1’, small diff.s are false ‘0’
     (4) Data Compression – reduces resulting data.
        (5) Block buffering – collects data into blocks.
        (6) Tape Interface – blocks are loaded onto a digital cassette recorder


   Preprocessed picture is submitted to processor as 2-D array of no.s.


Two jobs to be done:


Green light on: - determine no. of vehicles moving along particular lanes and their
classification by shape and size.


Red light on: - determine the backup length along with the possibility to track its dynamics
and classify vehicles in backup



Methods of vehicle detection :
•       Background frame differencing: -grey-value intensity reference image
5


•      Inter-frame differencing: -incoming frame itself becomes the background for the
       following frame
•      Segmentation and classification: -Sub division of an image into its constituent parts
       depending on the context

                                 Queue Detection Algorithm


•      approach described here is a spatial-domain technique to detect queue - implemented

       in real-time using low-cost system
•      For this purpose two different algorithms have been used,
       Motion detection operation , Vehicle detection operation

•      Motion detection is first – as in this case vehicle detection mostly gives positive result,

       while in reality, there may not be any queue at all.
      Applying this scheme further reduces computation time.


1. Motion detection operation: -


    a) differencing two consecutive frames.
    b) histogram of the key region parts of the frames is analyzed by comparing with the
        threshold value.
    c) key region should be at least 3-pixel-wide profile of the image along the road.
    d) a median filtering operation is firstly applied to the key region (profile) of each frame
        and one-pixel-wide profile is extracted.
    e) difference of two profiles is compared to detect for motion.
    f) when there is motion, the differences of the profiles are larger than the case when
        there is no motion. The motion can be detected by selecting a threshold value.


Note: The size of the profile is an important parameter.




Motion Detection Algorithm
6

Block diagram :

                                  frame 1                    frame 2




                                         L+2                          L+2




                                      Median Filter

                               Line profile 0             Line profile 1




                                Dif = profile 1 – profile 0



                       No(motion)                                Yes(motion)
                                                Dif<Th1




Theory Behind

    The profile along the road is divided into a number of smaller profiles (sub-profiles)
    The sizes of the sub-profiles are reduced by the distance from the front of the camera.
    Transformation causes the equal physical distances to unequal distances according to
      the camera parameters.
    knowing coordinates of any 6 reference points of the real-world condition and the
      coordinates of their corresponding images, the camera parameters (a11, a12…a33) are
      calculated.
    the operations are simplified for flat plane traffic scene - (Zo=0).
7


                                                           a11
                                                           a12
                                                           a13
                                                           a21                X1
       Xo Yo 1 0 0 0 -Xo -Y1 Yo                            a22           =
       0  0 0 Xo Yo 1 -Xo -Z1 Yo                           a23                Y1
                                                           a31
                                                           a32
                                                           a33
                              Solving matrix equation for camera parameters

    above equation is used to reduce the sizes of the sub-profiles - each sub profile
       represents an equal physical distance.
    no. of sub profiles depend on the resolution and accuracy required. The length of sub-
       profile should be about length of the vehicle - both the detection algorithms work
       accurately then.


Vehicle detection algorithm : -


   o Following the application of the motion detection operation, a vehicle detection
     operation is applied on the profile of the unprocessed image.
   o To implement the algorithm in real time, two strategies are often applied: key region
     processing and simple algorithms.
   o Most of the vehicle detection algorithms developed so far are based on a
     background differencing technique, which is sensitive to variations of ambient
     lighting.
   o The method used here is based on applying edge detector operators to a profile of the
     image – Edges are less sensitive to the variation of ambient lighting and are used in
     full frame applications (detection).
   o Edge detectors consisting of separable medium filtering and morphological operators,
     SMED (Separable Morphological Edge Detector) are applied to the key regions of the
     image. (The SMED approach is applied (f) to each sub-profile of the image and the
     histogram of each sub-profile is processed by selecting Dynamic left-limit value and a
     threshold value to detect vehicles.
   o SMED has lower computational requirement while having comparable performance
     to other morphological operators
   o SMED can detect edges at different angles, while other morphological operators are
     unable to detect all kinds of edges.

Left-limit selection program : -
8




      This program selects a grey value from the histogram of the window, where there are
       approx. zero edge points above this grey value.
      When the window contains an object, the left-limit of the histogram shifts towards the
       maximum grey value, otherwise it shifts towards the origin.
      This process is repeated for a large no. of frames(100),and the minimum of the left-
       limit of these frames is selected as the left-limit for the next frame


Threshold selection program:-


    The no. of edge points greater than the left limit grey value of each window is
       extracted for a large no. of frames (200) to get enough parameters below and above a
       proper threshold value.
    These nos. are used to create a histogram where its horizontal and vertical axes
       correspond to the no. of edge points greater than left limit and the frequency of
       repetition of these numbers for a period of operation of the algorithm (200 frames).
    This histogram is smoothed using a median filter and we expect to get two peaks in the
       resulted diagram, one peak related to the frames passing a vehicle and the other related
       to the frames without vehicles for that window.
    However, as it can be seen in the figure given below, there are other number of edge
       points (32-40) between peaks 20  60, which are related to those vehicles in each
       profile. We use statistical approach based on selecting a point on the horizontal axis,
       where the sum of the entropy of the points above and below this point is maximum.
       This point is selected as the threshold value for the next period.




Traffic movements at junctions (TMJ):

    Measuring traffic movements of vehicles at junctions such as number of vehicles
       turning in a different direction (left, right, straight) is very important for the analysis of
       cross-section traffic conditions and adjusting traffic lights.
9

    Previous research work for the TMJ parameter is based on a full-frame approach,
       which requires more computing power and, thus, is not suitable for real-time
       applications. We use a method based on counting vehicles at the key regions of the
       junctions by using the vehicle-detection method.
    The first step to measure the TMJ parameters using the key region method is to cover
       the boundary of the junction by a polygon in such a way that all the entry and exit
       paths of the junction cross the polygon. However, the polygon should not cover the
       pedestrian marked lines. This step is shown in the figure given below.
    The second step of the algorithm is to define a minimum numbers of key regions
       inside the boundary of the polygon, covering the junction.
    These key regions are used for detecting vehicles entering and exiting the junction,
       based on first vehicle –in first-vehicle-out logic.
    Following the application of the vehicle detection on each profile, a status vector is
       created for each window in each frame.
    If a vehicle is detected in a window, a “one” is inserted on its corresponding status
       vector, otherwise, a “Zero” is inserted.
    Now by analyzing the status vector of each window, the TMJ parameters are
       calculated for each path of the junction.




                                           Polygon Covered
                                               Junction



                Pedestrian line mark



Results and Discussions: -


      The main queue parameters we were interested in identifying were the length of the
       queue, the period of occurrence and the slope of the occurrence of the queue behind
       the traffic lights.
10



           To implement the algorithm in real-time, it was decided that the vehicle detection
            operation should only be used in a sub-profile where we expect the queue will be
            extended. The procedure is as follows:




             LevelTh                LevelTh                 LevelTh                  LevelTh

        N               Y        N              Y      N                 Y          N              Y

                            motion detection                                 vehicle detection




                                                                                                        E
    D                                                                                                   D
    E                                                                                                   G
Q   T                                                                                                   E
U   E
E   C                                                                                                   D
U   T                                                                                                   E
E   I                                                                                                   T
    O                                                                                                   E
    N                                                                                                   C
                                                                                                        T
                                                                                                        I
                                                                                                        O
                                                                                                        N




    Conclusions: -


    • Algorithm measuring basic queue parameters such as period of occurrence between queues,
    the length and slope of occurrence have been discussed.
11




• The algorithm uses a recent technique by applying simple but effective operations.


• In order to reduce computation time motion detection operation is applied on all sub-
profiles while the vehicle detection operation is only used when it is necessary.


• The vehicle detection operation is a less sensitive edge-based technique.The threshold
selection is done dynamically to reduce the effects of variations of lighting.


• The measurement algorithm has been applied to traffic scenes with different lighting
conditions.


• Queue length measurement showed 95% accuracy at maximum. Error is due to objects
located far from camera and can be reduced to some extent by reducing the size of the sub-
profiles.


References: -
       Digital Image Processing by Rafael C.Gonzalez and Richard E.Woods.


       Hoose, N. : ‘Computer Image Processing in Traffic Engineering’.


       Rourke, A., and Bell, M.G.H.: ‘Queue detection and congestion monitoring using
        mage processing’, Traffic Engg. and Control.


       Traffic Queue Length Measurement Using an Image Processing Sensor by Masakatsu
        Higashikobo, Toshio Hinenoya and Kouhei Takeouchi.




       A Real-time Computer Vision System for Vehicle Tracking and Traffic Surveillance by
        Benjamin Coifman (corresponding author).
12

   A Real-time Computer Vision System for Measuring Traffic Parameters by David
    Beymer, Philip McLauchlan, Benn Coifman and Jitendra Malik.s

More Related Content

What's hot

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
guest673189
 
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
ajayrampelli
 
Computer Vision for Traffic Sign Recognition
Computer Vision for Traffic Sign RecognitionComputer Vision for Traffic Sign Recognition
Computer Vision for Traffic Sign Recognition
thevijayps
 
Traffic Light Detection for Red Light Violation System
Traffic Light Detection for Red Light Violation SystemTraffic Light Detection for Red Light Violation System
Traffic Light Detection for Red Light Violation System
ijtsrd
 
Automatic Road Sign Recognition From Video
Automatic Road Sign Recognition From VideoAutomatic Road Sign Recognition From Video
Automatic Road Sign Recognition From Video
Dr Wei Liu
 

What's hot (20)

Traffic control using image processing
Traffic control using image processingTraffic control using image processing
Traffic control using image processing
 
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
 
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
 
Vehicle Detection using Camera
Vehicle Detection using CameraVehicle Detection using Camera
Vehicle Detection using Camera
 
Real time image processing ppt
Real time image processing pptReal time image processing ppt
Real time image processing ppt
 
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
 
FINAL YEAR PROJECT1_3
FINAL YEAR PROJECT1_3FINAL YEAR PROJECT1_3
FINAL YEAR PROJECT1_3
 
40120140501008
4012014050100840120140501008
40120140501008
 
Applications of Image Processing and Real-Time embedded Systems in Autonomous...
Applications of Image Processing and Real-Time embedded Systems in Autonomous...Applications of Image Processing and Real-Time embedded Systems in Autonomous...
Applications of Image Processing and Real-Time embedded Systems in Autonomous...
 
Recognition and enhancement of traffic sign for computer generated images
Recognition and enhancement of traffic sign for computer generated imagesRecognition and enhancement of traffic sign for computer generated images
Recognition and enhancement of traffic sign for computer generated images
 
IRJET- Automatic Traffic Sign Detection and Recognition using CNN
IRJET- Automatic Traffic Sign Detection and Recognition using CNNIRJET- Automatic Traffic Sign Detection and Recognition using CNN
IRJET- Automatic Traffic Sign Detection and Recognition using CNN
 
Traffic sign recognition
Traffic sign recognitionTraffic sign recognition
Traffic sign recognition
 
License plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehiclesLicense plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehicles
 
Auto Traffic Management System
Auto Traffic Management SystemAuto Traffic Management System
Auto Traffic Management System
 
Computer Vision for Traffic Sign Recognition
Computer Vision for Traffic Sign RecognitionComputer Vision for Traffic Sign Recognition
Computer Vision for Traffic Sign Recognition
 
Traffic Light Detection for Red Light Violation System
Traffic Light Detection for Red Light Violation SystemTraffic Light Detection for Red Light Violation System
Traffic Light Detection for Red Light Violation System
 
IRJET - Unmanned Traffic Signal Monitoring System
IRJET - Unmanned Traffic Signal Monitoring SystemIRJET - Unmanned Traffic Signal Monitoring System
IRJET - Unmanned Traffic Signal Monitoring System
 
Automatic Road Sign Recognition From Video
Automatic Road Sign Recognition From VideoAutomatic Road Sign Recognition From Video
Automatic Road Sign Recognition From Video
 
A017430110
A017430110A017430110
A017430110
 
A Vision based Driver Support System for Road Sign Detection
A Vision based Driver Support System for Road Sign DetectionA Vision based Driver Support System for Road Sign Detection
A Vision based Driver Support System for Road Sign Detection
 

Viewers also liked

Density based-traffic-signal-system
Density based-traffic-signal-systemDensity based-traffic-signal-system
Density based-traffic-signal-system
PAVAN KUMAR ILLA
 
Compliance with the Fire Code of the Philippines
Compliance with the Fire Code of the PhilippinesCompliance with the Fire Code of the Philippines
Compliance with the Fire Code of the Philippines
Jasmin Comoda
 
Density based traffic light control
Density based traffic light controlDensity based traffic light control
Density based traffic light control
Rohit Nair
 

Viewers also liked (17)

Density based-traffic-signal-system
Density based-traffic-signal-systemDensity based-traffic-signal-system
Density based-traffic-signal-system
 
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...
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Internet of Things for Next-Generation Public Safety Mobile Communications
Internet of Things for Next-Generation Public Safety Mobile CommunicationsInternet of Things for Next-Generation Public Safety Mobile Communications
Internet of Things for Next-Generation Public Safety Mobile Communications
 
Em latest
Em latestEm latest
Em latest
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Identification and classification of moving vehicles on road
Identification and classification of moving vehicles on roadIdentification and classification of moving vehicles on road
Identification and classification of moving vehicles on road
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
 
Automated traffic control system
Automated traffic control systemAutomated traffic control system
Automated traffic control system
 
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...
 
density based traffic monitoring system
density based traffic monitoring system density based traffic monitoring system
density based traffic monitoring system
 
Intelligent transportation system using wireless sensor network
Intelligent transportation system using wireless sensor networkIntelligent transportation system using wireless sensor network
Intelligent transportation system using wireless sensor network
 
Compliance with the Fire Code of the Philippines
Compliance with the Fire Code of the PhilippinesCompliance with the Fire Code of the Philippines
Compliance with the Fire Code of the Philippines
 
Fire Prevention Program (FPP) of the Bureau of Fire Protection (BFP) in Urdan...
Fire Prevention Program (FPP) of the Bureau of Fire Protection (BFP) in Urdan...Fire Prevention Program (FPP) of the Bureau of Fire Protection (BFP) in Urdan...
Fire Prevention Program (FPP) of the Bureau of Fire Protection (BFP) in Urdan...
 
Segmentation
SegmentationSegmentation
Segmentation
 
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSINGBRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
 
Density based traffic light control
Density based traffic light controlDensity based traffic light control
Density based traffic light control
 

Similar to 74 real time-image-processing-applied-to-traffic-queue-d

Presentation Object Recognition And Tracking Project
Presentation Object Recognition And Tracking ProjectPresentation Object Recognition And Tracking Project
Presentation Object Recognition And Tracking Project
Prathamesh Joshi
 
Arindam batabyal literature reviewpresentation
Arindam batabyal literature reviewpresentationArindam batabyal literature reviewpresentation
Arindam batabyal literature reviewpresentation
Arindam Batabyal
 
Realtimeimageprocessing
RealtimeimageprocessingRealtimeimageprocessing
Realtimeimageprocessing
Gopi Nath
 
Iaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterizationIaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd Iaetsd
 

Similar to 74 real time-image-processing-applied-to-traffic-queue-d (20)

License Plate Recognition
License Plate RecognitionLicense Plate Recognition
License Plate Recognition
 
Background Subtraction Algorithm for Moving Object Detection Using Denoising ...
Background Subtraction Algorithm for Moving Object Detection Using Denoising ...Background Subtraction Algorithm for Moving Object Detection Using Denoising ...
Background Subtraction Algorithm for Moving Object Detection Using Denoising ...
 
Presentation Object Recognition And Tracking Project
Presentation Object Recognition And Tracking ProjectPresentation Object Recognition And Tracking Project
Presentation Object Recognition And Tracking Project
 
Arindam batabyal literature reviewpresentation
Arindam batabyal literature reviewpresentationArindam batabyal literature reviewpresentation
Arindam batabyal literature reviewpresentation
 
Report NIYANTRA
Report NIYANTRAReport NIYANTRA
Report NIYANTRA
 
Mobile Based Application to Scan the Number Plate and To Verify the Owner Det...
Mobile Based Application to Scan the Number Plate and To Verify the Owner Det...Mobile Based Application to Scan the Number Plate and To Verify the Owner Det...
Mobile Based Application to Scan the Number Plate and To Verify the Owner Det...
 
QDA_RTP_Traffic_ppt_final.ppt
QDA_RTP_Traffic_ppt_final.pptQDA_RTP_Traffic_ppt_final.ppt
QDA_RTP_Traffic_ppt_final.ppt
 
Visual pattern recognition in robotics
Visual pattern recognition in roboticsVisual pattern recognition in robotics
Visual pattern recognition in robotics
 
Hardware software co simulation of edge detection for image processing system...
Hardware software co simulation of edge detection for image processing system...Hardware software co simulation of edge detection for image processing system...
Hardware software co simulation of edge detection for image processing system...
 
Gi3511181122
Gi3511181122Gi3511181122
Gi3511181122
 
Realtimeimageprocessing
RealtimeimageprocessingRealtimeimageprocessing
Realtimeimageprocessing
 
Dr,system abhishek
Dr,system abhishekDr,system abhishek
Dr,system abhishek
 
Automatic vehicle license plate detection using VEDA
Automatic vehicle license plate detection using VEDAAutomatic vehicle license plate detection using VEDA
Automatic vehicle license plate detection using VEDA
 
Iaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterizationIaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterization
 
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro..."High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
"High-resolution 3D Reconstruction on a Mobile Processor," a Presentation fro...
 
Rapid Laser Scanning the process
Rapid Laser Scanning the processRapid Laser Scanning the process
Rapid Laser Scanning the process
 
Visual pattern recognition in robotics
Visual pattern recognition in roboticsVisual pattern recognition in robotics
Visual pattern recognition in robotics
 
Next generation image compression standards: JPEG XR and AIC
Next generation image compression standards: JPEG XR and AICNext generation image compression standards: JPEG XR and AIC
Next generation image compression standards: JPEG XR and AIC
 
IRJET- Dynamic Traffic Management System
IRJET- Dynamic Traffic Management SystemIRJET- Dynamic Traffic Management System
IRJET- Dynamic Traffic Management System
 
Automatic Fetching of Vehicle details using ANPR Camera
Automatic Fetching of Vehicle details using ANPR CameraAutomatic Fetching of Vehicle details using ANPR Camera
Automatic Fetching of Vehicle details using ANPR Camera
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

74 real time-image-processing-applied-to-traffic-queue-d

  • 1. 101seminartopics.com Real-Time Image Processing Applied To Traffic – Queue Detection Algorithm ABSTRACT This paper primarily aims at the new technique of video image processing used to solve problems associated with the real-time road traffic control systems. There is a growing demand for road traffic data of all kinds. Increasing congestion problems and problems associated with existing detectors spawned an interest in such new vehicle detection technologies. But the systems have difficulties with congestion, shadows and lighting transitions. Problem concerning any practical image processing application to road traffic is the fact that real world images are to be processed in real time. Various algorithms, mainly based on back ground techniques, have been developed for this purposes since back ground based algorithms are very sensitive to ambient lighting conditions, they have not yielded the expected results. So a real-time image tracking approach using edged detection techniques was developed for detecting vehicles under these trouble-posing conditions. This paper will give a general overview of the image processing technique used in analysis of video images, problems associated with it, methods of vehicle detection and tracking, pre-processing techniques and the paper also presents the real-time image processing technique used to measure traffic queue parameters. Finally, general comments will be made regarding the extensibility of the method and the scope of the new queue detection algorithm will be discussed. TABLE OF CONTENTS Abstract…………………………………………………………… (1) Introduction…………………………………………………… 4
  • 2. 2 (2) Image Processing applied to traffic 2.1 Need for processing……………………………………… 5 2.2 Parameters measurable…………………………………… 5 2.3 Image analysis system structure…………………………. 5 (3) Stages of image analysis Pipeline preprocessing…………………………………… 6 (4) Real-time image processing-Queue detection algorithm Methods of vehicle detection and tracking………………. 7 (5) Motion detection operation…………………………………… 8 (6) Motion detection – flowchart…………………………………. 9 (7) Vehicle detection algorithm Left-limit selection program………………………………. 11 (8) Threshold selection program 8.1 Threshold selection………………………………………… 12 8.2 Discussions………………………………………………… 12 (9) Conclusion…………………………………………………………. 13 References ……………………………………………………………... 14 INTRODUCTION • increasing demand for road traffic data of all sorts • variation of parameters in real-world traffic
  • 3. 3 • aimed to measure queue parameters accurately • algorithm has two operations : vehicle detection and motion detection • operations applied to profiles consisting sub-profiles to detect queue • motion detection is based on applying a differencing technique on the profiles of the images along the road • the vehicle detection is based on applying edge detection on these profiles Image processing applied to traffic Need for processing of traffic data: - Traffic surveillance and control, traffic management, road safety and development of transport policy. Traffic parameters measurable: - Traffic volumes, Speed, Headways, Inter-vehicle gaps, Vehicle classification, Origin and destination of traffic, Junction turning. Image analysis system structure: - backing store 2 ¼ M-byte RAM CCTV ADC 64k bytes camera 16-bit (data bus) mini- computer DAC monitor Printer Stages of image analysis: -  Image sensors used : Improved vidicon cameras: automatic gain control, low SNR
  • 4. 4  ADC Conversion: - Analog video signal received from video camera is converted to digital/binary form for processing  Pre-processing: High SNR of the camera output reduces the quantity of processing enormous data flow. To cope with this, two methods are proposed: 1. Analyze data in real time - uneconomical 2. Stores all data and analyses off-line at low speed. Pipeline Preprocessing does this job Stages in Pipeline Preprocessing : (1) Spatial Averaging – contiguous pixels are averaged (convolution) (2) Subtraction of background scene from incoming picture. (3) Threshold – Large diff.s are true ‘1’, small diff.s are false ‘0’  (4) Data Compression – reduces resulting data. (5) Block buffering – collects data into blocks. (6) Tape Interface – blocks are loaded onto a digital cassette recorder  Preprocessed picture is submitted to processor as 2-D array of no.s. Two jobs to be done: Green light on: - determine no. of vehicles moving along particular lanes and their classification by shape and size. Red light on: - determine the backup length along with the possibility to track its dynamics and classify vehicles in backup Methods of vehicle detection : • Background frame differencing: -grey-value intensity reference image
  • 5. 5 • Inter-frame differencing: -incoming frame itself becomes the background for the following frame • Segmentation and classification: -Sub division of an image into its constituent parts depending on the context Queue Detection Algorithm • approach described here is a spatial-domain technique to detect queue - implemented in real-time using low-cost system • For this purpose two different algorithms have been used, Motion detection operation , Vehicle detection operation • Motion detection is first – as in this case vehicle detection mostly gives positive result, while in reality, there may not be any queue at all. Applying this scheme further reduces computation time. 1. Motion detection operation: - a) differencing two consecutive frames. b) histogram of the key region parts of the frames is analyzed by comparing with the threshold value. c) key region should be at least 3-pixel-wide profile of the image along the road. d) a median filtering operation is firstly applied to the key region (profile) of each frame and one-pixel-wide profile is extracted. e) difference of two profiles is compared to detect for motion. f) when there is motion, the differences of the profiles are larger than the case when there is no motion. The motion can be detected by selecting a threshold value. Note: The size of the profile is an important parameter. Motion Detection Algorithm
  • 6. 6 Block diagram : frame 1 frame 2 L+2 L+2 Median Filter Line profile 0 Line profile 1 Dif = profile 1 – profile 0 No(motion) Yes(motion) Dif<Th1 Theory Behind  The profile along the road is divided into a number of smaller profiles (sub-profiles)  The sizes of the sub-profiles are reduced by the distance from the front of the camera.  Transformation causes the equal physical distances to unequal distances according to the camera parameters.  knowing coordinates of any 6 reference points of the real-world condition and the coordinates of their corresponding images, the camera parameters (a11, a12…a33) are calculated.  the operations are simplified for flat plane traffic scene - (Zo=0).
  • 7. 7 a11 a12 a13 a21 X1 Xo Yo 1 0 0 0 -Xo -Y1 Yo a22 = 0 0 0 Xo Yo 1 -Xo -Z1 Yo a23 Y1 a31 a32 a33 Solving matrix equation for camera parameters  above equation is used to reduce the sizes of the sub-profiles - each sub profile represents an equal physical distance.  no. of sub profiles depend on the resolution and accuracy required. The length of sub- profile should be about length of the vehicle - both the detection algorithms work accurately then. Vehicle detection algorithm : -  o Following the application of the motion detection operation, a vehicle detection operation is applied on the profile of the unprocessed image. o To implement the algorithm in real time, two strategies are often applied: key region processing and simple algorithms. o Most of the vehicle detection algorithms developed so far are based on a background differencing technique, which is sensitive to variations of ambient lighting. o The method used here is based on applying edge detector operators to a profile of the image – Edges are less sensitive to the variation of ambient lighting and are used in full frame applications (detection). o Edge detectors consisting of separable medium filtering and morphological operators, SMED (Separable Morphological Edge Detector) are applied to the key regions of the image. (The SMED approach is applied (f) to each sub-profile of the image and the histogram of each sub-profile is processed by selecting Dynamic left-limit value and a threshold value to detect vehicles. o SMED has lower computational requirement while having comparable performance to other morphological operators o SMED can detect edges at different angles, while other morphological operators are unable to detect all kinds of edges. Left-limit selection program : -
  • 8. 8  This program selects a grey value from the histogram of the window, where there are approx. zero edge points above this grey value.  When the window contains an object, the left-limit of the histogram shifts towards the maximum grey value, otherwise it shifts towards the origin.  This process is repeated for a large no. of frames(100),and the minimum of the left- limit of these frames is selected as the left-limit for the next frame Threshold selection program:-  The no. of edge points greater than the left limit grey value of each window is extracted for a large no. of frames (200) to get enough parameters below and above a proper threshold value.  These nos. are used to create a histogram where its horizontal and vertical axes correspond to the no. of edge points greater than left limit and the frequency of repetition of these numbers for a period of operation of the algorithm (200 frames).  This histogram is smoothed using a median filter and we expect to get two peaks in the resulted diagram, one peak related to the frames passing a vehicle and the other related to the frames without vehicles for that window.  However, as it can be seen in the figure given below, there are other number of edge points (32-40) between peaks 20 60, which are related to those vehicles in each profile. We use statistical approach based on selecting a point on the horizontal axis, where the sum of the entropy of the points above and below this point is maximum. This point is selected as the threshold value for the next period. Traffic movements at junctions (TMJ):  Measuring traffic movements of vehicles at junctions such as number of vehicles turning in a different direction (left, right, straight) is very important for the analysis of cross-section traffic conditions and adjusting traffic lights.
  • 9. 9  Previous research work for the TMJ parameter is based on a full-frame approach, which requires more computing power and, thus, is not suitable for real-time applications. We use a method based on counting vehicles at the key regions of the junctions by using the vehicle-detection method.  The first step to measure the TMJ parameters using the key region method is to cover the boundary of the junction by a polygon in such a way that all the entry and exit paths of the junction cross the polygon. However, the polygon should not cover the pedestrian marked lines. This step is shown in the figure given below.  The second step of the algorithm is to define a minimum numbers of key regions inside the boundary of the polygon, covering the junction.  These key regions are used for detecting vehicles entering and exiting the junction, based on first vehicle –in first-vehicle-out logic.  Following the application of the vehicle detection on each profile, a status vector is created for each window in each frame.  If a vehicle is detected in a window, a “one” is inserted on its corresponding status vector, otherwise, a “Zero” is inserted.  Now by analyzing the status vector of each window, the TMJ parameters are calculated for each path of the junction. Polygon Covered Junction Pedestrian line mark Results and Discussions: -  The main queue parameters we were interested in identifying were the length of the queue, the period of occurrence and the slope of the occurrence of the queue behind the traffic lights.
  • 10. 10  To implement the algorithm in real-time, it was decided that the vehicle detection operation should only be used in a sub-profile where we expect the queue will be extended. The procedure is as follows: LevelTh LevelTh LevelTh LevelTh N Y N Y N Y N Y motion detection vehicle detection E D D E G Q T E U E E C D U T E E I T O E N C T I O N Conclusions: - • Algorithm measuring basic queue parameters such as period of occurrence between queues, the length and slope of occurrence have been discussed.
  • 11. 11 • The algorithm uses a recent technique by applying simple but effective operations. • In order to reduce computation time motion detection operation is applied on all sub- profiles while the vehicle detection operation is only used when it is necessary. • The vehicle detection operation is a less sensitive edge-based technique.The threshold selection is done dynamically to reduce the effects of variations of lighting. • The measurement algorithm has been applied to traffic scenes with different lighting conditions. • Queue length measurement showed 95% accuracy at maximum. Error is due to objects located far from camera and can be reduced to some extent by reducing the size of the sub- profiles. References: -  Digital Image Processing by Rafael C.Gonzalez and Richard E.Woods.  Hoose, N. : ‘Computer Image Processing in Traffic Engineering’.  Rourke, A., and Bell, M.G.H.: ‘Queue detection and congestion monitoring using mage processing’, Traffic Engg. and Control.  Traffic Queue Length Measurement Using an Image Processing Sensor by Masakatsu Higashikobo, Toshio Hinenoya and Kouhei Takeouchi.  A Real-time Computer Vision System for Vehicle Tracking and Traffic Surveillance by Benjamin Coifman (corresponding author).
  • 12. 12  A Real-time Computer Vision System for Measuring Traffic Parameters by David Beymer, Philip McLauchlan, Benn Coifman and Jitendra Malik.s