基于OpenCV和 YOLOv5的车道线检测与识别
DOI:
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP181

基金项目:

国家自然科学基金(62203344)、陕西省技术创新引导专项-科技成果转移与推广计划(2020CGXNG-009) 项目资助


Lane detection and recognition based on OpenCV and YOLOv5
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    为更加快速、准确识别汽车行驶区域并区分车道,实现无人驾驶,提出一种结合视觉OpenCV 算法和改进 YOLOv5算 法的目标检测跟踪模型进行车道线检测的方法。在图像预处理阶段,首先读取视频图像,把每一帧RGB图像转为灰度图,通 过Canny 算子对图像的边缘轮廓进行提取,然后绘制车道线的掩码区域,并与边缘检测结合,采用ROI 技术提取感兴趣区域, 最后进行概率霍夫变换和最小二乘拟合,将得到的直线绘制到原图像中,最终对每一帧处理后的图像进行输出。目标识别模 块采用卷积神经网络(convolutional neural network,CNN)深度学习方法及 YOLOv5算法进行目标识别处理。实验结果表 明,所提检测算法能够实现准确的车道线检测,实时性和准确性比传统算法高很多,且该方法具有良好的鲁棒性。

    Abstract:

    In order to quickly and accurately identify the driving area of cars and distinguish lanes,achieving autonomous driving.This paper proposes a method for lane detection using an object detection and tracking model that combines visual OpenCV algorithm and improved YOLOv5 algorithm.In the image preprocessing stage,Firstly,read the video image and convert each frame of RGB image into a grayscale image.secondly,uses the Canny operator to extract the edge contour of the image,and then combines the masked area of lane lines with edge detection,Using ROI technology to extract regions of interest.Finally,perform probability Hough transform and least squares fitting to draw the obtained straight line into the original image,and finally output the processed image for each frame.The target recognition module adopts convolutional neural network(CNN)deep learning method and YOLOv5 algorithm for target recognition processing.The experimental results show that the proposed detection algorithm can achieve accurate lane detection,with much higher real-time and accuracy than traditional algorithms,and this method has good robustness.

    参考文献
    相似文献
    引证文献
引用本文

卢 嫚,朱世博.基于OpenCV和 YOLOv5的车道线检测与识别[J].国外电子测量技术,2024,43(6):134-142

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2024-07-09
  • 出版日期:
文章二维码