A method and device for detecting foreign body intrusion on track based on computer vision

Through computer vision technology, combined with grayscale, gradient feature extraction and contour clustering, it solves the problem in the existing technology that the foreign object detection effect is limited by the data set and the detection is not real-time, and realizes the identification and real-time detection of all foreign objects. , expanding the detection range and reducing costs.

CN112464906BActive Publication Date: 2024-08-23SHANGHAI MEDIA INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011496298.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-08-23
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

The existing technology has problems in track foreign object detection, such as the recognition effect is limited by the distribution of data sets, high model maintenance and operation costs, non-real-time detection, and is limited to straight tracks, and the generalization ability and detection distance of classic vision algorithms are limited.

Method used

Using a method based on computer vision, through steps such as grayscale processing, gradient feature extraction, binarization, contour extraction and clustering, combined with edge tracking technology, real-time detection of foreign objects on the track is achieved, and through the adaptive ROI module and The central axis extraction distinguishes the left and right track areas, identifies all foreign objects and issues an alarm signal.

Benefits of technology

It realizes the identification of all foreign objects, reduces operating costs, expands the detection range, improves detection efficiency and generalization capabilities, avoids detection lag problems, and supports non-straight track detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112464906B
    Figure CN112464906B
Patent Text Reader

Abstract

The present invention discloses a method and device for detecting foreign body intrusion on a track based on computer vision, comprising: reading an input image; performing grayscale processing; extracting gradient features; performing binarization processing; masking the binarized image to leave valid information in an area of ​​interest; extracting contour line features in the binarized image of interest; filtering closed contour lines in the contour lines to obtain all contours with the strongest correlation with the track; obtaining the central axis of all contours; distinguishing left and right track areas according to the central axis, clustering and screening contour lines in the left and right track areas respectively, and obtaining track line contours; feeding back the track contour lines to the binarized area of ​​interest; if the endpoints of the track contour lines cannot intersect with the boundaries of the binarized area of ​​interest, it is determined to be blocked; arranging the result format and outputting it. The present invention has low operating cost and high efficiency, is not limited to straight track, and has a wide range of applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and device for detecting track foreign body intrusion based on computer vision. Background Art

[0002] As one of the important factors that damage the safety of rail trains, railway line failures caused by foreign objects intruding on the track seriously endanger the safety of national property and people's lives. Track foreign object intrusion detection has received more and more attention. The current solutions basically rely on manual inspection and driver vision, supplemented by equipment. Due to the high speed of trains, inspection efficiency and human eye fatigue, traditional methods are difficult to fully meet the needs of foreign object intrusion detection.

[0003] The method based on computer vision algorithm is used to solve the task of foreign body intrusion detection on the track, aiming to obtain foreign body information accurately and in real time through machine vision, provide reference for subsequent decision-making, and solve the problems caused by methods such as manual inspection. Computer vision methods can be divided into two parts according to the algorithm principle, namely classical vision algorithms and deep learning algorithms. Compared with classical vision methods, deep learning algorithms have the following problems: detection categories and effects are subject to data sets, the labeling cost is very high, the model update cycle is long and costly, and the algorithm operation cost is high. The main limitations of classical vision algorithms are that the generalization ability is difficult to improve and there are too many parameters.

[0004] The invention patent with application number: 201910713696.5 and title: Track foreign body detection method based on rotor unmanned aerial vehicle and YOLOv3 proposes a solution using deep learning detection algorithm YOLOv3 for foreign body detection, but its detection range is limited to the 5 categories contained in its data set, and it is necessary to build a relevant data set, with high annotation cost, and the model effect is limited by the quality of the data set. The model update cycle is long and the operating cost is high. Moreover, the solution given in this patent is a patrol inspection solution, which has the problem of non-real-time. And it is limited to straight tracks.

[0005] The application number is: CN201910029546.2, and the name is: An invention patent for an image-based foreign object detection method for tracks. It proposes a solution for foreign object detection using a classical visual algorithm. The algorithm uses a clustering method to establish a feature library for the rails, and performs retrieval and matching during operation to find foreign objects that cannot match the rail feature library. It needs to establish a feature library, and its performance will be greatly limited by the coverage of the feature library. Moreover, this method is limited to detecting image content of less than 1 / 5 of the frame, and the detectable distance is greatly limited. Given the high speed of the train, detection within this distance is of no practical significance.

