高级检索

复杂桥梁场景下Canny与Sobel边缘检测算法改进策略

Improvement Strategies for Canny and Sobel Edge Detection Algorithms in Complex Bridge Scenarios

  • 摘要: 针对经典边缘检测算法在复杂桥梁场景中易受标线、水渍及光照不均干扰的问题,为提升算法的场景适应性与鲁棒性,本文构建了真实桥梁图像数据集,并提出针对Canny与Sobel算法的定向改进方法:采用动态高斯平滑、自适应双阈值及形态学后处理优化Canny算法,引入中值滤波、光照补偿预处理、多方向梯度加权及自适应阈值机制改进Sobel算法,进而将传统与改进后的两种算法进行对比分析。结果表明:传统Canny因参数固定导致边缘断裂与细节丢失,传统Sobel对水平标线抑制较弱且暗区伪边缘较多;改进后,Canny算法的边缘连续性与光照适应性明显增强,Sobel算法的抗标线与水渍干扰能力有效提升。此外,改进Sobel适用于快速响应与现场初筛,改进Canny适用于高精度后期详查,二者优势互补,可根据实时性与精度需求灵活选用。本文所提方法有效克服了传统算法的场景局限性,为桥梁表观检测提供了实用可靠的解决方案,具有良好的工程应用价值。

     

    Abstract: To address the issue of classic edge detection algorithms being susceptible to interference from markings, water stains, and uneven lighting in complex bridge scenes, this paper constructs a real bridge image dataset and proposes a directional improvement method for the Canny and Sobel algorithms. The Canny algorithm is optimized using dynamic Gaussian smoothing, adaptive dual thresholding, and morphological post-processing. The Sobel algorithm is improved by introducing median filtering, lighting compensation preprocessing, multi-directional gradient weighting, and adaptive threshold mechanism. The traditional and improved algorithms are compared and analyzed. The results showed that traditional Canny caused edge breakage and detail loss due to fixed parameters, while traditional Sobel had weaker suppression of horizontal markings and more false edges in dark areas; After improvement, the edge continuity and light adaptability of Canny algorithm are significantly enhanced, and the anti marking and water stain interference ability of Sobel algorithm is effectively improved. In addition, the improved Sobel is suitable for fast response and on-site initial screening, while the improved Canny is suitable for high-precision later detailed investigation. The advantages of the two complement each other and can be flexibly selected according to real-time and accuracy requirements. The method proposed in this article effectively overcomes the limitations of traditional algorithms and provides a practical and reliable solution for bridge appearance detection, with good engineering application value.

     

/

返回文章
返回