节点文献

基于FPGA及机器视觉的车道检测

Lane Detection Based on FPGA and Machine Vision

【作者】 陈林

【导师】 詹惠琴;

【作者基本信息】 电子科技大学 , 工程硕士(专业学位), 2019, 硕士

【摘要】 自动驾驶汽车可为人们生活带来便利,行车环境中的实时车道检测是实现自动驾驶的首要基础任务。目前对车道检测的研究大多是基于CPU+GPU开发平台,该平台性价比低、功耗高、体积大,不适合用于车载场景中。为了满足实时车道检测性能、功耗和灵活性等要求,本文在FPGA开发平台上设计出车道检测系统,最终实现实时车道检测。本文主要研究内容如下:车道线检测。本文首先列举并对比目前常用的实现方法,包括图像处理、语义分割等,经过实时性、计算复杂度等方面的对比后,制定出基于图像处理算法的实现方案;然后设计出实现车道线检测的各个模块,主要包括阈值分割、逆透视变换和车道线拟合;最后输出行驶区域、车道的曲率半径、车道弯曲方向以及车辆偏离车道中心的方向和距离等重要信息,完成车道线检测。车道线类型识别。本文首先提出车道线类型识别的必要性以及识别区域动态提取的方法;接着对Caffe深度学习框架以及卷积神经网络算法进行学习,对基于卷积神经网络算法的目标识别的原理与实现方法进行学习研究;然后制作车道线数据集,并根据数据集及硬件平台资源的实际情况,在PC上设计并训练出适合的网络结构;接着在FPGA环境中完成识别网络的搭建与测试;最后通过更改网络参数类型、插入流水线等方法优化程序设计,使得综合后硬件资源的使用量以及系统实时性方面都满足实际要求。数据通路设计。本文通过OV7725采集数据并输入到FPGA中,接着通过数据格式转换模块以及传输接口转换模块完成数据预处理,然后经过车道线检测模块和车道线类型识别模块,获取到车道曲率半径、车道弯曲方向以及车道线类型等重要信息,最后将检测结果输出到外部显示器上。整个系统的设计是基于ZYNQ7035 SoC开发平台,并该平台上完成车道线检测、车道线类型识别、数据通路设计等工作,并根据平台资源及特点优化通路设计,最终实现对车道线清晰且道路背景单一的结构化道路进行车道检测,速度达到104fps以上。

【Abstract】 Self-driving cars can bring convenience to people’s lives.Real-time lane detection in the driving environment is the primary basic task for achieving automatic driving.At present,the research on lane detection is mostly based on CPU+GPU development platform.The platform is low in cost performance,high in power consumption and large in size,and is not suitable for use in vehicle scenes.In order to meet the requirements of real-time lane detection performance,power consumption and flexibility,this paper designs a lane detection system on the FPGA development platform,and finally realizes real-time lane detection.The main research contents of this paper are as follows:Lane line detection.This paper first enumerates and compares the commonly used implementation methods,including image processing and semantic segmentation.After comparing the real-time and computational complexity,the implementation scheme based on image processing algorithm is developed.Then the lane line detection is designed.Each module mainly includes threshold segmentation,inverse perspective transformation and lane line fitting.Finally,important information such as the driving area,the radius of curvature of the lane,the direction of the lane of the lane,and the direction and distance of the vehicle from the center of the lane are output,and the lane line detection is completed.Lane line type identification.This paper firstly proposes the necessity of lane line type recognition and the method of dynamic extraction of recognition region.Then it learns the Caffe deep learning framework and convolutional neural network algorithm,and learns the principle and implementation method of target recognition based on convolutional neural network algorithm.Research;then make the lane line dataset,and design and train the appropriate network structure on the PC according to the actual situation of the dataset and hardware platform resources;then complete the identification network construction and testing in the FPGA environment;finally change the network The parameter type,the insertion pipeline and other methods optimize the program design,so that the usage of the integrated hardware resources and the real-time performance of the system meet the actual requirements.Data path design.This paper collects data through OV7725 and inputs it into FPGA.Then it performs data pre-processing through data format conversion module and transmission interface conversion module.Then,through the lane line detection moduleand lane line type identification module,the radius of curvature of the lane,the direction of lane curvature and the direction of the lane are obtained.Important information such as the type of lane line,and finally output the test results to an external display.The design of the whole system is based on the ZYNQ7035 SoC development platform,and the lane line detection,lane line type identification,data path design and other work are completed on the platform,and the channel design is optimized according to the platform resources and characteristics,and finally the lane line is clear and the road background is realized.A single structured road for lane detection with speeds above 104 fps.

【关键词】 FPGA车道检测实时性
【Key words】 FPGAlane detectionreal-time
  • 【分类号】TP391.41;TN791;U463.6
  • 【下载频次】262
节点文献中: