基于计算机视觉的实时车辆运动速度检测算法研究
2016-05-14谭呈祥
谭呈祥



摘 要: 在对比了传统运动车辆实时检测方法的基础上,提出了一种新的G?C二重差分法,将视频流中的某一当前帧与背景帧进行边缘检测,将两帧的结果相减,得到梯度差分,再将此结果与背景颜色差分结果进行“或”运算,提高了车辆存在判断的准确度,此算法可以准确检测出路面运动车辆存在同时有效消除车辆阴影的影响,为后续车辆运动速度的实时检测提供了有力保证。基于运动车辆检测的结果,在VC环境下进行了编程实现,自动检测出运动车辆的实时速度,测试结果表明该算法效果很好。
关键词: 计算机视觉; 车辆检测; 速度检测; 消除车辆阴影
中图分类号: TN911.73?34 文献标识码: A 文章编号: 1004?373X(2016)09?0164?03
Abstract: On the basis of the comparison of the traditional moving vehicle real?time detection methods, a new G?C double difference method is proposed. The edge detection of a certain current frame and background frame in video stream is conducted, and then the results are subtracted from the two frames to get the gradient difference. After that the ″or″ operation for the difference result and background color difference result is performed to greatly improve the accuracy of the vehicle judgment. This algorithm can accurately detect the existing moving vehicle on the road and effectively eliminate the effect of vehicle shadow, which provides a strong guarantee for the real?time detection of the following vehicle moving velocity. Based on the results of moving vehicle detection, the programming realization was conducted in VC environment to automatically detect the real?time speed of the moving vehicle. The test results show that the effect of the algorithm is perfect.
Keywords: computer vision; vehicle detection; speed detection; vehicle shadow elimination
0 引 言
计算机视觉(Computer Vision)主要研究如何运用照相机和计算机获取被拍摄对象的数据与信息,形象的说,就是给计算机安装上“眼睛”(照相机)和“大脑”(算法)。目前,计算机视觉技术的应用领域十分广泛,其在道路交通管理中的应用更是取得了很好的效果。随着科学技术的飞速发展,现代交通在经济发展中所起的作用越来越大,而交通现代化带来的问题也越来越多,诸如交通拥挤、交通事故频发、交通环境恶化等。在这样的大背景下,智能交通系统(Intelligent Traffic System,ITS)作为一种强有力的交通管理手段应运而生,其高效率的管理特点使其成为当今世界道路交通管理的发展趋势,而计算机视觉技术则是ITS的重要技术支持。
实时车辆运动速度检测是ITS对交通实施监测和管理的重要一环,对车辆速度的检测一方面可以监控超速等违章问题,减少交通事故的发生,另一方面可以根据车速判断道路拥挤程度,进而迅速采取措施,保证道路交通的安全和畅通,从而实现智能交通管理的目的。……
