Method and system for detecting longitudinal displacement of continuously welded rail based on vehicle-mounted inspection

By setting up a high-definition linear array laser camera at the bottom of the vehicle carrier, dynamically collecting image data of the piles and rulers for seamless line observation, and using image processing algorithms to calculate the longitudinal displacement of the rail, solving the problems of low detection efficiency, large error and high cost in the existing technology, and achieving efficient and accurate rail displacement detection.

CN119904824APending Publication Date: 2025-04-29CARS ENG CONSULTING CORP LTD (BEIJING) +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311399844.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The existing seamless line rail longitudinal displacement detection technology has problems such as low manual detection efficiency, large error and high equipment investment cost, which is difficult to meet the needs of high-speed dynamic measurement.

Method used

Using a method based on vehicle patrol, the image data of seamless line observation piles and rulers are dynamically collected by a high-definition linear array laser camera set at the bottom of the vehicle carrier, and the image processing is used for the Otsu algorithm, edge detection and template matching algorithm to calculate the longitudinal displacement of the rail.

Benefits of technology

It realizes fast and efficient detection of longitudinal displacement of seamless line rails, reduces labor costs and equipment installation costs, and improves detection accuracy and operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904824A_ABST
    Figure CN119904824A_ABST
Patent Text Reader

Abstract

The invention provides a method and a system for detecting longitudinal displacement of a seamless track steel rail based on vehicle-mounted inspection. The method comprises the following steps of: dynamically acquiring image data including a steel rail displacement observation pile and a scale by adopting a camera device arranged at the bottom of a vehicle carrier; after the collected image data is divided to determine a foreground area and a background area, contour features of a displacement observation pile and a scale in the image are determined based on an edge detection algorithm; after normalization processing is carried out on the displacement observation pile and the scale in the image and the template object, the center positions of the displacement observation pile and the scale are matched and determined; after the detection linear distance between the displacement observation pile center and the scale center is determined, the longitudinal displacement of the corresponding seamless steel rail is calculated according to the installation distance between the displacement observation pile center and the scale center. According to the scheme, the problems of long detection time, high error probability and high cost in the prior art can be solved, the computer vision technology is matched with the image recognition algorithm, accurate and efficient detection of longitudinal displacement of the steel rail in the running state is achieved, and meanwhile cost is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of seamless line rail inspection and maintenance, and in particular to a seamless line rail longitudinal displacement detection method and system based on vehicle-mounted inspection. Background Art

[0002] Since the seamless line design eliminates rail joints, it helps to improve the track structure and reduce vibration, and is being used more and more widely in newly built lines. But on the other hand, due to the disappearance of the rail joints, the rails cannot expand and contract freely when the temperature changes, which will cause great temperature stress inside the rails. When the fastener pressure is not enough to offset the temperature stress, the rails will undergo longitudinal displacement, causing rail expansion and track runaway when the temperature rises, and rail breakage is likely to occur when the temperature is very low, seriously affecting driving safety.

[0003] In order to ensure operational safety and understand rail stress, it is necessary to conduct periodic inspections or real-time monitoring of seamless line rail displacement observation piles. However, the main monitoring technologies currently used include two categories. One is to use manual visual observation one by one, which is a contact measurement method. For example, through manual on-site inspection, a square ruler is used to compare and measure the relative position changes between the displacement observation pile and the rail bottom scale. However, this method requires a huge amount of human resources and time resources when used. In addition to consuming a large amount of manpower, manual inspection is difficult to accurately control the selection of the geometric center of the observation pile, resulting in large measurement errors and low detection efficiency. It also requires high professionalism of the inspection personnel, has great limitations, has many influencing factors, and has a high error rate.

[0004] The other type is to install monitoring devices at the rail joint position, which is a non-contact measurement method. For example, Liu Liping et al. proposed a railway rail creep displacement detection method based on monocular vision measurement technology. The image containing circular markers is collected by an image acquisition device installed on the inherent facilities next to the rail. The position of the marker in the reconstructed image is preliminarily located by the template matching method. The center of mass coordinates and radius of the marker are accurately calculated by combining edge detection and circle fitting methods. The physical displacement of the rail creep is detected based on the image imaging principle. In addition, rail temperature monitoring sensors can be set at the joint position to realize real-time monitoring of rail temperature changes and calculate the longitudinal displacement changes of the rail. When this method is used, a large number of monitoring device components or sensor equipment need to be set up along the line. There are shortcomings such as large equipment investment and high installation cost. The later maintenance workload is complicated and it is difficult to meet the objective needs of high-speed dynamic measurement.

[0005] The information disclosed in the background technology section of the present invention is only intended to deepen the understanding of the general background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art known to those skilled in the art. Summary of the invention

