交通运输系统工程与信息 ›› 2012, Vol. 12 ›› Issue (3): 65-74.

• 智能交通系统与信息技术 • 上一篇    下一篇

实时车辆排队长度图像检测系统及FPGA硬件实现

王闯,史忠科*   

  1. 西北工业大学 自动化学院,西安 710129
  • 收稿日期:2011-12-27 修回日期:2012-02-16 出版日期:2012-06-24 发布日期:2012-07-03
  • 作者简介:王闯(1986-),男,河南南阳人,硕士生.
  • 基金资助:

    国家自然科学基金重点项目(61134004).

Design and FPGA Implementation of RealTime Vehicle Queue Detection System Based on Image Processing

WANG Chuang, SHI Zhong-Ke   

  1. School of Automatics, Northwestern Polytechnic University, Xi’an 710072, China
  • Received:2011-12-27 Revised:2012-02-16 Online:2012-06-24 Published:2012-07-03

摘要:

针对现有交通路口车辆排队长度检测系统处理速度低、无法适用于实际复杂路口环境的缺陷,设计了一种基于FPGA的实时车辆排队长度图像检测系统.通过形态学边缘处理检测车辆的存在,对检测出的车队轮廓进行水平投影并采用一种基于信息量的车辆度量方法从投影结果中提取了排队的队尾,同时在确定排队长度时通过对算法参数的自适应调整有效消除图像逆透视效果的干扰;整个图像处理过程完全利用FPGA硬件逻辑实现,采用五级并行流水设计保证图像采集、高斯滤波、Sobel边缘检测、阈值分割和形态学腐蚀处理同步执行且同时完成,实现了对分辨率为720×576的图像25帧/s的处理速度.实验结果表明,系统性能良好,工作稳定,算法简单实用,具有较好的应用前景.

关键词: 交通工程, 车辆排队长度, FPGA, 实时图像处理, 形态学边缘处理

Abstract:

In view of the defects of existing vehicle queue length detection systems in processing speed and adaptability to the real complex intersection environment, the paper proposes a FPGAbased realtime vehicle queue detection system.In this system, morphological edge detection is used to detect the vehicle presence, and the horizontal projection processing is applied.Next, the entropybased vehicle measurement method is adopted to detect the rear of the queue.Interference of the perspective effect of image sequence is eliminated through adaptive algorithm parameters adjustment.The hardware scheme of FPGAbased multilayered image processing possesses a linear fivelevel pipeline architecture, which makes the operation of image acquisition, gauss filtering, Sobel edge detection, threshold segmentation and morphological erosion can be completed almost at the same time.The system achieves up to the realtime processing speed of 25 frames per second for 720×576 pixel grayscale images.Extensive field experiments show that the proposed detection algorithm is simple and practical, the system is stable and promising.

Key words: traffic engineering, vehicle queuing, FPGA, realtime image processing, morphological edge detection

中图分类号: