• 沒有找到結果。

視覺式車輛特徵分析之研究

N/A
N/A
Protected

Academic year: 2021

Share "視覺式車輛特徵分析之研究"

Copied!
10
0
0

加載中.... (立即查看全文)

全文

(1)

資訊科學與工程研究所

視覺式車輛特徵分析之研究

Research on Vision Based Car Feature Analysis

研 究 生:古蕙媜

指導教授:李素瑛 教授

(2)

視覺式車輛特徵分析之研究

學生:古蕙媜 指導教授:李素瑛 博士

國立交通大學資訊科學與工程研究所

摘要

由於交通監控系統的普及化,偵測、追蹤並且辨識道路影片中的移動物體, 逐漸成為一項重要的研究議題。由於大部份的事故是由汽車所引起的,而且車輛 的外型特徵相較於車牌號碼,更不易被偽造或者隱藏,因此本論文將建構一個智 慧型交通監控系統,能夠在各種攝影機角度、各種反光影響下,辨識車輛的外型 特徵,包括顏色、大小與款式。為了克服光影的變化,排除車窗、車燈等無關車 色像素的影響,本論文提出一個三階段車體切割演算法,分別針對亮色系、暗色 系與彩色系的車子,設計不同策略切割車體,車輛的顏色僅考慮車體內部像素, 因此可以得到更精準的車輛主顏色,更進一步得到更正確的車色分類結果。為了 快速地估計車輛大小以及旋轉角度,本系統提出對稱中心演算法,用來搜尋車頭 的對稱中心,並計算此中心到最近邊緣的距離,此距離與車輛高度以及寬度的比 例,分別與車輛的大小與角度呈現單調函數,因此車輛的大小與角度可藉由比例 的反函數來求得。為了在各種角度下更精準的辨識車款,我們提出鏡射形變技 術,此技術可將在各種角度下拍攝到的車子都調整成標準的正面、側面或者背 面,接著選擇與測試車相同角度,並同樣經過形變處理的樣本車來比對。由於鏡 射形變技術可有效地排除角度估計誤差以對稱中心搜尋誤差,因此能比傳統以角 度估計為基礎的車款辨識方法提供更高的正確率。 關鍵詞:車輛顏色識別、車輛大小分類、車輛角度估計、車輛款式辨識、智慧型 交通系統、三階段車體切割、鏡射形變

(3)

Research on Vision Based Car Feature Analysis

Student: Hui-Zhen Gu Advisor: Dr. Suh-Yin Lee

Department of Computer Science and Information Engineering

National Chiao Tung University

Abstract

With the rapid growth of surveillance equipments, detecting, tracking, and recognizing

moving objects in roadway videos is currently a popular issue. Because most accidents are

caused by cars and the appearance features of cars are hard to be hidden or counterfeited like

license plate, this research develops an intelligent traffic monitoring system which identifies

appearance features, such as sizes, models, and colors under varying camera viewpoint and

light reflections. Due to the effect of non-homogeneous light reflection, the improper

foreground pixels, such as the windshield, or lamps influence the extraction of color type. A

tri-states car body segmentation algorithm is proposed in this dissertation. Different strategies

are designed for bright, dark, and colored cars, and only the pixels belonging to the car body

are considered for color classification. Therefore, a purer car color can be extracted and a

more correct color type can be classified. To rapidly estimate the size and pose of a car, a

symmetric center detection algorithm is proposed. The algorithm searches the symmetric

center on the head (or rear) of a car and computes the distance between the center and the

closest boundary as half of the head width. Two aspect ratios: car height to head (or rear)

(4)

To recognize car model across varying poses, a mirror morphing scheme is proposed. The

scheme is able to transform cars with varying poses into a typical (front, rear, or side) view.

Then a template car with the same pose with the tested car is selected and matched against the

tested car. Because the mirror morphing scheme effectively reduces center bias and estimation

error of tested and template cars, higher recognition rate can be anticipated. Finally, the

experiments show that the proposed system is superior to conventional approaches for

classifying colors, sizes, and models of cars.

Keywords:car color determination, car pose estimation, car size classification, car model

recognition, intelligent transportation system, tri-states car body segmentation,

(5)

Table of Contents

摘要……… i

Abstract………⋯ ii

Table of Contents……… iv

List of Figures……… vi

List of Tables……… viii

誌謝……… ix

Chapter 1 Introduction ……… 1

1.1 Research motivation……… 1

1.2 Research objective……… 3

1.3 Proposed solutions……… 4

Chapter 2 Related Works……… 7

2.1 Current research on car color determination……… 7

2.2 Current research on car pose estimation……… 9

2.3 Current research on car size classification……… 10

2.4 Current research on car model recognition……… 12

Chapter 3 Car Color Determination Algorithm……… 14