[0006] To solve the above problems, the present invention provides a method and system for detecting longitudinal displacement of seamless line rails based on vehicle-mounted inspection, wherein high-resolution image information of seamless line observation piles is obtained by a vehicle-mounted camera, the foreground and background are divided by the Otsu algorithm, the shape feature extraction of the observation piles and the ruler is realized by edge detection, the target rectangle, the target circle and the shape in the picture are matched by the template matching algorithm, and the rail displacement is calculated by center extraction; preferably, in one embodiment, the method comprises:

[0007] Dynamic collection step: when the vehicle carrier moves relative to the measured rail, a camera device arranged at the bottom of the vehicle carrier is used to collect image data including the rail displacement observation pile and the scale;

[0008] Image segmentation step: Use the Otsu algorithm to perform binary processing on the collected image data to determine the foreground area and background area;

[0009] Feature extraction step: Determine the position and contour features of the displacement observation pile and ruler in the image based on the Canny edge detection algorithm;

[0010] The calculation center determination step: normalize the contours of the displacement observation pile and the ruler in the image and the template object respectively, and then match and determine the center positions of the displacement observation pile and the ruler;

[0011] The steps for calculating the longitudinal displacement are as follows: determine the straight-line distance between the center of the displacement observation pile and the center of the scale, and calculate the longitudinal displacement of the corresponding seamless rail in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

[0012] In an optional embodiment, the camera device uses a high-definition linear array laser camera that is installed on the vehicle relative to the rails to dynamically collect a grayscale image including the rail displacement observation piles and scales.

[0013] Preferably, in one embodiment, in the image division step, according to the inter-class variance calculation principle of image pixel classification, a target grayscale level that maximizes the inter-class variance is obtained, and all pixels of the image are divided into two categories according to the target grayscale level to achieve division.

[0014] Furthermore, in one embodiment, the inter-class variance of image pixel classification is calculated according to the following formula:

[0015] σ 2 =p1(l1-l G ) 2 +p2(l2-l G ) 2

[0016] Among them, p1l1+p2l2=l G ,but:

[0017] σ 2 =p1p2(l1-l2) 2

[0018] In the formula, σ 2 represents the inter-class variance of image pixel classification, l1 and l2 represent the means of the two types of pixels respectively, and l G represents the global pixel mean of the image, p1 and p2 represent the probability of pixels being classified into the first and second categories respectively.

[0019] Preferably, in one embodiment, in the feature extraction step, the process of determining the position and contour features of the displacement observation pile and the scale in the image includes:

[0020] Smooth the image using a Gaussian filter;

[0021] Use finite differences of first-order partial derivatives to compute the magnitude and direction of the gradient;

[0022] Perform non-maximum suppression on the gradient amplitude;

[0023] Then, a dual threshold algorithm is used to detect and connect the edges to obtain the contour features and positions of the rectangular scale and circular observation pile.

[0024] Optionally, in one embodiment, in the longitudinal displacement calculation step, the longitudinal displacement a of the corresponding seamless rail is calculated according to the following formula:

[0025]

[0026] Where b is the installation distance between the geometric center of the displacement observation pile and the geometric center of the scale, and c is the detection straight-line distance between the center of the displacement observation pile and the center of the scale.

[0027] Based on other aspects of the method described in one or more embodiments above, the present invention further provides a storage medium storing program codes that can implement the method described in one or more embodiments above.

[0028] Based on the application of the method described in one or more embodiments above, the present invention further provides a seamless line rail longitudinal displacement detection system based on vehicle-mounted inspection, which executes the method described in one or more embodiments above. Preferably, in one embodiment, the system includes:

[0029] A dynamic acquisition module, comprising a camera device and a communication unit disposed at the bottom of the vehicle carrier, which is configured to dynamically acquire image data including rail displacement observation piles and scales and transmit the image data to the data processing module during the movement of the vehicle carrier relative to the measured rail;

[0030] The data processing module is fixedly arranged at the bottom or inside of the vehicle carrier, and is communicated with the dynamic acquisition module and the detection control center. It is used to process the acquired image data and determine the centroid of the displacement observation pile and the ruler in the image, and then calculate the longitudinal displacement of the corresponding seamless rail according to the distribution of the centroid combined with the installation distance between the displacement observation pile and the ruler, and store the original acquired images and detection results.

[0031] Furthermore, in one embodiment, the data processing module includes:

[0032] An image division unit is configured to perform binarization processing on the collected image data using the Otsu algorithm to divide and determine the foreground area and the background area;

[0033] A feature extraction unit configured to determine the position and contour features of the displacement observation pile and the scale in the image based on a Canny edge detection algorithm;

[0034] A calculation center determination unit is configured to normalize the contours of the displacement observation pile and the scale in the image and the template object, and then match and determine the center positions of the displacement observation pile and the scale;

[0035] The longitudinal displacement calculation unit is configured to determine the detection straight-line distance between the center of the displacement observation pile and the center of the scale, and calculate the longitudinal displacement of the corresponding seamless rail in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

