The invention discloses a long-distance rail identification and obstacle detection method and
system, and the method comprises the steps: combining a long-focus optical
system with an ultra-high-speed industrial camera at a hardware level, and building a high-collection-frame-rate and long-distance optical detection
system; on the
software level, a
region of interest for obstacle detection is delimited according to recognition and visual segmentation of left and right rail lines of a rail, advanced visual tasks such as a rail obstacle intrusion detection
algorithm based on target detection are executed, and finally high-frame-rate recognition and detection of long-distance rails and rail obstacles are achieved. According to the invention, a Schmidt-Cassegrain optical system with a
focal length of 2000mm is used, and an ultra-high-speed industrial camera with a resolution of 1920 * 1080 and 3000 frames per second is combined to build a long-distance high-frame-rate optical detection platform which is erected on a driving position of a
train to detect railway conditions within a range of 6km in real time; serious accidents caused by overlong
braking distance due to high-speed running of the
train can be prevented. Compared with a traditional
train driver eye observation and
laser radar-based scanning imaging mode, a farther detection distance, better detection and recognition robustness and a higher
frame rate can be realized through the long-distance
optical observation platform and the rear-end real-time detection system.