[0006] The defects of the prior art are summarized as follows:

[0007] (1) The invention patent entitled: Track foreign body detection method based on rotary-wing unmanned aerial vehicle and YOLOv3 uses a deep learning algorithm, and its recognition effect is limited by the distribution of the training data set. The maintenance and operation costs of the deep learning model used are high, and the given solution is an unmanned inspection solution to replace manual inspection, but because it is not on the train, it still lacks the immediacy of detection. And it is limited to straight tracks;

[0008] (2) The invention patent entitled “An image-based track foreign object detection method” uses a classical visual algorithm and a retrieval method to identify foreign objects. The recognition effect is limited by the diversity of the rail feature library and can only identify 1 / 5 of the content of the frame. The recognition distance is short. Given the high speed of the train, the foreign object detection lacks practical reference value. Summary of the invention

[0009] In view of the problems existing in the above-mentioned prior art, the present invention proposes a method and device for detecting track foreign object intrusion based on computer vision, which has low operating cost and high efficiency, is not limited to linear tracks, and has a wide range of applications.

[0010] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0011] The present invention provides a method for detecting track foreign body intrusion based on computer vision, which comprises:

[0012] S101: Read input image;

[0013] S102: grayscale the input image to obtain a grayscale image;

[0014] S103: extracting the gradient features of the grayscale image to obtain a gradient image;

[0015] S104: performing binarization processing on the gradient image to obtain a binarized image;

[0016] S105: performing masking on the binarized image to leave valid information in the region of interest, thereby obtaining a binarized image of interest;

[0017] S106: extracting contour line features in the binary image of interest to obtain contour lines;

[0018] S107: filtering closed contours in the contours to obtain all contours with the strongest correlation with the track;

[0019] S108: Obtaining the central axis of all the contours obtained in S107, for distinguishing the left and right track areas;

[0020] S109: Distinguish the left and right track areas according to the central axis obtained in S108, cluster the contour lines in the left and right track areas respectively, and further screen them to obtain the track line contour;

[0021] S110: Feeding back the track contour obtained in S108 to the binarized region of interest for the next cycle;

[0022] S111: If the endpoint of the track contour line cannot intersect with the boundary of the binary region of interest, it is determined to be blocked, and obstacle information is obtained;

[0023] S112: Arrange the result format and output it.

[0024] Preferably, the steps between S102 and S103 further include:

[0025] S201: performing denoising processing on the grayscale image.

[0026] Preferably, after S112, the step further includes:

[0027] S301: If there is foreign matter in the output result, an alarm signal is issued.

[0028] Preferably, the S106 further comprises:

[0029] S1061: Using edge tracking technology, topological analysis is performed on the binary image of interest to find a closed contour;

[0030] S1062: Analyze the contour categories of the closed contours and the hierarchical relationships between the contours;

[0031] The contour categories include: outer contour, hole contour, and the hierarchical relationship between the contours includes: inclusion relationship or parent-child relationship;

[0032] S1063: Obtain all outer contours.

[0033] Preferably, the S107 further comprises: filtering the closed contour lines by the V-axis effective length of the closed contour lines, wherein the longer the V-axis effective length is, the stronger the correlation with the track is.

[0034] Preferably, the S108 further includes:

[0035] S1081: extract the two endpoints of all contours;

[0036] S1082: Extract the effective length of the V axis of all contours;

[0037] S1083: Using the effective length of the V axis of the contour as a weight, the centroids of the two end points of all contours are respectively obtained as the two end points of the central axis to obtain the central axis.

[0038] Preferably, the S111 includes:

[0039] S1111: extracting the contour of the track contour segment endpoints;

[0040] S1112: converting the contour of the endpoint to a bird's-eye view according to the binarized region of interest;

[0041] S1113: Observe the intersection of the track contour endpoint and the binary region of interest. When the track contour endpoint cannot intersect with the boundary of the binary region of interest, it is determined that the track is discontinuous and blocked, and the obstacle information is the position where the contour endpoint does not intersect with the binary region of interest.