[0036] In an optional embodiment, the camera device of the dynamic acquisition module uses a high-definition linear array laser camera installed on the vehicle relative to the rails to dynamically acquire a grayscale image including the rail displacement observation piles and the scale.

[0037] Compared with the closest prior art, the present invention also has the following beneficial effects:

[0038] The present invention provides a method and system for detecting the longitudinal displacement of seamless line rails based on vehicle-mounted inspection. The method adopts a camera device arranged at the bottom of a vehicle carrier to dynamically collect image data including rail displacement observation piles and scales. The method can effectively obtain images of the rail observation piles and scales based on the camera device in motion, which are used to analyze and calculate the longitudinal creeping displacement of the rails. There is no need to set up a large number of laser cameras or temperature sensors along the line, nor is there any need to calculate and determine the displacement based on temperature data, which saves equipment installation costs and reduces the probability of errors caused by intermediate calculations.

[0039] Furthermore, after the Otsu algorithm is used to divide the collected image data to determine the foreground area and the background area, the contour features of the displacement observation piles and rulers in the image are determined based on the edge detection algorithm; then the displacement observation piles and rulers in the image are normalized with the template object, and the center positions of the two are determined by matching; based on rigorous image processing methods, the precise displacement observation points and the center positions of the rulers are identified, which facilitates the acquisition of the distance between the center positions as the detection straight-line distance involved in the displacement calculation, thereby ensuring the reliability and authenticity of the calculation results from the aspect of calculation data.

[0040] After determining the straight-line detection distance between the center of the displacement observation pile and the center of the scale, the longitudinal displacement of the corresponding seamless rail is calculated in combination with the installation distance between the center of the displacement observation pile and the center of the scale; through computer vision technology, in conjunction with the image recognition algorithm, the rapid detection of the longitudinal displacement of the rail under operation is achieved, thereby improving the efficiency of the longitudinal displacement detection of the seamless line rail, reducing labor costs, and improving the line operation and maintenance efficiency. The professional requirements for operators are not high, and the system is suitable for lines of different mileages and a variety of transport vehicles, with good practicality.

[0041] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0043] Figure 1 It is a flow chart of a method for detecting longitudinal displacement of seamless railway rails based on vehicle-mounted inspection provided by one embodiment of the present invention;

[0044] Figure 2 It is a detailed schematic diagram of the operating principle of the seamless line rail longitudinal displacement detection method based on vehicle-mounted inspection provided by an embodiment of the present invention;

[0045] Figure 3 It is a schematic diagram of the dynamic collection steps of a method for detecting longitudinal displacement of seamless railway rails based on vehicle-mounted inspection provided by an embodiment of the present invention;

[0046] Figure 4 It is a schematic diagram of the camera device setting method of the seamless line rail longitudinal displacement detection method based on vehicle-mounted inspection provided by an embodiment of the present invention;

[0047] Figure 5 (a) and Figure 5(b) are respectively example images captured by the left and right camera devices of the method for detecting longitudinal displacement of seamless railway rails based on vehicle-mounted inspection provided by an embodiment of the present invention;

[0048] Figure 6 It is a schematic diagram of the binarization result of the image captured by the right camera setting of the seamless line rail longitudinal displacement detection method based on vehicle-mounted inspection provided by one embodiment of the present invention;

[0049] Figure 7 It is a schematic diagram of contour feature recognition of an image captured by a right-side camera setting in a method for detecting longitudinal displacement of a seamless railway rail based on vehicle-mounted inspection provided in an embodiment of the present invention;

[0050] Figure 8 It is a schematic diagram of the principle of calculating the longitudinal displacement based on the displacement observation pile and the ruler position of the seamless line rail longitudinal displacement detection method based on vehicle-mounted inspection provided by an embodiment of the present invention;

[0051] Fig. 9 It is a structural schematic diagram of a seamless line rail longitudinal displacement detection system based on vehicle-mounted inspection provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following will describe the implementation methods of the present invention in detail in conjunction with the accompanying drawings and embodiments, so that the implementers of the present invention can fully understand how the present invention applies technical means to solve technical problems and achieve the implementation process of technical effects and implement the present invention specifically according to the above implementation process. It should be noted that as long as there is no conflict, the various embodiments and various features of the embodiments in the present invention can be combined with each other, and the technical solutions formed are all within the protection scope of the present invention.

[0053] Although the flowcharts describe the operations as sequential processes, many of the operations may be performed in parallel, concurrently, or simultaneously. The order of the operations may be rearranged. A process may be terminated when its operations are completed, but may also have additional steps not included in the accompanying drawings. A process may correspond to a method, function, procedure, subroutine, subprogram, etc.

[0054] Computer devices include user devices and network devices. Among them, user devices or clients include but are not limited to computers, smart phones, PDAs (Personal Digital Assistants), etc.; network devices include but are not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers. Computer devices can be run alone to implement the present invention, or they can be connected to the network and implement the present invention through interactive operations with other computer devices in the network. The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, VPN network, etc.

