顾桂梅, 李晓梅, 常海涛, 高常强. 基于HSV空间的钢轨表面区域快速提取算法[J]. 云南大学学报(自然科学版), 2019, 41(4): 707-717. doi: 10.7540/j.ynu.20180216
引用本文: 顾桂梅, 李晓梅, 常海涛, 高常强. 基于HSV空间的钢轨表面区域快速提取算法[J]. 云南大学学报(自然科学版), 2019, 41(4): 707-717. doi: 10.7540/j.ynu.20180216
GU Gui-mei, LI Xiao-mei, CHANG Hai-tao, GAO Chang-qiang. Fast extraction agorithm for rail surface region based on HSV space[J]. Journal of Yunnan University: Natural Sciences Edition, 2019, 41(4): 707-717. DOI: 10.7540/j.ynu.20180216
Citation: GU Gui-mei, LI Xiao-mei, CHANG Hai-tao, GAO Chang-qiang. Fast extraction agorithm for rail surface region based on HSV space[J]. Journal of Yunnan University: Natural Sciences Edition, 2019, 41(4): 707-717. DOI: 10.7540/j.ynu.20180216

基于HSV空间的钢轨表面区域快速提取算法

Fast extraction agorithm for rail surface region based on HSV space

  • 摘要: 机器视觉采集的轨道图像中包含钢轨表面区域(简称轨面区域)及干扰区域(轨道、碎石、杂草等),从复杂的轨道图像中检测缺陷目标难度大、耗时多. 因此,先将轨面区域提取出来,然后对提取的轨面区域进行缺陷检测和识别可以节省大量时间. 传统的钢轨表面区域提取算法多为手动设定轨面边界,自适应性较差,且对光照异常敏感. 针对以上问题,就如何快速提取轨面区域进行了研究,提出了一种基于HSV空间的钢轨表面区域快速提取算法. 首先将采集的RGB图像转换到HSV空间,并提取其S分量图像,以此变换来克服光照条件变化对钢轨表面区域提取带来的干扰;其次在S分量图像中绘制灰度投影曲线;然后以图像的中点为轴,将曲线分为左右两侧,分别找到左右两侧列曲线的极大值L1R1和次大值L2R2;最后根据极大值和次大值的关系自动确定轨面区域的边界. 仿真结果表明,所研究的算法可以快速、准确地提取轨面区域,避免了手动确定轨面区域边界的问题,算法的泛化能力较好,提取精度较高(IoU高达0.92),提取准确率为93.87%,提取时间较传统方法大幅降低,平均提取时间为0.046 s,为铁路线路的实时自动化检测奠定了基础.

     

    Abstract: Rail image captured by machine includes rail surface area and interferenc zone (track, gravel, weeds, etc.). It is difficult and time-consuming to detect defective targets from complex track images. Therefore, It can save a lot of time to extract the rail area first, and then detect and identify the defects in the extracted rail area. The traditional rail surface region (abbreviated as rail surface region) extraction algorithm mostly determines the rail surface boundary manually, the application range of the algorithm is narrow, poor adaptability, and sensitive to light. In order to solve the above problems, the fast extraction method of rail area is studied and an algorithm for quickly extracting rail surface region based on HSV space is proposed in the thesis. Firstly, the acquired RGB image is transformed into HSV space, and its S component image is extracted, through this transformation to overcome the interference caused by changes in lighting conditions; Secondly, a gray projection curve is drawn in the S component image; Then use the midpoint of the image as an axis to divide the curve into the left and right sides, and find the maximum and minor values of the left and right column curves respectively. Finally, the boundary of the rail surface region is automatically determined based on the relationship between the maximum value and the second largest value. The simulation results show that the proposed algorithm can accurately and quickly extract the rail surface region and avoid manually determining the boundary of the rail surface region. The generalization ability of the algorithm is better and the extraction accuracy is higher (IoU is up to 0.92). the average extraction accuracy is 93.87%, and the extraction time is 0.046 s, significantly lower than the traditional method, it lays a foundation for real-time automatic detection of rail track.

     

/

返回文章
返回