The invention relates to the technical field of image recognition, in particular to a wheel rim sundry
visual detection system for railway axle counting, and the
system comprises a wheel track feature preliminary extraction module which is used for receiving an axle counting point image, traversing the image to calculate the
gradient magnitude of each pixel point, screening the pixel points with the
gradient magnitude exceeding a preset threshold value, obtaining a discrete feature
point set of a wheel track, and obtaining a wheel track feature
point set; in the discrete feature
point set of the wheel track, dividing the point set into a linear feature
point cluster and an arc feature
point cluster, and establishing a preliminary wheel track
geometric primitive; according to the method, after an axle counting point image is received, edge information screening is completed according to a pixel
gradient magnitude, non-significant boundary areas are eliminated through gradient threshold limitation, the accuracy of
feature extraction is improved, and after a feature point set is formed, two types of feature point clusters of straight lines and arcs are divided, and geometric structure fitting is performed, so that the accuracy of
feature extraction is improved. And the morphological structure of the wheel rail is expressed in a parameter form, so that the region definition stability is improved.