保持安全距離在道路駕駛上是十分重要的,保持和前車的安全距離可以有效降低事故發生的機率,這篇論文中提出了一個有效率的距離量測方法,並且只使用了單一攝影機,有別於一般雙眼立體視覺的架構。 本篇論文共分成四個模組,分別為車燈偵測模組、距離量測模組、車牌偵測模組以及決策模組,透過四個模組的分工,我們便可以知道前車的距離,進一步可以對駕駛人做出警告,避免對前車的碰撞。 在車燈偵測模組中,文中以車燈的亮度及顏色特徵作為車燈偵測的基礎,可以在很短的時間內找到車子的兩個車尾燈,利用車尾燈的寬度帶入距離量測模組中,便可以得到與前車的距離,在距離沒有碰撞的危險時我們使用攝影機變焦的功能,取得車牌的影像,利用車牌偵測模組找到車牌的切確位置,並透過車牌與車燈的比例關係對於距離量測所使用的參數做出校正,已達到更精確的防碰撞效果,在決策模組中,以簡單的物理公式給予使用者適當的輔助,以達成安全駕駛的目標。 Keeping a safe distance away from the frontal car is an important issue for car accident prevention. This thesis presents a practical distance measuring method in nighttime using a single CCD camera. The proposed system consists of three modules including taillight detection, license-plate detection, and distance measurement of which estimating the distance from the frontal car during driving. Firstly, the two taillights of a car are detected and extracted to be the salient features. Based on the proportionality of similar triangles, the distance between the CCD camera and the frontal car can be estimated. In addition, the license plate is detected and the measuring parameters are refined for accuracy enhancement. As a result, less processing time and high accuracy rate can be achieved by using the proposed method. In taillight detection module, the color and intensity are used to serve as the features. In a special color space, the taillight can be found easily. The second part in the system is the distance measuring module. In this module, we propose a special measuring system in which the real distance can be calculated by just using a single image. In the third module, an Adaboost license plate detector is employed. The license plate can be successfully detected by using Haar function and the system parameter can be automatically improved to uplift the accuracy. Experimental results demonstrate that our proposed system can indeed achieve the goal of car collision prevention during nighttime.