[0055] The terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments. Unless the context clearly indicates otherwise, the singular forms "one", "one" and "item" used herein are also intended to include plural numbers. It should also be understood that the terms "include" and / or "comprise" used herein specify the existence of stated features, integers, steps, operations, units and / or components, without excluding the existence or addition of one or more other features, integers, steps, operations, units, components and / or combinations thereof.

[0056] In newly built urban rail lines, the seamless line design eliminates rail joints, helps improve track structure and reduce vibration, and is used more and more widely in newly built lines. But on the other hand, due to the disappearance of rail joints, the rails cannot expand and contract freely when the temperature changes, which will cause great temperature stress inside the rails. When the fastener pressure is not enough to offset the temperature stress, the rails will undergo longitudinal displacement, causing rail expansion and track runaway when the temperature rises, and rail breakage is likely to occur when the temperature is very low, seriously affecting driving safety.

[0057] In order to ensure operational safety and understand rail stress, it is necessary to conduct periodic inspections or real-time monitoring of seamless line rail displacement observation piles. However, the main monitoring technologies currently used include two categories. One is to use manual visual observation one by one, which is a contact measurement method. For example, through manual on-site inspection, a square ruler is used to compare and measure the relative position changes between the displacement observation pile and the rail bottom scale. However, this method requires a huge amount of human resources and time resources when used. In addition to consuming a large amount of manpower, manual inspection is difficult to accurately control the selection of the geometric center of the observation pile, resulting in large measurement errors and low detection efficiency. It also requires high professionalism of the inspection personnel, has great limitations, has many influencing factors, and has a high error rate.

[0058] The other type is to install a monitoring device at the rail joint position, which is a non-contact measurement method. For example, Chong Aixin et al. proposed a method for measuring the longitudinal displacement of seamless rails based on binocular vision technology. By printing the coded mark to be measured on the waist of the rail for distance measurement and spraying the reference target on the fixed reference facility at the side shoulder of the line, a binocular camera is set on the ground, and the image three-dimensional ranging algorithm is used to achieve accurate measurement of the longitudinal displacement of the rail. Liu Liping et al. proposed a railway rail creep displacement detection method based on monocular vision measurement technology. The image containing circular markers is collected by an image acquisition device installed on the inherent facilities next to the rail. The position of the marker in the reconstructed image is preliminarily located by the template matching method. The center of mass coordinates and radius of the marker are accurately calculated by combining edge detection and circle fitting methods. The physical displacement of the rail creep is detected based on the image imaging principle. In addition, rail temperature monitoring sensors can be installed at the joints to achieve real-time monitoring of rail temperature changes and calculate the longitudinal displacement changes of the rails. This method requires a large number of monitoring device components or sensor equipment to be installed along the line. This method has the disadvantages of large equipment investment and high installation cost. The subsequent maintenance workload is complicated and it is difficult to meet the objective needs of high-speed dynamic measurement.

[0059] To solve the above problems, the present invention provides a method and system for detecting the longitudinal displacement of seamless line rails based on vehicle-mounted inspection. The method uses computer vision technology in combination with an image recognition algorithm to realize rapid detection of the longitudinal displacement of seamless line rails under normal operating conditions, obtains high-resolution image information of seamless line observation piles through a vehicle-mounted camera, applies the Otsu algorithm to divide the foreground and background, applies edge detection to realize shape feature extraction of observation piles and rulers, applies a template matching algorithm to realize matching of target rectangles, target circles with shapes in pictures, and calculates the rail displacement through center extraction. The method uses machine vision technology to realize efficient periodic detection of the longitudinal displacement of seamless line rails on board, with a detection error of less than 1 mm and significantly improved accuracy.

[0060] Next, the detailed process of the method of the embodiment of the present invention is described in detail based on the accompanying drawings. The steps shown in the flowchart of the accompanying drawings can be executed in a computer system including a set of computer executable instructions. Although the logical order of each step is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0061] Embodiment 1:

[0062] Figure 1 The schematic diagram of the flow chart of the method for detecting the longitudinal displacement of a seamless rail track based on vehicle-mounted inspection provided by the first embodiment of the present invention is shown. Figure 1 It can be seen that the method includes the following steps.

[0063] Dynamic collection step: when the vehicle carrier moves relative to the measured rail, a camera device arranged at the bottom of the vehicle carrier is used to collect image data including the rail displacement observation pile and the scale;

[0064] Image segmentation step: Use the Otsu algorithm to perform binary processing on the collected image data to determine the foreground area and background area;

[0065] Feature extraction step: Determine the position and contour features of the displacement observation pile and ruler in the image based on the Canny edge detection algorithm;

[0066] Operation center determination step: normalizing the contours of the displacement observation pile and the ruler in the image with the template object, and then matching and determining the center positions of the displacement observation pile and the ruler;

[0067] The steps for calculating the longitudinal displacement are as follows: determine the straight-line distance between the center of the displacement observation pile and the center of the scale, and calculate the longitudinal displacement of the corresponding seamless rail in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

