基于改进Canny算法和Hough变换的脉冲氩弧焊坡口边缘提取研究
Study on Groove Edge Extraction During Pulsed Argon Arc Welding Based on Improved Canny Algorithm and Hough Transform
吴涛 1刘卫华 2张旺 1陆皓 3丁超 4谢忠奇 1郭彦兵1
作者信息
- 1. 上海电机学院 机械学院,上海 201306
- 2. 中国核工业第五建设有限公司,上海 201512;上海交通大学 材料科学与工程学院,上海 200240
- 3. 上海交通大学 材料科学与工程学院,上海 200240
- 4. 中国核工业第五建设有限公司,上海 201512
- 折叠
摘要
针对脉冲氩弧焊中被动光传感采集的图像存在光亮变换快,目标像素少,难以提取出坡口的问题,提出一种基于改进阈值选择和双阈值检测的Canny算法.通过中值滤波和双边滤波代替传统Canny算法中的高斯滤波对图像进行滤波,引入背景像素与前景像素的数量比改进Otsu算法的最大方差,计算得到了靠近坡口的梯度值的阈值,依据改进后的双阈值检测获得完整的坡口边缘信息,对边缘信息进行Hough变换提取出清晰的坡口边缘.实验结果表明,和传统Canny算法相比,改进后的Canny算法提取坡口成功率提高,获得的坡口边缘信息也更加完整.
Abstract
The image collected by the passive light sensor during pulsed argon arc welding has the problems of fast light transformation,few target pixels,and it is difficult to extract the groove.A Canny algorithm based on improved threshold selection and double-threshold detection was proposed.The image was filtered by median filtering and bilateral filtering instead of Gaussian filtering in the traditional Canny algorithm,the number ratio of background pixels to foreground pixels was introduced to improve Otsu's maximum variance,and the threshold of the gradient value near the groove was calculated.The complete groove edge information was obtained by the optimized double-threshold detection,and the edge information was subjected to Hough transform to extract the clear bevel edge.The experimental results show that,compared with the traditional Canny algorithm,the improved Canny algorithm improves the success rate of groove extraction,and obtains more complete groove edge information.
关键词
被动光/坡口/Canny算法/Otsu算法/Hough变换Key words
passive light/groove/Canny algorithm/Otsu algorithm/Hough transform引用本文复制引用
出版年
2024