The invention discloses a multi-
sight-distance
deep learning track line detection method based on global features, and the method comprises the steps: 1, installing a far-focus camera and a near-focus camera at the head or side surface of a
train, obtaining track line images in different scenes in the
train operation process, and constructing a
data set; 2, in image preprocessing, a
Sobel operator is used for calculating gradient energy to generate a focusing degree image, a decision diagram is generated through multi-scale morphological optimization operation, and smooth transition of fused image boundaries is achieved through
Gaussian weighted fusion; step 3, constructing an improved ResNet18
backbone network, fusing multi-scale features, combining row selection and structure
perception loss, and performing Adam optimization training; and 4, real-time track line detection is carried out. According to the invention, through multi-
sight-distance
image fusion and global
feature extraction,
technical support is provided for realizing high-precision and real-time detection of a
train track line, automatic train driving, track state monitoring and other key tasks.