[0068] Although some studies have adopted non-contact technology to realize the longitudinal creep displacement detection of seamless line rails in the past, they realize real-time monitoring of rail temperature changes and calculate the change in longitudinal displacement of the rails by setting rail temperature monitoring sensors at the joint positions, or rely on labels arranged on the rails and the roadbed or the ground. In addition, it is necessary to arrange a batch of image acquisition equipment beside the rails of the entire line or on the inherent facilities. The investment cost, application cost and subsequent maintenance cost are all high, which cannot meet the practical requirements in line operation and maintenance operations; and in the existing methods of measuring rail displacement by machine vision technology, binocular cameras are mostly fixedly installed relative to the ground, which is difficult to meet the objective needs of high-speed dynamic measurement.

[0069] The present invention uses a high-definition linear array camera located under the vehicle body and intelligent means such as image recognition to inspect the displacement of the seamless line rail; obtains high-resolution image information of the seamless line observation pile through the on-board camera, applies the Otsu algorithm to divide the foreground and background, applies edge detection to realize shape feature extraction of the observation pile and the ruler, applies the template matching algorithm to realize the matching of the target rectangle, the target circle and the shape in the picture, and calculates the rail displacement through center extraction, thereby realizing rail displacement detection with an accuracy better than 1 mm, and can overcome the problems or shortcomings in the above-mentioned prior art and realize high-speed dynamic measurement of the seamless line rail.

[0070] Figure 2 The following is a detailed flow chart showing the operating principle of the method for detecting longitudinal displacement of seamless rails based on vehicle-mounted inspection provided by an embodiment of the present invention. Figure 2As shown, preferably, in one embodiment, in the dynamic acquisition step, the camera device uses a high-definition linear array laser camera arranged on the vehicle relative to the rail, and dynamically acquires a grayscale image including the rail displacement observation pile and the scale, such as Figure 3 shown.

[0071] In actual application, high-definition linear array camera equipment is used to collect displacement observation piles and scale grayscale images during the operation of the vehicle carrier. Usually, camera devices are set above the rails on both sides, such as Figure 4 As shown in the figure, the grayscale images including rail displacement observation piles and scales collected by the cameras on the left and right sides are shown in the figure. Figure 5 (a) and Figure 5 (b) is shown. The vehicle carrier used to set the camera device can be an operation and maintenance inspection vehicle or a normal operation vehicle.

[0072] Furthermore, a data processing module fixedly arranged at the bottom or inside of the vehicle carrier and communicatively connected to the dynamic acquisition module and the detection control center is used to process the acquired image data and determine the centroid of the displacement observation pile and the scale in the image. Then, the longitudinal displacement of the corresponding seamless rail is calculated according to the distribution of the centroid and the installation distance between the displacement observation pile and the scale, and the original acquired image and the detection results are stored.

[0073] Specifically, the image segmentation step is first performed, and the collected image data is binarized using the Otsu algorithm to determine the foreground area and the background area.

[0074] In an optional embodiment, in the image division step, according to the inter-class variance calculation principle of image pixel classification, the target grayscale level that maximizes the inter-class variance is obtained, and all pixels of the image are divided into two categories according to the target grayscale level to achieve division.

[0075] In practical applications, the process of using the Otsu algorithm to determine the image binary segmentation threshold includes the following operations:

[0076] In the grayscale range of 0-255, suppose there is a grayscale n, and all pixels in the image are divided into two categories I1 (grayscale < n) and I2 (grayscale ≥ n). The mean values ​​of these two categories of pixels are l1 and l2, respectively, and the global mean value of the image is l. G , the probability of a pixel being classified as I1 and I2 is p1 and p2, so:

[0077] p1l1+p2l2=l G (1)

[0078] p1+p2=1 (2)

[0079] According to the concept of variance, the expression of between-class variance is:

[0080] σ2 =p1(l1-l G ) 2 +p2(l2-l G ) 2 (3)

[0081] Substituting (1) into (3) and simplifying it, we can get

[0082] σ 2 =p1p2(l1-l2) 2 (4)

[0083] Traverse the grayscale levels from 0 to 255, find the grayscale level n that maximizes equation (4), and use the grayscale level that maximizes the inter-class variance to divide the image.

[0084] In the formula, σ 2 represents the inter-class variance of image pixel classification, l1 and l2 represent the means of the two types of pixels respectively, and l G represents the global pixel mean of the image, p1 and p2 represent the probability of pixels being classified into the first and second categories respectively; the binary division result of the image captured by the camera device on the right is as follows Figure 6 shown.

[0085] Next, the feature extraction step is performed to determine the position and contour features of the displacement observation pile and ruler in the image based on the Canny edge detection algorithm.

[0086] Preferably, in one embodiment, in the feature extraction step, the process of determining the position and contour features of the displacement observation pile and the scale in the image includes:

