You are on page 1of 22

Universiti Malaysia Perlis

Multiple Vehicle Detection and Segmentation


In Malaysia Traffic Flow

Prepared by:
AHMAD FARIZ BIN HASAN

Page 1of 22
1
Contents

1) Introduction / Objective / Problem Statement


2) Design Specifications
3) Methodology / Design Flow
4) Results & Discussions
5) Conclusions
6) Future Works

Page 2 of 22
2
Introduction

 Computer vision-based traffic monitoring system has


become popular because of its flexibility and easy
installation as compared to ground-buried loop detectors.

 Vision based-system has many applications such as


measuring traffic parameters, vehicle classification,
detecting of illegal parking and etc.

 The tracking and identification of a highway vehicles is a


demanding application of computer vision.

Page 3 of 22
3
Problem Statement

 Analyzing scenes from congested traffic is difficult because


there are many vehicles occluding each other at the same
time.

 It is even more difficult when the video dimension is


compressed or when weather conditions are bad.

 In practice, traffic monitoring videos are usually highly


compressed and are in low resolution, and matching
models with vehicles in such a scene is difficult.

Page 4 of 22
4
Objective

 To develop multiple vehicle detection and


segmentation algorithm that can work
robustly with a low resolution highway
monitoring video.

Page 5 of 22
5
Design Specifications
 Based on video input from closed television (CCTV)

 Video captured will be performed during daytime with good


weather condition.

 Video camera will be static during video capturing but the


angle of camera will vary to get the desired result.

 Only video taken at the traffic light will be considered as


worst case scenario to monitor moving vehicles.

Page 6 of 22
6
Research Methodology
Start.

Research the Literature Reviews.

Design/Modify the Algorithm for moving


object segmentation.
Run and Simulate by using MATLAB 2011.

No
Satisfy.
Yes
Verify the algorithm with the real time
moving vehicle video.
No
Satisfy.
Yes

End.

Figure 1 Flow chart of overall Research Methodology

Page 7 of 22
7
Design Algorithm
Traffic Video

Gray Scale Traffic Image

Estimate Optical Flow of the image

Find image Threshold Value

Morphological Processing

Blob Analysis & Segmentation

END

Figure 2 Flow Chart of algorithm design

Page 8 of 22
8
Design Flow

1. Input Video 2. Convert to Grayscale 3. Estimate Optical Flow

4. Threshold Image

4. Morphological Processing
6. Segmentation Process

BLOB
ANALYSIS

Figure 3 Overall Flow Design Page 9 of 22


9
Optical Flow

Figure 4 Example of Motion Flow

• The sequence of images provide information about movement vehicle.

Page 10 of 22
10
Threshold

• Based on auto threshold


•Image frame consist of
a) moving object based on optical
flow.
b) Background image.
• Mean value will be calculated based on
image frame.
•The threshold value is actually
correspond to background of the image.
•Based on this value , the image can be
filter out to get the desire results.

Figure 5 Threshold Process

Page 11of 22
11
Morphological Processing

• Several process of morphological processing


such as dilation and erosion will be used.
•To obtain a clear and filled region.
•Erosion – Makes the object smaller & and can
break single object into multiple object.
•Dilation – Makes the object larger and can
merge multiple object into one.

Figure 7 Morphological Processing (a)Original


Figure 6 Morphological Image (b) Image after erosion (c) Image after
Processing Dilation 12
Page 12 of 22
Blob Analysis

• Compute the area of interested region


• Segmentation will be based on the area
obtained.

Figure 8 Segmentation
Process Based on blob Page 13 of 22
13
analysis.
Results & Discussions

1. Video 1 – Frame 88

Figure 9 Result
segmentation of Video 1

•Occlude vehicle detected at the back

Page 14 of 22
14
Results & Discussions

Evaluation of vehicle detection


Items Proposed
1. Video 3 - 91 Manual Inspection Algorithm Correctness
Number of segmentation 24 19 79.2%

10
9
9
8
7
6
6
5
Series1
4
3
2
1
0
Figure 10 Result Manual Inspection Proposed Algorithm

segmentation of Video 2

 Connected blob occur. Page 15 of 22


15
Results & Discussions

Evaluation of vehicle detection


Items Proposed
2. Video 1 – Frame 101 Manual Inspection Algorithm Correctness
Number of segmentation 34 19 55.9%

10
9
9
8
7
6
6
5
Series1
4
3
2
1
Figure 11 Result segmentation of Video 1 0
Manual Inspection Proposed Algorithm

•Not able to detect vehicle at the back due to it’s just start to move.
•Illumination effect on the frame occur

Page 16 of 22
16
Results & Discussions

3. Video 3 – Frame 50

10
9
9
8
7
6
6
5
Series1
4
3
2
1
0
Manual Inspection Proposed Algorithm

Figure 11 Result
segmentation of Video 3
Page 17 of 22
17
Results & Discussions

Evaluation of vehicle detection


Items Proposed
Manual Inspection Algorithm Correctness
5. Video 3 – Frame 60
Number of segmentation 9 6 66.7%

10
9
9
8
7
6
6
5
Series1
4
3
2

Figure 11 Result 1

segmentation of Video 3 0
Manual Inspection Proposed Algorithm

Page 18 of 22
18
Conclusions

 An automated vision system that has the


capability to detect and segment vehicles is
proposed for this research.

Page 19 of 22
19
Future Work
Considerations for future works of Multiple Vehicle
Segmentation inclusive of;
1) Shadow Removal and Illumination effect.
2) Processing time using Matlab is huge, proposed using C
language.

Page 20 of 22
20
References

• [1]. Goo Jun and J. K. Aggarawal. Tracking and Segmenting of Highway Vehicles in
Cluttered and Crowded Scenes. IEEE 2008 Workshops on Applications of Computer
Vision Copper, Colorado, Jan 2008(WACV’08).
• [2]. Jae – Young Choi, Kyung-Sang Sung and Yong Kyu Yang. Multiple Vehicles
Detection based on Scale-Invariant Feature Transform. Proceedings of the 2007
IEEE Intelligent Transportation Systems Conference Seattle, WA, USA, Sept. 30-
Oct 3, 2007.
• [3]. Shunsuke KAMIJO. Spatio – Temporal MRF model and its Application to
Traffic Flow Analyses. Proceedings of the 21st International Conference on Data
Engineering. April 2005.1203.
• [4]. Thou-Ho (Chao-Ho) Chen, Yu-Feng Lin, and Tsong-Yi Chen. Intelligent Vehicle
Counting Method Based on Blob Analysis in Traffic Surveillance. Proceedings of the
Second International Conference on Innovative Computing, Information and Control.
September 05 – 07, 2007.238.
• [5]. Erhan Bas, A. Murat Tekalp. Automatic Vehicle Counting from Video for Traffic
Flow Analysis. Proceedings of the 2007 IEEEIntelligent Vehicles Symposium.
Istanbul, Turkey : IEEE. 2007. 392 – 397.

Page 21 of 22
21
Page 22 of 22
22

You might also like