摘要:In order to improve the accuracy and real-time performance of the automatic cleaning of groove rails in modern trams, this paper proposes a groove rail region extraction algorithm based on improved Hough transform. First, in order to speed up the detection and remove noise, the algorithm performs a series of pre-processing on the images collected by the camera, and then use the Canny edge detection method to extract the edge feature information of the groove rail. Finally, the algorithm is improved on the basis of the traditional Hough transform method according to the actual environment. The algorithm proposes three constraints from the straight line length, the slope of the straight line and the distance between the left and right edges, making the algorithm more feasible and accurate in extracting groove rail area. The extraction accuracy reached 97.9%, and the average extraction speed was 0.1903s, laying the foundation for the automatic cleaning of trough rails of modern trams.