[0087] Step a1: Use a Gaussian filter to smooth the image to reduce noise interference in the image;

[0088] Step a2: Use the finite difference of the first-order partial derivative to calculate the magnitude and direction of the gradient; wherein the edge is calculated in both the horizontal and vertical directions, and then the square root of the sum of the squares is calculated;

[0089] Step a3: Perform non-maximum suppression on the gradient amplitude and retain the pixel with the largest local gradient to improve the edge positioning accuracy;

[0090] Step a4: Then use the dual threshold algorithm to detect and connect edges; perform calculations based on the set high threshold and low threshold, where the high threshold is twice the low threshold, and traverse all pixel points: when the pixel value of a pixel point is less than the low threshold, set its pixel value to 0; when its pixel value is greater than the high threshold, the pixel point is a strong edge point, and its pixel value is set to 255; when its pixel value is between the low threshold and the high threshold, the pixel point is a weak edge point, and if there is a strong edge point in its 8-neighborhood domain, set the pixel value of this point to 255, and if there is no strong edge point in its 8-neighborhood domain, set the pixel value of this point to 0. Connect the strong edge points to obtain the contour features and positions of the rectangular ruler and the circular observation pile; the edge feature recognition results of the image captured by the camera device on the right are shown in Figure 1. Figure 7 shown.

[0091] Furthermore, the operation center determination step is executed, and after the outlines of the displacement observation pile and the ruler in the image are normalized with the template object, the center positions of the displacement observation pile and the ruler are determined by matching.

[0092] In actual application, the objects to be matched and the template objects are normalized, wherein the objects to be matched are displacement detection piles and scale objects in the image, and the template objects are pre-set displacement detection piles and scale template graphics that are consistent with the model and structural parameters of the objects to be matched;

[0093] Then, the center positions of the rectangular scale and the circular observation pile are determined by matching the object to be matched with the template object.

[0094] Next, the longitudinal displacement calculation step is used to determine the detection straight-line distance between the center of the displacement observation pile and the center of the scale, and the longitudinal displacement of the corresponding seamless rail is calculated in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

[0095] The longitudinal displacement of the rail can be calculated based on the installation distance between the center of the displacement observation pile and the center of the scale, and the detection distance between the center of the displacement observation pile and the center of the scale.

[0096] like Figure 8 As shown, A is the center of the displacement observation pile, B is the center of the scale, b is the installation distance between the center of the displacement observation pile and the center of the scale, c is the detection distance between the center of the displacement observation pile and the center of the scale, and a is the longitudinal displacement of the rail.

[0097] In the longitudinal displacement calculation step, the longitudinal displacement a of the corresponding seamless rail is calculated according to the following formula:

[0098]

[0099] Where b is the installation distance between the geometric center of the displacement observation pile and the geometric center of the scale, and c is the detection straight-line distance between the center of the displacement observation pile and the center of the scale.

[0100] In practical applications, the temperature stress of the current rail can also be deduced based on the detected longitudinal displacement of the rail and the mechanism of the longitudinal displacement of the rail.

[0101] Compared with the prior art, the present invention can realize the rapid detection of the longitudinal displacement of the seamless line rail at the conventional detection running speed through computer vision technology and image recognition algorithm, obtain the high-resolution image information of the seamless line observation pile through the laser camera, apply the Otsu algorithm to divide the foreground and background, apply edge detection to realize the shape feature extraction of the observation pile and the ruler, apply the template matching algorithm to realize the matching of the target rectangle, the target circle and the shape in the picture, and calculate the rail displacement through center extraction, control the detection error within 1mm, improve the efficiency of the longitudinal displacement detection of the seamless line rail, reduce the labor cost, and effectively improve the efficiency of subway operation and maintenance.

[0102] For the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0103] It should be pointed out that in other embodiments of the present invention, the method can also obtain a new seamless line rail longitudinal displacement detection method based on vehicle-mounted inspection by combining one or several of the above-mentioned embodiments to achieve accurate monitoring and maintenance of seamless line rails.

[0104] It should be noted that, based on the method in any one or more of the above-mentioned embodiments of the present invention, the present invention also provides a storage medium, on which is stored a program code that can implement the method as described in any one or more of the above-mentioned embodiments, and when the code is executed by the operating system, it can implement the method for detecting the longitudinal displacement of seamless line rails based on vehicle-mounted inspection as described above.

[0105] Embodiment 2:

[0106] The method is described in detail in the embodiments disclosed in the above invention. The method of the present invention can be implemented by various forms of devices or systems. Therefore, based on other aspects of the method described in any one or more embodiments, the present invention also provides a seamless line rail longitudinal displacement detection system based on vehicle-mounted inspection, which is used to execute the seamless line rail longitudinal displacement detection method based on vehicle-mounted inspection described in any one or more embodiments. Specific embodiments are given below for detailed description.