[0042] The present invention also provides a method for detecting foreign body intrusion on a track based on computer vision, which comprises: an input module, a grayscale module, a gradient module, a binarization module, an adaptive ROI module, a contour extraction module, a contour filtering module, a central axis extraction module, a contour clustering module, a track contour feedback module, a track occlusion detection module and an output module; wherein,

[0043] The input module is used to read the input image;

[0044] The grayscale module is used to perform grayscale processing on the input image to obtain a grayscale image;

[0045] The gradient module is used to perform binarization processing on the gradient map to obtain a binarized image;

[0046] The binarization module is used to perform binarization processing on the gradient map to obtain a binarized image;

[0047] The adaptive ROI module is used to perform masking on the binarized image, leaving valid information in the region of interest, and obtaining a binarized image of interest;

[0048] The contour line extraction module is used to extract contour line features in the binary image of interest to obtain contour lines;

[0049] The contour filtering module is used to filter the closed contours in the contours to obtain all contours with the strongest correlation with the track;

[0050] The central axis extraction module is used to obtain the central axis of all contours obtained by the contour filtering module, so as to distinguish the left and right track areas;

[0051] The contour line clustering module is used to distinguish the left and right track areas according to the central axis obtained by the central axis extraction module, cluster the contour lines in the left and right track areas respectively, and further screen them to obtain the track contour line;

[0052] The track contour line feedback module is used to feed back the track contour line obtained by the contour line clustering module to the binarized region of interest for the next cycle;

[0053] The track occlusion detection module is used to determine that the track contour line is blocked if the endpoint cannot intersect with the boundary of the binary region of interest, and obtain obstacle information;

[0054] The output module is used to format and output the results.

[0055] Preferably, it also includes: a denoising module and / or an alarm module; wherein,

[0056] The denoising module is used to perform denoising processing on the grayscale image obtained by the grayscale module;

[0057] The alarm module is used to send out an alarm signal when foreign matter exists in the result output by the output module.

[0058] Preferably, the track occlusion detection module further comprises: an endpoint contour extraction module, an original image bird's-eye view conversion module and an intersection detection module; wherein,

[0059] The endpoint contour extraction module is used to extract the contours of the endpoints of the track contour line segment;

[0060] The original image bird's-eye view conversion module is used to convert the outline of the endpoint to a bird's-eye view perspective according to the binarized region of interest;

[0061] The intersection detection module is used to observe the intersection of the track contour endpoint and the binary region of interest. When the track contour endpoint cannot intersect with the boundary of the binary region of interest, it is determined that the track is discontinuous and blocked, and the obstacle information is the position where the contour endpoint does not intersect with the binary region of interest.

[0062] Compared with the prior art, the present invention has the following advantages:

[0063] (1) The computer vision-based track foreign object intrusion detection method and device provided by the present invention detects foreign objects based on computer vision, is not limited to the categories contained in a specially collected database, and can identify all foreign objects. It has low operating costs and high efficiency, and avoids the problem of detection delay.

[0064] (2) The computer vision-based track foreign body intrusion detection method and device provided by the present invention has a longer detection range through a better binarization algorithm and more general restriction rules. Due to the high speed of the train, a longer identifiable distance is required;

[0065] (3) The computer vision-based track foreign body intrusion detection method and device provided by the present invention completes track line detection through edge tracking technology, which is not limited to straight tracks and has a wider range of applications;

[0066] (4) The computer vision-based track foreign object intrusion detection method and device provided by the present invention, through a more general pipeline design and restriction rules, can work normally for different usage scenarios by adjusting only a small number of parameters, further improving the generalization ability.

[0067] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings:

[0069] Figure 1 This is a flow chart of a method for detecting foreign body intrusion on a track based on computer vision according to an embodiment of the present invention;

[0070] Figure 2 The present invention is a flowchart of a method for detecting foreign body intrusion on a track based on computer vision according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0071] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.

[0072] like Figure 1 Shown is a flow chart of a method for detecting foreign object intrusion on a track based on computer vision according to an embodiment of the present invention.