3.1 Algorithm overview……… 15

3.2 Car body candidate generation……… 17

3.3 Car body determination……… 35

3.4 Car color classification……… 37

3.5 Experiments of car color determination……… 38

Chapter 4 Car Pose Estimation Algorithm……… 53

4.1 Pose ratio computing……… 53

4.2 Symmetric center detection……… 56

4.3 Experiments of car pose estimation……… 61

Chapter 5 Car Size Classification Algorithm……… 64

5.1 Concavity detection……… 64

(6)

5.3 Three-class support vector machine……… 67

5.4 Experiments of car size classification……… 68

Chapter 6 Car Model Recognition Algorithm……… 71

6.1 Shape feature extraction……… 71

6.2 General morphing……… 74

6.3 Mirror morphing……… 76

6.4 Template matching……… 79

6.5 Experiments of car model recognition……… 82

Chapter 7 Conclusions and Future Works……… 97

7.1 Conclusions……… 97

7.2 Future works……… 98

(7)

List of Figures

Fig. 1: (a) Some examples of black, gray, white, red, yellow, green, and blue cars, (b) small-size cars, medium-size cars, and big-size cars, (c) car models, including

Mitsubishi lancer, Mazda 3, Nissan march, Honda civic, and Toyota yaris……… 2

Fig. 2: Car images with non-homogenous light reflection……… 3

Fig. 3: Car images covering different vehicle orientations……… 3

Fig. 4: System overview……… 4

Fig. 5: The car body extraction and color classification framework……… 14

Fig. 6: White, black, and orange car images and their segmentation results by hill-climbing algorithm……… 18

Fig. 7: (a)-(c) The specular-free images of the white, black, and orange cars, (d)-(f) the segmented results of the specular-free images via hill-climbing algorithm……… 20

Fig. 8: The extracted car body candidates of the (a) white, (b) black, and (c) orange cars after the process of the SARM algorithm……… 26

Fig. 9: The intensity (a)-(d) and saturation (e)-(f) histograms of six cars with black, white, dark-gray, light-gray, red and yellow colors and the background………… 30

Fig. 10: The CovAcc analysis with various BinNum and MergNum parameters for (a) black, (b) white, (c) dark-gray, (d) light-gray, and (e) colored cars. (f) Optimal parameters table……… 34

Fig. 11: Hierarchical SVM of color type classification……… 38

Fig. 12: Covering precisions of three compared methods on (a) ITS, (b) CBIR-simple, and (c) CBIR-complex datasets for each color category. Covering recalls of three compared methods on (d) ITS, (e) CBIR-simple, and (f) CBIR-complex datasets for each color category……… 44

Fig. 13: Accumulated percentage of hue deviation by three compared methods on colored car images in (a) ITS, (b) CBIR-simple and (c) CBIR-complex datasets. Accumulated percentage of intensity deviation by three compared methods on grayscale car images in (d) ITS, (e) CBIR-simple, and (f) CBIR-complex datasets 47 Fig. 14: Accuracies of color type classification of the three compared methods on in (a) ITS, (b) CBIR-simple, and (c) CBIR-complex datasets……… 50

Fig. 15: (a) The left, right, top, bottom ends and the symmetric center of a car, (b) the ratio cov of car width to car height and its estimation error cov (error bar), (c) the ratio pos of half width to car width and its estimation error pos……… 54

(8)

the check width and the check point at x-axis = 27, (c) the check point at 43 and the pixels in correspondence to compute ASD……… Fig. 17: ASD results and the prominent factor results for all check points……… 58 Fig. 18: The estimated pose errors of the conventional approach adopting cov and the

proposed approach adopting pose on (a) theoretical analysis and (b) the

experimental results……… 62

Fig. 19: Flowchart of the proposed size classification algorithm……… 64 Fig. 20: The concavity triangles appeared in a (a) small and (b) big car with large poses… 65 Fig. 21: Point distribution of (rsize, rpose) of small, medium, and big cars across various

poses……… 67

Fig. 22: ASM result (a) with erroneous initial position, (b) with improper initial mean shape, (c) with proper initialization setting. (d) ASM result of a different model car, (e) the segmented result of (c), and (f) the segmented result of (d)………… 73 Fig. 23: Establish the corresponding relationship between Img1 and Img2 for all pixels

based on known key point pairs (a) source image Img1 with 61 key points (b)

source image Img2 with 61 key points (c) a pixel S in Img1 but not one of 61 key

points (d) the pixel S’ in Img2 corresponding to the pixel S in Img1……… 75

Fig. 24: (a) Segmented image of front region, (b) mirror image of (a), (c) synthesized car image from (a) and (b) by mirror morphing, (d) synthesized template car image, (e) segmented image of side region, (f) selected mirror template, (g) synthesized car image from (e) and (f) by quasi mirror morphing……… 78 Fig. 25: Sensitivities of the algorithms with and without mirror morphing to pose error