[0107] Specifically, Fig. 9FIG. 4 is a schematic diagram showing a structure of a seamless line rail longitudinal displacement detection system based on vehicle-mounted inspection provided in an embodiment of the present invention. Fig. 9 As shown, the system includes:

[0108] A dynamic acquisition module, comprising a camera device and a communication unit disposed at the bottom of the vehicle carrier, which is configured to dynamically acquire image data including rail displacement observation piles and scales and transmit the image data to the data processing module during the movement of the vehicle carrier relative to the measured rail;

[0109] The data processing module is arranged at the bottom or inside of the vehicle carrier, and is communicated with the dynamic acquisition module and the detection control center. It is used to process the collected image data and determine the centroid of the displacement observation pile and the ruler in the image, and then calculate the longitudinal displacement of the corresponding seamless rail according to the distribution of the centroid combined with the installation distance between the displacement observation pile and the ruler, and store the original collected pictures and detection results.

[0110] Furthermore, in an optional embodiment, the data processing module includes:

[0111] The image division unit is configured to use the Otsu algorithm to perform binarization processing on the collected image data to divide and determine the foreground area and the background area.

[0112] The feature extraction unit is configured to determine the position and contour features of the displacement observation pile and the ruler in the image based on the Canny edge detection algorithm.

[0113] A calculation center determination unit is configured to normalize the contours of the displacement observation pile and the scale in the image and the template object, and then match and determine the center positions of the displacement observation pile and the scale;

[0114] The longitudinal displacement calculation unit is configured to determine the detection straight-line distance between the center of the displacement observation pile and the center of the scale, and calculate the longitudinal displacement of the corresponding seamless rail in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

[0115] Preferably, in one embodiment, the camera device of the dynamic acquisition module adopts a high-definition linear array laser camera installed on the vehicle relative to the rails, and dynamically acquires a grayscale image including the rail displacement observation piles and the scale.

[0116] Furthermore, in one embodiment, the image division unit is configured to obtain a target grayscale level that maximizes the inter-class variance based on an inter-class variance calculation principle for image pixel classification, and to divide all pixels of the image into two categories based on the target grayscale level to achieve division.

[0117] Specifically, in an optional embodiment, the image segmentation unit calculates the inter-class variance of image pixel classification according to the following formula:

[0118] σ2 =p1(l1-l G ) 2 +p2(l2-l G ) 2

[0119] Among them, p1l1+p2l2=l G ,but:

[0120] σ 2 =p1p2(l1-l2) 2

[0121] In the formula, σ 2 represents the inter-class variance of image pixel classification, l1 and l2 represent the means of the two types of pixels respectively, and l G represents the global pixel mean of the image, p1 and p2 represent the probability of pixels being classified into the first and second categories respectively.

[0122] Furthermore, in one embodiment, the feature extraction unit determines the position and contour features of the displacement observation pile and the scale in the image according to the following operations:

[0123] Smooth the image using a Gaussian filter;

[0124] Use finite differences of first-order partial derivatives to compute the magnitude and direction of the gradient;

[0125] Calculate the edge in both the horizontal and vertical directions, and then find the square root of the sum of the squares;

[0126] Perform non-maximum suppression on the gradient amplitude;

[0127] Then, a dual threshold algorithm is used to detect and connect the edges to obtain the contour features and positions of the rectangular scale and circular observation pile.

[0128] Preferably, in one embodiment, the longitudinal displacement calculation unit calculates the longitudinal displacement a of the corresponding seamless rail according to the following formula:

[0129]

[0130] Where b is the installation distance between the geometric center of the displacement observation pile and the geometric center of the scale, and c is the detection straight-line distance between the center of the displacement observation pile and the center of the scale.

[0131] The present invention uses a camera device arranged at the bottom of a vehicle carrier to dynamically collect image data including rail displacement observation piles and rulers; after dividing the collected image data to determine the foreground area and the background area, the contour features of the displacement observation piles and rulers in the image are determined based on an edge detection algorithm; then the displacement observation piles and rulers in the image are normalized with the template object, and the center positions of the two are matched to determine; after determining the detection straight-line distance between the center of the displacement observation pile and the center of the ruler, the longitudinal displacement of the corresponding seamless rail is calculated in combination with the installation distance between the center of the displacement observation pile and the center of the ruler. This solution can overcome the problems of long detection time, high error probability and high cost in the prior art. Computer vision technology cooperates with image recognition algorithms to achieve accurate and efficient detection of the longitudinal displacement of the rails under operation, while effectively reducing costs.

[0132] In the seamless line rail longitudinal displacement detection system based on vehicle-mounted inspection provided by the embodiment of the present invention, each module or unit structure can operate independently or in combination according to actual information collection requirements and data calculation requirements to achieve corresponding technical effects.

[0133] It should be understood that the embodiments disclosed in the present invention are not limited to the specific structures, processing steps or materials disclosed herein, but should be extended to equivalent substitutions of these features understood by ordinary technicians in the relevant field. It should also be understood that the terms used herein are only used for the purpose of describing specific embodiments and are not meant to be limiting.