[0073] Please refer to Figure 1 The computer vision-based track foreign body intrusion detection method of this embodiment includes:

[0074] S101: Read input image;

[0075] S102: grayscale the input image to obtain a grayscale image;

[0076] S103: extracting the gradient features of the grayscale image using a visual method including but not limited to the Sobel operator to obtain a gradient image;

[0077] S104: binarizing the gradient image according to statistical features, adaptive features or other custom rules to obtain a binarized image;

[0078] S105: masking the binarized image using predefined ROI information, leaving valid information in the region of interest, and obtaining a binarized image of interest; wherein the ROI information can be updated and modified according to the output of the previous frame to ensure that the optimal ROI is obtained;

[0079] S106: extracting contour features in the binary image of interest to obtain contours;

[0080] S107: based on information such as contour length, V-axis effective length, center position, contour trend, contour shape, etc., the closed contours in the contours are filtered to obtain all contours with the strongest correlation with the track;

[0081] S108: Obtaining the central axis of all the contours obtained in S107, for distinguishing the left and right track areas;

[0082] S109: according to the central axis obtained in S108, the left and right track areas are distinguished, and the contour lines in the left and right track areas are clustered according to the contour length, V-axis effective length, center position, contour trend, contour shape and other information, and further screened to obtain the track line contour;

[0083] S110: Feeding back the track contour obtained in S108 to the binarized region of interest for the next cycle;

[0084] S111: If the endpoint of the track contour line cannot intersect with the boundary of the binary region of interest, it is determined to be blocked, and obstacle information is obtained;

[0085] S112: Arrange the result format and output it.

[0086] In a preferred embodiment, between S102 and S103, the following is also included:

[0087] S201: De-noising the grayscale image.

[0088] In a preferred embodiment, after S112, the following steps are further included:

[0089] S301: If there is foreign matter in the output result, an alarm signal is issued.

[0090] In a preferred embodiment, S106 further includes:

[0091] S1061: Use edge tracking technology to perform topological analysis on the binary image of interest and find closed contours;

[0092] S1062: Analyze the contour categories of closed contours and the hierarchical relationships between contours;

[0093] Contour categories include: outer contour, hole contour, and the hierarchical relationships between contours include: containment relationship or parent-child relationship;

[0094] S1063: Obtain all outer contours.

[0095] In a preferred embodiment, S107 further includes: filtering the closed contour lines by the V-axis effective length of the closed contour lines, wherein the longer the V-axis effective length is, the stronger the correlation with the track is.

[0096] Preferably, S108 further includes:

[0097] S1081: extract the two endpoints of all contours;

[0098] S1082: Extract the effective length of the V axis of all contours;

[0099] S1083: Using the effective length of the V axis of the contour as a weight, respectively obtain the centroids of the two end points of all contours as the two end points of the central axis to obtain the central axis.

[0100] In a preferred embodiment, S111 includes:

[0101] S1111: extracting the contour of the track contour segment endpoints;

[0102] S1112: converting the contour of the endpoint to a bird's-eye view according to the binarized region of interest;

[0103] S1113: Observe the intersection of the track contour endpoint and the binary region of interest. When the track contour endpoint cannot intersect with the boundary of the binary region of interest, it is determined that the track is discontinuous and blocked. The obstacle information is the position where the contour endpoint does not intersect with the binary region of interest.

[0104] In another embodiment, the present invention further provides a track foreign body intrusion detection system based on computer vision, which includes: an input module, a grayscale module, a gradient module, a binarization module, an adaptive ROI module, a contour extraction module, a contour filtering module, a central axis extraction module, a contour clustering module, a track contour feedback module, a track occlusion detection module and an output module; wherein,

[0105] The input module is used to read the input image;

[0106] The grayscale module is used to grayscale the input image to obtain a grayscale image;

[0107] The gradient module is used to perform binarization processing on the gradient map to obtain a binarized image;

[0108] The binarization module is used to perform binarization processing on the gradient map to obtain a binarized image;

[0109] The adaptive ROI module is used to perform masking on the binarized image, leaving valid information in the region of interest, and obtaining a binarized image of interest;

[0110] The contour extraction module is used to extract the contour features in the binary image of interest to obtain the contour;

