应用科学学报 ›› 2019, Vol. 37 ›› Issue (6): 844-850.doi: 10.3969/j.issn.0255-8297.2019.06.009

• 信号与信息处理 • 上一篇    下一篇

基于计算机视觉的钢轨焊缝自动定位方法

刘松, 熊邦书   

  1. 南昌航空大学 图像处理与模式识别江西省重点实验室, 南昌 330063
  • 收稿日期:2018-10-21 修回日期:2019-03-09 出版日期:2019-11-30 发布日期:2019-12-06
  • 通信作者: 熊邦书,教授,研究方向:模式识别、智能信号处理、图像处理,E-mail:xiongbs@126.com E-mail:xiongbs@126.com
  • 基金资助:
    国家自然科学基金(No.61866027);江西省重点研发计划基金(No.20171BBE50013);南昌航空大学研究生创新专项基金(No.YC2017019)资助

Automatic Orientation Method for Rail Weld Based on Computer Vision

LIU Song, XIONG Bangshu   

  1. Key Laboratory of Image Processing and Pattern Recognition of Jiangxi Province, Nanchang Hangkong University, Nanchang 330063, China
  • Received:2018-10-21 Revised:2019-03-09 Online:2019-11-30 Published:2019-12-06

摘要: 为了实时检测钢轨焊缝边缘错边量合格情况,提出了基于计算机视觉的钢轨焊缝自动定位方法.首先,采用中值滤波对焊缝图像进行噪声去除;其次,采用限制对比度自适应直方图均衡算法和直方图均衡化法进行焊缝图像增强;然后,采用双阈值OTSU法进行图像分割,突出轨头和焊缝区域图像,并采用连通域法提取轨头和焊缝区域轮廓;最后,采用多次最小二乘直线拟合法获取焊缝拟合直线,计算拟合直线与轨头上边缘直线的交点作为定位点,实现钢轨焊缝自动定位.对60 kg/m钢轨焊缝区域的检测实验表明,所提方法具有精度高、稳定性好的优点,可用于焊轨基地焊缝的在线实时自动检测.

关键词: 计算机视觉, 图像增强, 焊缝边缘检测, 自动定位

Abstract: In order to detect the edge misalignment of rail weld in real time, an automatic positioning method for the rail weld based on computer vision is proposed. First, the method of median filtering is used to remove the noise in a weld image. Second, the weld image is enhanced by using the contrast limited adaptive histogram equalization (CLAHE) algorithm and the histogram equalization method. Third, the image is segmented by the double threshold OTSU method to highlight the rail head and the weld region, and the contours of the rail head and the weld region are extracted by using the method of connected-domain. Finally, the weld fitting line is obtained by multiple least squares fitting, and the intersection of the fitted straight line and the top edge line of the rail head are calculated as the positioning point, accordingly, the rail weld is automatic positioned. Through a test of the weld region of 60 kg/m rail, the method performs with high precision and stability, and can be used for measuring the rail weld automatically in real-time on line.

Key words: computer vision, image enhancement, weld edge detection, automatic positioning

中图分类号: