为了探测前车车距,采用机器视觉方式,以 CCD构造单目成像系统采集前车图像,以检测车牌在图像中像素的数量方式实现车距的测量。系统以单目摄像头的成像模型,通过物像位置关系及大小关系,建立车牌图像与车距信息之间的模型;以CCD成像原理,建立车牌图像与传感器像元像素之间的模型。由此构建测距检测算法模型。采用MATLAB软件平台设计人机交互界面,对采集图像进行预处理提高图像的对比度;通过匹配连通域等算法,对车牌进行定位、分割,检测车牌水平方向像素数量;在此基础上,采取小孔成像原理计算车距的大小,并显示在软件平台上。实验证明了本系统能对前车图像进行分析从而计算出车距,该系统对3 m之外的车距检测平均误差为4%。
Abstract
In order to detect the front vehicle distance, a monocular imaging system based on CCD was used to collect the vehicle image, and the vehicle distance was measured by detecting the number of pixels in the image.The model including license plate image and vehicle distance information was established by the position and size relationships between object and its image based on the image model of monocular camera.Meanwhile based on the principle of CCD imaging, the model between license plate image and sensor pixels was established.Then the model of ranging detection algorithm was constructed.By building a CCD imaging system, the license plate image of the measured vehicle was acquired.The man-machine interface was designed by using MATLAB, and pre-processings were carried out to improve the image contrast.By matching connected regions and other algorithms, the license plate was located and segmented, and the number of pixels in the horizontal direction of the image was detected.On this basis, the size of vehicle distance was calculated with the principle of small aperture imaging and was displayed on the software platform.Experiments proved that the system can analyze the image of the front vehicle and calculate the distance, the average error of the system is 4% for the distance detection beyond 3 meters.
关键词
计量学 /
车距检测 /
机器视觉 /
图像处理
Key words
metrology /
vehicle distance detection /
machine vision /
image processing
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1]姚春莲, 冯胜男, 张芳芳, 等. 利用车牌面积进行车距测量的研究[J].系统仿真学报, 2017, 29(11): 2820-2827.
Yao C L, Feng S N, Zhang F F, et al. Vehicle-Distance Measurement Based on Plate Area[J]. Journal of System Simulation, 2017, 29(11): 2820-2827.
[2]韩延祥, 张志胜, 戴敏.用于目标测距的单目视觉测量方法[J].光学精密工程, 2011, 19(5): 1110-1117.
Han Y X, Zhang Z S, Dai M.Monocular vision system for distance measurement based on feature points[J].Optics and Precision Engineering, 2011, 19(5): 1110-1117.
[3]Wu C F, Lin C J, Lee C Y.Applying a functional neurofuzzy network to real-time lane detection and front-vehicle distance measurement[J].IEEE Transactions on Systems, Man, and Cybernetics, Part C: Applications and Reviews, 2012, 4(4): 577-589.
[4]Kim G, Cho J S.Vision-based vehicle detection and inter-vehicle distance estimation for driver alarm system[J].Optical Review, 2012, 19(6): 388-393.
[5]陈勇, 陈瑶.基于单目视觉的前方车辆距离计算方法研究[J].机电工程, 2014, 31(11): 1499-1504.
Chen Y, Chen Y.Calculation method of preceding vehicle distance based on monocular vision [J].Journal of Mechanical & Electrical Engineering, 2014, 31(11): 1499-1504.
[6]魏凯, 盛建平, 熊凯.基于阴影特征的前向车辆检测和测距方法研究[J].机械设计与制造, 2013, (2): 131-133.
Wei K, Sheng J P, Xiong K.Study on Forward Vehicle Detection and Distance Measurement Based on Shadow Features[J].Machinery Design & Manufacture, 2013, (2): 131-133.
[7]陈薇, 卢冠男, 陈梅.基于TLD框架的车距检测[J].控制工程, 2018, 25(6): 1059-1064.
Chen W, Lu G N, Chen M.Vehicle Distance Detection Based on TLD Framework[J].Control Engineering of China, 2018, 25(6): 1059-1064.
[8]程文冬, 袁伟, 张名芳, 等.融合车尾边缘特征的前车识别与纵向车距检测[J].机械设计与制造, 2017, (7): 152-156.
Cheng W D, Yuan W, Zhang M F, et al.Vehicle Detection and Longitudinal Distance Measurement Based on Fusion Characteristics of Rear Edge[J].Machinery Design & Manufacture, 2017, (7): 152-156.
[9]朱婉仪, 穆平安, 戴曙光.基于图像匹配的透明车灯部件检测[J].计量学报, 2018, 39(3):353-358.
Zhu W Y, Mu P A, Dai S G.Detection of Transparent Lamp Parts Based on Image Matching[J].Acta Metrologica Sinica, 2018, 39(3):353-358.
[10]王艳,谢广苏,沈晓宇. 一种基于MSER和SWT的新型车牌检测识别方法研究[J].计量学报, 2019, 40(1): 82-90.
Wang Y, Xie G S, Shen X Y. A New Vehicle Licence Plate Recognition Method Based on MSER and SWT[J].Acta Metrologica Sinica, 2019, 40(1): 82-90.
[11]刘斌, 赵建章, 孔祥欣, 等.基于 FPGA 的高动态范围红外图像细节增强算法[J].计量学报, 2018, 39(4): 493-497.
Liu B, Zhao J Z, Kong X X, et al.HDR Infrared Image Detail Enhancement Method Based on the FPGA[J].Acta Metrologica Sinica, 2018, 39(4): 493-497.
[12]程淑红, 高许, 周斌. 基于多特征提取和SVM参数优化的车型识别[J].计量学报, 2018, 39(3): 348-352.
Cheng S H, Gao X, Zhou B. Vehicle Recognition Based on Multi-feature Extraction and SVM Parameter Optimization[J].Acta Metrologica Sinica, 2018, 39(3): 348-352.
[13]张竟月, 孙斌, 谢玄达, 等.基于激光和机器视觉的微量液体容量计量方法[J].计量学报, 2018, 39(4): 504-509.
Zhang J Y, Sun B, Xie X D, et al.Volume Metrology Method for Micro Liquid Based on Laser and Machine Vision[J].Acta Metrologica Sinica, 2018, 39(4): 504-509.
[14]陈硕, 刘丰, 唐旭晟, 等. 基于机器视觉技术的水表在线检定系统研究[J].计量学报, 2017, 38(4): 473-476.
Chen S, Liu F, Tang X S, et al. Research on On-line Water-meter Verification System Based on Computer Vision Technology[J].Acta Metrologica Sinica, 2017, 38(4): 473-476.
基金
国家自然科学基金(51505052,51505053);重庆市科委基础与前沿研究一般项目(cstc2016jcyjA0497,cstc2015jcyjA40051);重庆市教委科学技术研究资助项目(KJ1500935,KJ1500931,KJ1500617)