[0111] The contour filtering module is used to filter the closed contours in the contours to obtain all the contours with the strongest correlation with the track;

[0112] The central axis extraction module is used to obtain the central axis of all contours obtained by the contour filtering module, which is used to distinguish the left and right track areas;

[0113] The contour line clustering module is used to distinguish the left and right track areas according to the central axis obtained by the central axis extraction module, cluster the contour lines in the left and right track areas respectively, and further screen them to obtain the track contour line;

[0114] The track contour feedback module is used to feed back the track contour obtained by the contour clustering module to the binarized region of interest for the next cycle;

[0115] The track occlusion detection module is used to determine that the track contour line is blocked if its endpoint cannot intersect with the boundary of the binary region of interest, and obtain obstacle information;

[0116] The output module is used to organize the result format and output it.

[0117] In a preferred embodiment, it also includes: a denoising module and / or an alarm module; wherein,

[0118] The denoising module is used to denoise the grayscale image obtained by the grayscale module;

[0119] The alarm module is used to send out an alarm signal when foreign matter is present in the result output by the output module.

[0120] In a preferred embodiment, the track occlusion detection module further includes: an endpoint contour extraction module, an original image bird's-eye view conversion module and an intersection detection module; wherein,

[0121] The endpoint contour extraction module is used to extract the contours of the endpoints of the track contour line segment;

[0122] The original image bird's-eye view conversion module is used to convert the contour of the endpoint to the bird's-eye view according to the binarized region of interest;

[0123] The intersection detection module is used to observe the intersection of the track contour endpoint and the binary region of interest. When the track contour endpoint cannot intersect with the boundary of the binary region of interest, the track is judged to be discontinuous and blocked. The obstacle information is the position where the contour endpoint does not intersect with the binary region of interest.

[0124] The preferred embodiments of the present invention are disclosed herein. These embodiments are selected and specifically described in this specification in order to better explain the principles and practical applications of the present invention, but are not intended to limit the present invention. Any modifications and changes made by those skilled in the art within the scope of the specification should fall within the scope of protection of the present invention.

Claims

1. A method for detecting foreign objects intrusion on tracks based on computer vision. It is characterized in that include: S101: Read input image; S102: grayscale the input image to obtain a grayscale image; S103: extracting the gradient features of the grayscale image to obtain a gradient image; S104: performing binarization processing on the gradient image to obtain a binarized image; S105: masking the binarized image using predefined ROI information, leaving valid information in the binarized region of interest, and obtaining a binarized image of interest; wherein the predefined ROI information is updated and modified according to the output of the previous frame; S106: extracting contour features in the binary image of interest to obtain contours; S107: filtering closed contours in the contours to obtain all contours with the strongest correlation with the track; S108: Obtaining the central axis of all the contours obtained in S107, for distinguishing the left and right track areas; S109: Distinguish the left and right track areas according to the central axis obtained in S108, cluster the contour lines in the left and right track areas respectively, and further screen them to obtain the track contour line; S110: Feeding back the track contour obtained in S109 to the binarized region of interest for the next cycle; S111: If the endpoint of the track contour line cannot intersect with the boundary of the binary region of interest, it is determined to be blocked, and obstacle information is obtained; S112: Arrange the result format and output the result; The S106 further includes: S1061: Using edge tracking technology, topological analysis is performed on the binary image of interest to find a closed contour; S1062: Analyze the contour categories of the closed contours and the hierarchical relationships between the contours; The contour categories include: outer contour, hole contour, and the hierarchical relationship between the contours includes: inclusion relationship or parent-child relationship; S1063: Obtain all outer contours; The S107 further includes: filtering the closed contour line by the V-axis effective length of the closed contour line, wherein the longer the V-axis effective length is, the stronger the correlation with the track is; The S108 further includes: S1081: extract the two endpoints of all contours; S1082: Extract the effective length of the V axis of all contours; S1083: Using the effective length of the V axis of the contour as a weight, respectively obtain the centroids of the two end points of all contours as the two end points of the central axis to obtain the central axis.

2. According to the computer vision-based track foreign body intrusion detection method of claim 1, It is characterized in that The steps between S102 and S103 also include: S201: performing denoising processing on the grayscale image.

