光电子·激光2024,Vol.35Issue(2) :164-170.DOI:10.16136/j.joel.2024.02.0592

基于自适应阈值分割改进Canny算子的管道边缘检测方法研究

Research on pipeline edge detection based on improved Canny operator with adaptive threshold segmentation

王岩 胡睿甫 陈代鑫 董颖怀 付志强 栾琦
光电子·激光2024,Vol.35Issue(2) :164-170.DOI:10.16136/j.joel.2024.02.0592

基于自适应阈值分割改进Canny算子的管道边缘检测方法研究

Research on pipeline edge detection based on improved Canny operator with adaptive threshold segmentation

王岩 1胡睿甫 2陈代鑫 3董颖怀 1付志强 4栾琦2
扫码查看

作者信息

  • 1. 天津科技大学机械工程学院,天津 300222;天津市轻工与食品工程机械装备集成设计与在线监控重点实验室,天津 300222
  • 2. 天津科技大学机械工程学院,天津 300222
  • 3. 成都飞机工业(集团)有限责任公司,四川成都 610000
  • 4. 天津科技大学轻工科学与工程学院,天津 300222
  • 折叠

摘要

针对工厂中管道破损位置无法通过机器视觉准确判断的问题,提出一种基于自适应阈值分割改进Canny算子的管道边缘检测方法.该方法从滤波方式、梯度方向以及阈值分割角度对采集图像进行处理,首先采用采样-自适应中值滤波+双边滤波代替传统Canny算子中的高斯滤波,减少图像边缘信息丢失并去除图像中的噪声,然后增加梯度幅值的计算来更好地检测不同方向的边缘信息,最后为避免人工选取阈值效果不佳的情况,采用最大类间方差(OTSU)阈值分割算法进行阈值的自适应选取.实验表明,该方法相比于传统Canny算子的图像信噪比提升28.22%,边缘点数提升39.97%,四连通道数提升11.52%,八连通道数提升5.92%,提取特征完整且连续性较好,实现了对管道图像中破损情况的有效检测.

Abstract

To solve the problem that the location of broken pipes in a factory cannot be accurately determined by machine vision,a pipeline edge detection method based on improved Canny operator with adaptive threshold segmentation is proposed.The method processes the acquired images in terms of filtering method,gradient direction and threshold segmentation.Firstly,sampling-adaptive median filtering+bilateral filtering is used instead of Gaussian filtering in the traditional Canny operator to reduce the loss of image edge information and remove the noise in the image.Then,the gradient amplitude is calculated to detect the edge information in different directions.Finally,to avoid the ineffective manual selection of thresholds,the OTSU threshold segmentation algorithm is used for adaptive selection of thresholds.Experiments show that the method improves the image signal-to-noise ratio by 28.22%,the number of edge points by 39.97%,the number of four-connection channels by 11.52%and the number of eight-connection channels by 5.92%compared to the conventional Canny operator.The extracted features are complete and have good continuity,enabling effective detection of breakage in pipeline images.

关键词

管道/Canny算子/采样-自适应中值滤波/梯度方向/OTSU阈值分割算法

Key words

pipeline/Canny operator/sampling-adaptive median filter/gradient direction/Otsu threshold segmentation algorithm

引用本文复制引用

基金项目

天津市自然科学基金项目(19JCZDJC33200)

天津市自然科学基金项目(18JCQNJC05200)

天津市自然科学基金项目(18JCYBJC88900)

天津市教委科研计划项目(2018KJ116)

出版年

2024
光电子·激光
天津理工大学 中国光学学会

光电子·激光

CSCD北大核心
影响因子:1.437
ISSN:1005-0086
参考文献量20
段落导航相关论文