[0134] The "one embodiment" mentioned in the specification means that a particular feature, structure or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. Therefore, the phrase "one embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment.

[0135] Although the embodiments disclosed in the present invention are as above, the above contents are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.

Claims

1. A method for detecting longitudinal displacement of seamless rails based on vehicle-mounted inspection, characterized in that: The method comprises: Dynamic collection step: when the vehicle carrier moves relative to the measured rail, a camera device arranged at the bottom of the vehicle carrier is used to collect image data including the rail displacement observation pile and the scale; Image segmentation step: Use the Otsu algorithm to perform binary processing on the collected image data to determine the foreground area and background area; Feature extraction step: Determine the position and contour features of the displacement observation pile and ruler in the image based on the Canny edge detection algorithm; The calculation center determination step: normalize the contours of the displacement observation pile and the ruler in the image and the template object respectively, and then match and determine the center positions of the displacement observation pile and the ruler; The steps for calculating the longitudinal displacement are as follows: determine the straight-line distance between the center of the displacement observation pile and the center of the scale, and calculate the longitudinal displacement of the corresponding seamless rail in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

2. The method according to claim 1, characterized in that In the dynamic acquisition step, the camera device uses a high-definition linear array laser camera that is installed on the vehicle relative to the rails to dynamically acquire a grayscale image including the rail displacement observation piles and the scale.

3. The method according to claim 1, characterized in that In the image division step, according to the inter-class variance calculation principle of image pixel classification, the target grayscale level that maximizes the inter-class variance is obtained, and all pixels of the image are divided into two categories according to the target grayscale level to achieve division.

4. The method according to claim 1, characterized in that The inter-class variance of image pixel classification is calculated according to the following formula: σ 2 =p1(l1-l G ) 2 +p2(l2-l G ) 2 Among them, p1l1+p2l2=l G ,but: σ 2 =p1p2(l1-l2) 2 In the formula, σ 2 represents the inter-class variance of image pixel classification, l1 and l2 represent the means of the two types of pixels respectively, and l G represents the global pixel mean of the image, p1 and p2 represent the probability of pixels being classified into the first and second categories respectively.

5. The method according to claim 1, characterized in that In the feature extraction step, the process of determining the position and contour features of the displacement observation pile and the scale in the image includes: Smooth the image using a Gaussian filter; Use finite differences of first-order partial derivatives to compute the magnitude and direction of the gradient; Perform non-maximum suppression on the gradient amplitude; Then, a dual threshold algorithm is used to detect and connect the edges to obtain the contour features and positions of the rectangular scale and circular observation pile.

6. The method according to claim 1, characterized in that In the longitudinal displacement calculation step, the longitudinal displacement a of the corresponding seamless rail is calculated according to the following formula: Where b is the installation distance between the geometric center of the displacement observation pile and the geometric center of the scale, and c is the detection straight-line distance between the center of the displacement observation pile and the center of the scale.

7. A storage medium, characterized in that: The storage medium stores program codes that can implement the method as claimed in any one of claims 1 to 6.

8. A seamless rail longitudinal displacement detection system based on vehicle-mounted inspection, characterized in that: The system executes the method according to any one of claims 1 to 7, and the system comprises: A dynamic acquisition module, comprising a camera device and a communication unit disposed at the bottom of the vehicle carrier, which is configured to dynamically acquire image data including rail displacement observation piles and scales and transmit the image data to the data processing module during the movement of the vehicle carrier relative to the measured rail; The data processing module is fixedly arranged at the bottom or inside of the vehicle carrier, and is communicated with the dynamic acquisition module and the detection control center. It is used to process the acquired image data and determine the centroid of the displacement observation pile and the ruler in the image, and then calculate the longitudinal displacement of the corresponding seamless rail according to the distribution of the centroid combined with the installation distance between the displacement observation pile and the ruler, and store the original acquired images and detection results.

9. The system according to claim 8, characterized in that The data processing module comprises: An image division unit is configured to perform binarization processing on the collected image data using the Otsu algorithm to divide and determine the foreground area and the background area; A feature extraction unit configured to determine the position and contour features of the displacement observation pile and the scale in the image based on a Canny edge detection algorithm; A calculation center determination unit is configured to normalize the contours of the displacement observation pile and the scale in the image and the template object, and then match and determine the center positions of the displacement observation pile and the scale; The longitudinal displacement calculation unit is configured to determine the detection straight-line distance between the center of the displacement observation pile and the center of the scale, and calculate the longitudinal displacement of the corresponding seamless rail in combination with the installation distance between the center of the displacement observation pile and the center of the scale.

10. The system according to claim 8, characterized in that The camera device of the dynamic acquisition module adopts a high-definition linear array laser camera arranged on the vehicle relative to the rails, and dynamically acquires a grayscale image including the rail displacement observation pile and the scale.