3. According to the computer vision-based track foreign body intrusion detection method of claim 1, It is characterized in that The S112 further includes: S301: If there is foreign matter in the output result, an alarm signal is issued.

4. The method for detecting foreign body intrusion on a track based on computer vision according to claim 1, It is characterized in that The S111 includes: S1111: extracting the contour of the track contour segment endpoints; S1112: converting the contour of the endpoint to a bird's-eye view according to the binarized region of interest; S1113: Observe the intersection of the track contour endpoint and the binary region of interest. When the track contour endpoint cannot intersect with the boundary of the binary region of interest, it is determined that the track is discontinuous and blocked, and the obstacle information is the position where the contour endpoint does not intersect with the binary region of interest.

5. A track foreign body intrusion detection device based on computer vision, It is characterized in that include: Input module, grayscale module, gradient module, binarization module, adaptive ROI module, contour extraction module, contour filtering module, central axis extraction module, contour clustering module, track contour feedback module, track occlusion detection module and output module; wherein, The input module is used to read the input image; The grayscale module is used to perform grayscale processing on the input image to obtain a grayscale image; The gradient module is used to extract the gradient features of the grayscale image to obtain a gradient image; The binarization module is used to perform binarization processing on the gradient map to obtain a binarized image; The adaptive ROI module is used to mask the binarized image using predefined ROI information, leaving valid information in the binarized region of interest to obtain a binarized image of interest; wherein the predefined ROI information is updated and corrected according to the output of the previous frame; The contour line extraction module is used to extract contour line features in the binary image of interest to obtain contour lines; The contour filtering module is used to filter the closed contours in the contours to obtain all contours with the strongest correlation with the track; The central axis extraction module is used to obtain the central axis of all contours obtained by the contour filtering module, so as to distinguish the left and right track areas; The contour line clustering module is used to distinguish the left and right track areas according to the central axis obtained by the central axis extraction module, cluster the contour lines in the left and right track areas respectively, and further screen them to obtain the track contour line; The track contour line feedback module is used to feed back the track contour line obtained by the contour line clustering module to the binarized region of interest for the next cycle; The track occlusion detection module is used to determine that the track contour line is blocked if the endpoint cannot intersect with the boundary of the binary region of interest, and obtain obstacle information; The output module is used to format and output the results; The contour extraction module further comprises: Using edge tracking technology, topological analysis is performed on the binary image of interest to find closed contours; Analyze the contour categories of the closed contour and the hierarchical relationship between the contours; the contour categories include: outer contour, hole contour, and the hierarchical relationship between the contours includes: inclusion relationship or parent-child relationship; Get all the outer contours; The contour filtering module further comprises: filtering the closed contours by the V-axis effective length of the closed contours, the longer the V-axis effective length is, the stronger the correlation with the track is; The central axis extraction module further comprises: Extract the two endpoints of all contours; Extract the effective length of V axis of all contours; The effective length of the V axis of the contour is used as the weight, and the centroids of the two end points of all contours are respectively obtained as the two end points of the central axis to obtain the central axis.

6. The computer vision-based track foreign body intrusion detection device according to claim 5, It is characterized in that Also includes: De-noising module and / or alarm module; wherein, The denoising module is used to perform denoising processing on the grayscale image obtained by the grayscale module; The alarm module is used to send out an alarm signal when foreign matter exists in the result output by the output module.

7. The computer vision-based track foreign body intrusion detection device according to claim 5, It is characterized in that The track occlusion detection module further includes: an endpoint contour extraction module, an original image bird's-eye view conversion module and an intersection detection module; wherein, The endpoint contour extraction module is used to extract the contours of the endpoints of the track contour line segment; The original image bird's-eye view conversion module is used to convert the outline of the endpoint to a bird's-eye view perspective according to the binarized region of interest; The intersection detection module is used to observe the intersection of the track contour endpoint and the binary region of interest. When the track contour endpoint cannot intersect with the boundary of the binary region of interest, it is determined that the track is discontinuous and blocked, and the obstacle information is the position where the contour endpoint does not intersect with the binary region of interest.