and center bias in the initial phase……… 81 Fig. 26: Accuracy of estimated pose angle over all orientations……… 89 Fig. 27: Accuracy of estimated center position over all orientations……… 89 Fig. 28: Matching error distributions of (a) PETM-A, (b) PETM-B, (c) PASM-A, (d)

PASM-B, (e) ASMM-A, (f) ASMM-B, (g) QRAFM adopting the template car whose orientation is 30 ゚, and (h) QRAFM adopting 50 ゚ template on target cars and non-target cars……… 92 Fig. 29: Recognition rates over all orientations of the PETM, PASM and ASMM

algorithms……… 93

Fig. 30: Recognition rates over all orientations of the ASMM-B, PE-QRAFM , QRAFM with 45 ゚ and 135 ゚ templates, and PASM-B algorithms……… 95

(9)

List of Tables

Table 1: Terminology table of the car color determination algorithm……… 15

Table 2: The generated CBRs for the white, orange, and black cars in Fig. 6(a)-(c)…… 36

Table 3: Sample images from the ITS dataset……… 40

Table 4: Sample images from the CBIR-simple and CBIR-complex dataset……… 41

Table 5: Confusion matrices of color category classification on ITS, CBIR-simple, and CBIR-complex datasets……… 43

Table 6: Average computation time of each component in the proposed car color determination algorithm and in the compared methods……… 52

Table 7: Accuracy of the concavity detection……… 68

Table 8: Accuracy of the symmetric center detection……… 69

Table 9: Accuracy of the size classification……… 70

Table 10: The functions working in the car model recognition algorithms……… 84

Table 11: Examples of database images. Each row displays car images in the same view. The first car with red boundary is the target model and the others are non-target models……… 85 Table 12: Average computation time of each step in the car model recognition algorithm 96

(10)

誌謝

Acknowledgement

這一篇論文得以完成,我要特別感謝恩師 李素瑛教授。因為有老師如慈母般的關 懷,我才能堅定地完成研究,在她的費心指導下,論文品質才能有所提升。碩士班兩年 以及博士班五年的時間,跟隨在老師身邊,感謝她的呵護、包容、鼓勵以及引導,讓我 無論在待人處事、治學研究上都獲益良多,李老師是我學習的典範、一生模仿的對象。 感謝所有口試委員,范國清老師、廖弘源老師、張隆紋老師、吳坤榮老師、莊榮宏 老師以及杭學鳴老師,老師們所給予的建議與指導,充實了本論文的深度與廣度,更幫 助我對學術研究有更寬廣與深刻的體會。 此外我也要感謝多媒體資訊系統實驗室的學長姐以及學弟妹們,在每周開會的討論 當中,我們一同成長,精益求精。更要感謝與我一同完成中華電信研究所計畫的學弟妹 們,雋杰、立武、億才、端賢、誠毅與姿延,討論到深夜的景況歷歷在目,都是我珍貴 的回憶,因為有你們的陪伴,讓我的實驗室生活豐富而精采。 最後要感謝我親愛的父母親,古錦安博士以及許瑞容女士,因為有他們的支持,我 才能安心無慮地完成我的研究。感謝我的弟弟侑弘,他理解我遭遇研究瓶頸時的憂慮, 不斷給我加油打氣。更要感謝和我一起完成博士學業的先生 永威,在求學的路上,我 們共同承擔博士班生涯的酸甜苦辣滋味,也協助我激發出許多的創意與靈感,突破研究 的困境。心中有太多的感謝想要表達,謹將此論文獻給研究路上支持我、陪伴我的每一 個人,謝謝。

參考文獻

相關文件

Barrett, “On the Road to China: The Continental Relocation of Sacred Space and its Consequences,” in Images, Relics and Legends: Essays in Honor of Professor Koichi Shinohara,

Based on [BL], by checking the strong pseudoconvexity and the transmission conditions in a neighborhood of a fixed point at the interface, we can derive a Car- leman estimate for

(b) If, in a particular year, the accumulated surplus of the grant reaches 500% of the current year provision, EDB will suspend the disbursement of grant and claw back the

The case where all the ρ s are equal to identity shows that this is not true in general (in this case the irreducible representations are lines, and we have an infinity of ways

In this study, we compute the band structures for three types of photonic structures. The first one is a modified simple cubic lattice consisting of dielectric spheres on the

Corollary 13.3. For, if C is simple and lies in D, the function f is analytic at each point interior to and on C; so we apply the Cauchy-Goursat theorem directly. On the other hand,

Then g is defined on [a, b], satifies (11), and is continuous on [a, b] by the Sequential Characterization of Limits.. Thus, f

We solve the three-in-a-tree problem on