基於語義地圖之公分級視覺定位系統
Low-Cost Visual Localization Using Semantic Maps with Centimeter-Level Accuracy
摘要
車輛定位是自駕車技術中的關鍵任務,現在已經有許多搭載光達的車輛能夠達到自駕
車所需的公分級定位系統,但如何利用相機完成公分級視覺定位系統以達到低成本的
要求,仍有許多挑戰需要克服。現實中有許多物件能夠提供定位資訊,像是交通號誌、
停止線等,但這些物件出現的頻率卻不夠讓自駕車能夠隨時有高精準度的定位,為了
能夠隨時提供定位資訊,我們基於車道線偵測進行視覺定位。有鑑於車道線偵測系統
在高速公路場域中已能有穩定的偵測結果,我們將其應用至市區場域下,並且加入含
有完整車道線精確位置的語義地圖,將車道線對齊語義地圖得到自駕車定位資訊。然
而使用車道線進行視覺定位的系統最大的問題在於系統缺乏縱向維度的特徵點進行匹
配,因此於本論文中,我們提出一套基於虛線偵測之視覺定位系統,並有以下貢獻:(1)
在車道線偵測方面,在深度學習的偵測結果中融合傳統影像處理方法,得到針對虛線
的精準車道線辨識,補足了車道線定位系統所缺的縱向維度特徵;(2) 在定位方面,我
們透過疊加多幀影像的車道線輸出,讓系統能利用更大範圍的特徵點進行定位,改善
因投影誤差導致系統只能使用近距離特徵點的問題; (3) 在硬體設計方面,我們使用環
景多相機系統改善了一般相機只針對前方視角容易造成特徵點不足以及無偵測結果的
狀況。最後我們以繞行工研院中興院區之資料集作為驗證定位演算法之實驗場景,其
中我們選用光達定位之結果以作為對比精準度之參考基準。實驗結果顯示,我們在定
位的縱向精度上達到 16 公分的誤差,相比於原車道線定位系統有 71% 的精度提昇,
在橫向定位的精度上也達到 12 公分的誤差,在縱向與橫向定位皆達到公分級的定位精
準度。此外,使用環景多相機進行偵測讓系統在路口處更穩健的同時也提昇了 20% 的
定位精度。
車所需的公分級定位系統,但如何利用相機完成公分級視覺定位系統以達到低成本的
要求,仍有許多挑戰需要克服。現實中有許多物件能夠提供定位資訊,像是交通號誌、
停止線等,但這些物件出現的頻率卻不夠讓自駕車能夠隨時有高精準度的定位,為了
能夠隨時提供定位資訊,我們基於車道線偵測進行視覺定位。有鑑於車道線偵測系統
在高速公路場域中已能有穩定的偵測結果,我們將其應用至市區場域下,並且加入含
有完整車道線精確位置的語義地圖,將車道線對齊語義地圖得到自駕車定位資訊。然
而使用車道線進行視覺定位的系統最大的問題在於系統缺乏縱向維度的特徵點進行匹
配,因此於本論文中,我們提出一套基於虛線偵測之視覺定位系統,並有以下貢獻:(1)
在車道線偵測方面,在深度學習的偵測結果中融合傳統影像處理方法,得到針對虛線
的精準車道線辨識,補足了車道線定位系統所缺的縱向維度特徵;(2) 在定位方面,我
們透過疊加多幀影像的車道線輸出,讓系統能利用更大範圍的特徵點進行定位,改善
因投影誤差導致系統只能使用近距離特徵點的問題; (3) 在硬體設計方面,我們使用環
景多相機系統改善了一般相機只針對前方視角容易造成特徵點不足以及無偵測結果的
狀況。最後我們以繞行工研院中興院區之資料集作為驗證定位演算法之實驗場景,其
中我們選用光達定位之結果以作為對比精準度之參考基準。實驗結果顯示,我們在定
位的縱向精度上達到 16 公分的誤差,相比於原車道線定位系統有 71% 的精度提昇,
在橫向定位的精度上也達到 12 公分的誤差,在縱向與橫向定位皆達到公分級的定位精
準度。此外,使用環景多相機進行偵測讓系統在路口處更穩健的同時也提昇了 20% 的
定位精度。
Centimeter-level localization is a critical task for self-driving cars. Compared to high-
accurate sensors (e.g. LiDAR, RTK-GPS, et al.), cameras are relatively inexpensive.
How to use cameras to reach the centimeter-level localization system remains an impor-
tant problem. Some objects could be considered as localization features, such as road
lanes, traffic signs, etc. To localize the ego vehicle on the urban roads, we developed a
visual localization system based on the road lane detection. As the lane detection system
performs well on highways, we used the lane detection system and applied the semantic
maps that contain completed lane information to localize the ego vehicle in urban sce-
narios. For a lane-based visual localization system, the lack of longitudinal features is
the critical problem. In this thesis, we solve the issue by proposing a visual localization
system based on dashed lanes. Our contributions focus on the following: (1) For lane
detection, we applied the image processing approach on deep learning lane detection re-
sults to extract dashed lanes. Dashed lanes offer longitudinal features that the lane-based
localization system lacks. (2) For the localization system, we overlapped several frames
of the lane to allow the system to use a wider range of feature points for localization.
Improve the problem that the system can only use close-range feature points due to per-
spective noise. (3) For the hardware setting, we used the around-view monitoring system
to avoid the front camera being disturbed by dynamic objects in urban environments.
The evaluated experiments were tested on the campus of Industrial Technology Research
Institute. We set LiDAR-based localization results as the benchmark. The result shows
that we reduced the longitudinal error by 71% to 16 cm. We also reduced the lateral error
to 12 cm. Both longitudinal and lateral could reach centimeter-level accuracy. Further-
more, the setting of the around-view cameras also reduced the error by 20% and made
the system more robust at the intersection.
accurate sensors (e.g. LiDAR, RTK-GPS, et al.), cameras are relatively inexpensive.
How to use cameras to reach the centimeter-level localization system remains an impor-
tant problem. Some objects could be considered as localization features, such as road
lanes, traffic signs, etc. To localize the ego vehicle on the urban roads, we developed a
visual localization system based on the road lane detection. As the lane detection system
performs well on highways, we used the lane detection system and applied the semantic
maps that contain completed lane information to localize the ego vehicle in urban sce-
narios. For a lane-based visual localization system, the lack of longitudinal features is
the critical problem. In this thesis, we solve the issue by proposing a visual localization
system based on dashed lanes. Our contributions focus on the following: (1) For lane
detection, we applied the image processing approach on deep learning lane detection re-
sults to extract dashed lanes. Dashed lanes offer longitudinal features that the lane-based
localization system lacks. (2) For the localization system, we overlapped several frames
of the lane to allow the system to use a wider range of feature points for localization.
Improve the problem that the system can only use close-range feature points due to per-
spective noise. (3) For the hardware setting, we used the around-view monitoring system
to avoid the front camera being disturbed by dynamic objects in urban environments.
The evaluated experiments were tested on the campus of Industrial Technology Research
Institute. We set LiDAR-based localization results as the benchmark. The result shows
that we reduced the longitudinal error by 71% to 16 cm. We also reduced the lateral error
to 12 cm. Both longitudinal and lateral could reach centimeter-level accuracy. Further-
more, the setting of the around-view cameras also reduced the error by 20% and made
the system more robust at the intersection.