Machine vision-based seamless track steel rail longitudinal displacement real-time detection method
Real-time detection of longitudinal displacement of seamless line rails through machine vision technology solves the problems of large manual measurement errors and high cost of non-contact detection, achieves high-precision, low-cost detection, and improves urban rail operation safety and maintenance efficiency.
Patent Information
- Application Number
- CN202410701962.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
The existing seamless line rail longitudinal displacement detection method mainly relies on manual measurement, which has problems such as large measurement error, low efficiency, high cost and safety risks. Moreover, the non-contact detection method requires large equipment investment and high installation cost, making it difficult to achieve real-time efficiency. detection.
Using a method based on machine vision, the full-section image of the track is collected through the vehicle-mounted track inspection system, and the homomorphic filtering algorithm and USM sharpening algorithm are used for preprocessing, combined with edge detection and corner point extraction algorithms, to accurately calculate the displacement observation piles and rulers. The geometric center realizes real-time detection of the longitudinal displacement of the rail with an accuracy of 1 mm, and analyzes the stress state based on the track flaw detection results to formulate a repair plan.
It achieves high-precision and real-time detection of longitudinal displacement of seamless line rails, reduces labor costs, improves detection efficiency, and improves urban rail operation safety and maintenance efficiency.
Smart Images

Figure CN118537327A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of track detection, and in particular to a method and system for real-time detection of longitudinal displacement of seamless line rails based on machine vision. Background Art
[0002] With the rapid development of urban rail transit, seamless lines are widely used in urban rail lines due to their advantages such as low maintenance cost and long service life.
[0003] Seamless lines eliminate rail joints, which can reduce the vibration generated by trains during operation and improve passenger comfort. At the same time, due to the disappearance of rail joints, the rails cannot expand and contract freely, and the internal stress of the rails caused by external temperature changes, train rolling and other factors cannot be released, which is prone to track expansion and rail breakage accidents, posing safety hazards to line operations and affecting driving safety. The longitudinal displacement of the rails is a typical manifestation of the change in internal stress of seamless lines. Daily monitoring of the longitudinal displacement of seamless line rails is a key task in the maintenance of seamless lines. However, most of the traditional methods currently use manual measurement of rail displacement, which measures the relative displacement between displacement observation piles and rail marking points. The operation is simple, but the human factor has a greater impact, the efficiency is low, and there are safety risks.
[0004] In the prior art, Chong Aixin et al. proposed a method for measuring the longitudinal displacement of seamless line rails based on binocular vision technology. The method prints the coded mark to be measured on the waist of the rail for distance measurement and sprays the reference target on the fixed reference facility at the shoulder of the line. A binocular camera is set on the ground, and the image three-dimensional distance measurement algorithm is used to achieve accurate measurement of the longitudinal displacement of the rail. Lei Boping et al. proposed a track deformation monitoring method based on visual measurement. The measuring camera is pre-installed next to the track. Image processing technology and feature point extraction methods are used to establish the initial coordinate system during track laying and the coordinate system during observation. Parameter information such as the relative position and posture change of the track is obtained through feature matching to achieve dynamic monitoring of track deformation. The prior art method for detecting the longitudinal displacement of seamless line rails has the following disadvantages:
[0005] (1) Currently, the longitudinal displacement detection of seamless rails is mainly carried out by manual on-site detection. A square ruler is used to compare and measure the relative position changes of the displacement observation pile and the displacement observation scale at the bottom of the rail. In addition to requiring a lot of manpower, manual detection is difficult to accurately control the selection of the geometric center of the observation pile, resulting in large measurement errors.
[0006] (2) At present, non-contact seamless line rail longitudinal displacement detection methods such as optical instrument observation, magnetic sensor monitoring, and laser methods require the deployment of detection instruments and equipment on the line in advance. The investment in equipment is large, the installation cost is high, and the efficiency is low, making it difficult to achieve real-time and efficient detection of the longitudinal displacement of the rails along the entire line. Summary of the invention
[0007] In view of the technical problems existing in the prior art, the present invention provides a method and system for real-time detection of longitudinal displacement of seamless line rails based on machine vision. The full-section image of the track collected by the on-board track inspection system is used, and the image is preprocessed by adopting a homomorphic filtering algorithm and a USM sharpening algorithm. The centroid of the displacement observation pile and the displacement observation scale are extracted by using an edge detection and corner point extraction algorithm, and the longitudinal displacement of the track is calculated, so as to realize real-time detection of rail displacement with an accuracy better than 1mm. At the same time, combined with the track flaw detection results, according to the detected displacement amount and displacement direction, the disadvantage of the current stress state of the rail for the development of internal cracks is analyzed, and then a track repair plan is formulated.
[0008] According to a first aspect of the present invention, a method for real-time detection of longitudinal displacement of a seamless railway rail based on machine vision is provided, comprising:
[0009] Step 1, collecting a full-section image of the track and preprocessing the image;
[0010] Step 2, performing edge detection on the image to obtain the outline of the object in the image, extracting corner points of the displacement observation scale based on the outline of the object, and obtaining the geometric center of the observation pile and the displacement observation scale;
[0011] Step 3, calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0012] Based on the above technical solution, the present invention can also make the following improvements.
[0013] Optionally, the image in step 1 is captured by a high-definition linear array camera located under the vehicle body.
[0014] Optionally, the preprocessing process in step 1 includes: using a homomorphic filtering algorithm to process the brightness of the image and / or using a USM sharpening algorithm to process the clarity of the image.
[0015] Optionally, the process of processing the brightness of the image by using a homomorphic filtering algorithm includes:
[0016] Step 101, obtaining the image f(x,y)=i(x,y)r(x,y)(1)
[0017] Where i(x,y) represents the illumination component of the image f(x,y), and r(x,y) represents the reflection component of the image f(x,y);
[0018] Step 102, taking the natural logarithm of both sides of formula (1), we get:
[0019] lnf(x,y)=lni(x,y)+ln r(x,y) (2)
[0020] Step 103, perform fast Fourier transform on formula (2) to convert the image into a frequency domain image, and obtain:
[0021] F(μ,v)=I(μ,v)+R(μ,v) (3)
[0022] Wherein, F(μ,v), I(μ,v) and R(μ,v) represent the frequency domain values after fast Fourier transform of ln f(x,y), lni(x,y) and lnr(x,y), respectively;
[0023] Step 104, process F(μ,v) with the filter function H(μ,v) to obtain:
[0024] H(μ,v)F(μ,v)=H(μ,v)I(μ,v)+F(μ,v)R(μ,v) (4)
[0025] Step 105, inverse transform formula (4) to the spatial domain to obtain:
[0026] h f (x,y)=h i (x,y)+h r (x,y) (5)
[0027] Among them, h f (x,y),h i (x,y) and h r (x, y) are the values of inverse transformation of H(μ, v)F(μ, v), H(μ, v)I(μ, v) and F(μ, v)R(μ, v) into the spatial domain respectively;
[0028] Step 106, exponentiate both sides of formula (5) to obtain:
[0029] g(x,y)=exp|h f (x,y)|=exp|h i (x,y)|exp|h r (x,y)| (6)
[0030] Wherein, g(x, y) represents an image obtained by processing the brightness of the image f(x, y).
[0031] Optionally, the process of processing the clarity of the image by using the USM sharpening algorithm includes:
[0032] Step 111, subtracting the low-frequency component of the image after low-pass filtering from the image to obtain the high-frequency component of the image;
[0033] Step 112, multiplying the high frequency component by a set scaling factor and superimposing the result on the image to obtain a sharpened image;
[0034] Step 113, convolve the sharpened image with a Gaussian low-pass filter.
[0035] Optionally, the process of calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale in step 3 includes:
[0036] Step 301, determining the geometric center P1 of the displacement observation scale and the midpoints M and N of the upper and lower boundaries;
[0037] Step 302, taking the observation pile as the monitoring point P2, drawing a perpendicular line from the position of the monitoring point P2 to the straight line MN, and the foot of the perpendicular is point P3;
[0038] Step 303, when the displacement observation scale is a standard rectangular scale, the calculation formula of the track displacement d is:
[0039] d=dy*R col ;
[0040] Where dy represents the longitudinal distance between the geometric center P1 and point P3, R col is the vertical resolution of the image;
[0041] When the displacement observation scale is a non-standard rectangular scale, the calculation formula of the track displacement d is:
[0042]
[0043] Where dx represents the lateral distance between the geometric center P1 and point P3, R row is the horizontal resolution of the image.
[0044] Optionally, after step 3, the following steps may be further performed:
[0045] Step 4: After obtaining the displacement amount and displacement direction at the track displacement observation mark, judge the stress state of each track based on the displacement amount and displacement direction at two consecutive adjacent displacement observation marks, and predict the development trend of internal cracks and formulate a repair plan based on the track flaw detection results.
[0046] According to a second aspect of the present invention, there is provided a real-time detection system for longitudinal displacement of seamless railway rails based on machine vision, comprising: an image acquisition module, a geometric center acquisition module and a longitudinal displacement calculation module;
[0047] The image acquisition module is used to collect the full-section image of the track and pre-process the image;
[0048] The geometric center acquisition module is used to perform edge detection on the image to obtain the outline of the object in the image, extract corner points of the displacement observation scale based on the outline of the object, and obtain the geometric center of the observation pile and the displacement observation scale;
[0049] The longitudinal displacement calculation module is used to calculate the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0050] According to a third aspect of the present invention, there is provided an electronic device comprising a memory and a processor, wherein the processor is used to implement the steps of a method for real-time detection of longitudinal displacement of seamless line rails based on machine vision when executing a computer management program stored in the memory.
[0051] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer management program stored thereon, which, when executed by a processor, implements the steps of a method for real-time detection of longitudinal displacement of seamless line rails based on machine vision.
[0052] The present invention provides a method, system, electronic device and storage medium for real-time detection of longitudinal displacement of seamless line rails based on machine vision. The full-section image of the track collected by a high-definition linear array camera located under the vehicle body is used, and the homomorphic filtering algorithm and the USM sharpening algorithm are used to pre-process the image. The centroid of the displacement observation pile and the observation scale are extracted by edge detection and corner point extraction algorithms. The longitudinal displacement of the track is subsequently calculated to achieve real-time detection of rail displacement with an accuracy better than 1mm. At the same time, combined with the track flaw detection results, according to the detected displacement amount and displacement direction, the disadvantage of the current stress state of the rail for the development of internal cracks is analyzed, and then a track repair plan is formulated. Compared with the prior art, the present invention can realize the pre-processing and identification of the seamless line displacement observation pile and the observation scale through machine vision technology, and then realize the real-time calculation of the longitudinal displacement of the track. The detection accuracy can reach 1mm after field testing, and the efficient and high-precision detection of the longitudinal displacement of the seamless line rail can be realized, effectively reducing labor costs; combined with the track flaw detection results, a track repair plan can be formulated, which has a positive impact on improving the safety of urban rail operations and improving the efficiency of track maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A flow chart of a method for real-time detection of longitudinal displacement of seamless line rails based on machine vision provided by the present invention;
[0054] Figure 2 This is a picture effect diagram before being processed using the homomorphic filtering algorithm provided by the present invention;
[0055] Figure 3 This is a picture effect diagram after being processed using the homomorphic filtering algorithm provided by the present invention;
[0056] Figure 4 This is a picture effect diagram of the sharpened effect provided by the present invention;
[0057] Figure 5 The centroid extraction effect diagram provided by the present invention;
[0058] Figure 6 The track displacement calculation principle diagram provided by the present invention;
[0059] Figure 7 A structural block diagram of a real-time detection system for longitudinal displacement of seamless rails based on machine vision provided by the present invention;
[0060] Figure 8 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;
[0061] Fig. 9 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0062] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0063] Figure 1 A flowchart of a method for real-time detection of longitudinal displacement of seamless rails based on machine vision provided by the present invention is shown in FIG. Figure 1 As shown, the detection method includes:
[0064] Step 1: collect the full-section image of the track and pre-process the image.
[0065] Step 2: Perform edge detection on the image to obtain the outline of the object in the image, extract the corner points of the displacement observation scale based on the outline of the object, and obtain the geometric center of the observation pile and the displacement observation scale.
[0066] Step 3, calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0067] The present invention provides a real-time detection method for the longitudinal displacement of seamless line rails based on machine vision. The method uses the full-section track image taken by the vehicle-mounted track inspection system to complete the preprocessing, recognition and displacement calculation of the longitudinal displacement observation piles and displacement observation scale images of the seamless line rails in real time. The detection accuracy is better than 1mm. At the same time, combined with the track flaw detection results, according to the detected displacement amount and displacement direction, the disadvantage of the current stress state of the rail for the development of internal cracks is analyzed, and then a track repair plan is formulated.
[0068] The present invention can solve the above key problems. It uses the full-section track image collected by the vehicle-mounted track inspection system, adopts the homomorphic filtering algorithm and the USM sharpening algorithm to pre-process the image, adopts the edge detection and corner point extraction algorithm to extract the centroid of the displacement observation pile and the displacement observation scale, and calculates the longitudinal displacement of the track to achieve real-time detection of rail displacement with an accuracy better than 1mm. At the same time, combined with the track flaw detection results, according to the detected displacement amount and displacement direction, the disadvantage of the current stress state of the rail for the development of internal cracks is analyzed, and then a track repair plan is formulated.
[0069] Example 1
[0070] Embodiment 1 of the present invention is an embodiment of a method for real-time detection of longitudinal displacement of seamless rails based on machine vision provided by the present invention, combined with Figure 1 It can be seen that the embodiments of the detection method include:
[0071] Step 1: collect the full-section image of the track and pre-process the image.
[0072] In a possible implementation manner, in step 1, an image captured by a high-definition linear array camera located under the vehicle body is used.
[0073] In a possible embodiment, the preprocessing process in step 1 includes: using a homomorphic filtering algorithm to process the brightness of the image and / or using a USM (Unsharp Mask) sharpening algorithm to process the clarity of the image.
[0074] A homomorphic filtering algorithm is used on the collected images to compress the image brightness range and enhance the image contrast in the frequency domain, thereby solving the problem of uneven illumination of the image and achieving the effect of enhancing the image details in the dark area without losing the image details in the bright area. In a possible implementation manner, the process of processing the brightness of the image using the homomorphic filtering algorithm includes:
[0075] Step 101, obtain image f(x,y)=i(x,y)r(x,y)(1)
[0076] Among them, i(x,y) represents the illumination component of the image f(x,y), and r(x,y) represents the reflection component of the image f(x,y).
[0077] In the image, the incident component is represented as background information, while the reflected component is represented as object information. Because the incident component contains less useful information, the incident component should be appropriately reduced; on the contrary, the reflection amount is mainly determined by the physical properties of the object itself, contains a lot of detailed feature information, and changes rapidly. In order to enhance the image quality, the reflection component should be increased. In the processing process, the two incident components need to be separated so that they can be processed separately. Since the Fourier transforms of these two functions are inseparable, that is:
[0078] F{f(x,y)}≠F{i(x,y)}f{r(x,y)} (2)
[0079] The symbol F{} represents Fourier transform of the function in {}.
[0080] Figure 2 and Figure 3 These are the picture effect diagrams before and after being processed using the homomorphic filtering algorithm provided by the present invention.
[0081] Step 102, taking the natural logarithm of both sides of formula (1), we get:
[0082] lnf(x,y)=lni(x,y)+ln r(x,y) (3)
[0083] Step 103, perform fast Fourier transform on formula (3) to convert the image into a frequency domain image, and obtain:
[0084] F(μ,v)=I(μ,v)+R(μ,v) (4)
[0085] Among them, F(μ,v), I(μ,v) and R(μ,v) represent the frequency domain values after fast Fourier transform of ln f(x,y), lni(x,y) and lnr(x,y), respectively.
[0086] Step 104, process F(μ,v) with the filter function H(μ,v) to obtain:
[0087] H(μ,v)F(μ,v)=H(μ,v)I(μ,v)+F(μ,v)R(μ,v) (5)
[0088] Step 105, inverse transform formula (5) to the spatial domain to obtain:
[0089] h f (x,y)=h i (x,y)+h r (x,y) (6)
[0090] Among them, h f (x,y),h i (x,y) and hr (x,y) are the values obtained by inversely transforming H(μ,v)F(μ,v), H(μ,v)I(μ,v) and F(μ,v)R(μ,v) into the spatial domain.
[0091] Step 106, taking exponents on both sides of formula (6) to obtain:
[0092] g(x,y)=exp|h f (x,y)|=exp|h i (x,y)|exp|h r (x,y)| (7)
[0093] Here, g(x,y) represents the image after the brightness of the image f(x,y) is processed.
[0094] Use the USM sharpening algorithm to improve image clarity. In a possible implementation method, the specific implementation steps of the USM sharpening algorithm need to go through three steps: high-pass filtering, edge enhancement, and image denoising, which correspond to: high-pass filtering selects the high-frequency components of the image; edge enhancement is to multiply the high-frequency components with the scaling factor and superimpose them on the original image; the final image denoising is to remove the noise left by the entire operation on the edge of the image. Specifically, the process of using the USM sharpening algorithm to process the clarity of the image includes:
[0095] Step 111, subtract the low-frequency component of the image after low-pass filtering from the image to obtain the high-frequency component of the image.
[0096] The high-frequency component M is obtained by using traditional high-pass filtering, but this method will strengthen the noise in the subsequent steps and easily cause the image edge contrast to increase too much. Therefore, the high-frequency component of the image is obtained by subtracting the low-frequency component after the image low-pass filtering from the original image, as shown in formula (8):
[0097] M=II*G σ (8)
[0098] Among them, I is the grayscale image of the original image, G σ is a Gaussian low-pass filter, σ is the standard deviation of the filter kernel, which controls the range of sharpening, and * represents the convolution operation.
[0099] Step 112: multiply the high frequency component by the set scaling factor and superimpose the resultant component on the image to obtain a sharpened image.
[0100] Edge enhancement is to multiply the high-frequency components filtered out in the first step by a scaling factor λ and then superimpose them on the original image, as shown in formula (9):
[0101] I 1 =I+λM (9)
[0102] Step 113, convolve the sharpened image with a Gaussian low-pass filter.
[0103] Image denoising is to convolve a Gaussian low-pass filter on the sharpened image, which can filter out the noise and unnatural edges in the image, as shown in formula (10):
[0104] I=I*G σ (10)
[0105] like Figure 4 Shown is a picture effect diagram of the sharpening effect provided by the present invention.
[0106] Step 2: Perform edge detection on the image to obtain the outline of the object in the image, extract the corner points of the displacement observation scale based on the outline of the object, and obtain the geometric center of the observation pile and the displacement observation scale.
[0107] In a possible embodiment, edge detection is first performed on an input image to obtain the contour of an object.
[0108] Then, the corner points are extracted. For the rectangular displacement observation scale, the corner points can be identified by calculating the length relationship of the inner angle or diagonal of the polygon. According to the characteristics of the rectangle, the four corner points should approximately form a right angle, and the diagonal lengths should be close.
[0109] Finally, the centroid is extracted. After obtaining the positions of the four corner points of the ruler, the line connecting the corner points is the centroid of the ruler. The centroid of the top surface of the circular displacement observation pile is extracted, and the position of the displacement observation pile center on the ruler can be calculated by vertically projecting the displacement observation pile center to the ruler. Figure 5 Shown is a diagram showing the centroid extraction effect provided by the present invention.
[0110] Step 3, calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0111] In a possible embodiment, Figure 6 FIG. 1 is a schematic diagram of a track displacement calculation principle provided by an embodiment of the present invention, combined with Figure 6 It can be seen that the process of calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale in step 3 includes:
[0112] Step 301, determine the geometric center P1 of the displacement observation scale and the midpoints M and N of the upper and lower boundaries.
[0113] Step 302, taking the observation pile as the monitoring point P2, draw a perpendicular line from the position of the monitoring point P2 to the straight line MN, and the foot of the perpendicular is point P3.
[0114] Step 303: When the displacement observation scale is a standard rectangular scale, the standard scale is as follows: Figure 6 As shown in (1), point P3 and point P1 have the same horizontal coordinate value, that is, dx is 0, and the calculation formula of the track displacement d is:
[0115] d=dy*R col .
[0116] Where dy represents the longitudinal distance between the geometric center P1 and point P3, R col is the vertical resolution of the image.
[0117] If the ruler is deformed, point P3 and point P1 will have different ordinate values, such as Figure 6 (2) When the displacement observation scale is a non-standard rectangular scale, the calculation formula for the track displacement d is:
[0118]
[0119] Where dx represents the lateral distance between the geometric center P1 and point P3, R row is the horizontal resolution of the image.
[0120] In a possible implementation manner, step 3 further includes:
[0121] Step 4: The displacement and direction of the track displacement observation mark can be obtained through track displacement calculation. By continuously analyzing the displacement and direction of two adjacent displacement observation marks, the stress state (tension / compression) of each track can be determined. Combined with the rail flaw detection results, the development trend of internal cracks can be determined (if there are internal cracks inside a certain section of rail, and this section of rail is in a tensile state after analysis, the internal cracks will expand), and a reasonable track repair plan can be proposed (according to the development trend of internal cracks, it is recommended to take corrective measures to repair internal cracks with an expansion trend as soon as possible).
[0122] Example 2
[0123] Embodiment 2 provided by the present invention is an embodiment of a real-time detection system for longitudinal displacement of seamless railway rails based on machine vision provided by the present invention. Figure 7 A structure diagram of a real-time detection system for longitudinal displacement of seamless rails based on machine vision provided by an embodiment of the present invention, combined with Figure 7 It can be seen that the embodiment of the detection system includes: an image acquisition module, a geometric center acquisition module and a longitudinal displacement calculation module.
[0124] The image acquisition module is used to collect the full-section image of the track and pre-process the image.
[0125] The geometric center acquisition module is used to perform edge detection on the image to obtain the outline of the object in the image, extract the corner points of the displacement observation scale based on the outline of the object, and obtain the geometric center of the observation pile and the displacement observation scale.
[0126] The longitudinal displacement calculation module is used to calculate the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0127] It can be understood that the real-time detection system for the longitudinal displacement of seamless line rails based on machine vision provided by the present invention corresponds to the real-time detection method for the longitudinal displacement of seamless line rails based on machine vision provided by the aforementioned embodiments. The relevant technical features of the real-time detection system for the longitudinal displacement of seamless line rails based on machine vision can refer to the relevant technical features of the real-time detection method for the longitudinal displacement of seamless line rails based on machine vision, which will not be repeated here.
[0128] See also Figure 8 , Figure 8 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 8 As shown, an embodiment of the present invention provides an electronic device, including a memory 1310, a processor 1320, and a computer program 1311 stored in the memory 1310 and executable on the processor 1320. When the processor 1320 executes the computer program 1311, the following steps are implemented: acquiring a full-section image of the track and preprocessing the image; performing edge detection on the image to obtain the contour of the object in the image, extracting corner points of the displacement observation scale based on the contour of the object, and obtaining the geometric center of the observation pile and the displacement observation scale; and calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0129] See also Fig. 9 , Fig. 9 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Fig. 9 As shown, this embodiment provides a computer-readable storage medium 1400, on which a computer program 1411 is stored. When the computer program 1411 is executed by a processor, the following steps are implemented: collecting a full-section image of the track and preprocessing the image; performing edge detection on the image to obtain the contour of the object in the image, extracting the corner points of the displacement observation scale based on the contour of the object, and obtaining the geometric center of the observation pile and the displacement observation scale; calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
[0130] The embodiment of the present invention provides a method, system, electronic device and storage medium for real-time detection of longitudinal displacement of seamless line rails based on machine vision. The full-section image of the track is collected by a high-definition linear array camera located under the vehicle body, and the homomorphic filtering algorithm and the USM sharpening algorithm are used to pre-process the image. The edge detection and corner point extraction algorithms are used to extract the centroid of the displacement observation pile and the observation scale. The longitudinal displacement of the track is subsequently calculated to achieve real-time detection of rail displacement with an accuracy better than 1mm. At the same time, combined with the track flaw detection results, according to the detected displacement and displacement direction, the disadvantage of the current stress state of the rail for the development of internal cracks is analyzed, and then a track repair plan is formulated. Compared with the prior art, the present invention can realize the pre-processing and identification of the seamless line displacement observation pile and the observation scale through machine vision technology, and then realize the real-time calculation of the longitudinal displacement of the track. The detection accuracy can reach 1mm after field testing, and the efficient and high-precision detection of the longitudinal displacement of the seamless line rail can be realized, effectively reducing labor costs; combined with the track flaw detection results, a track repair plan can be formulated, which has a positive impact on improving the safety of urban rail operations and improving the efficiency of track maintenance.
[0131] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0132] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0133] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0136] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0137] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A real-time detection method for longitudinal displacement of seamless railway rail based on machine vision, characterized in that: The detection method comprises: Step 1, collecting a full-section image of the track and preprocessing the image; Step 2, performing edge detection on the image to obtain the outline of the object in the image, extracting corner points of the displacement observation scale based on the outline of the object, and obtaining the geometric center of the observation pile and the displacement observation scale; Step 3, calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
2. The detection method according to claim 1, characterized in that: The image in step 1 is collected by a high-definition linear array camera located under the vehicle body.
3. The detection method according to claim 1, characterized in that: The preprocessing process in step 1 includes: using a homomorphic filtering algorithm to process the brightness of the image and / or using a USM sharpening algorithm to process the clarity of the image.
4. The detection method according to claim 3, characterized in that: The process of processing the brightness of the image using the homomorphic filtering algorithm includes: Step 101, obtaining the image f(x,y)=i(x,y)r(x,y)(1) Where i(x,y) represents the illumination component of the image f(x,y), and r(x,y) represents the reflection component of the image f(x,y); Step 102, taking the natural logarithm of both sides of formula (1), we get: lnf(x,y)=lni(x,y)+ln r(x,y) (2) Step 103, perform fast Fourier transform on formula (2) to convert the image into a frequency domain image, and obtain: F(μ,v)=I(μ,v)+R(μ,v) (3) Wherein, F(μ,v), I(μ,v) and R(μ,v) represent the frequency domain values after fast Fourier transform of ln f(x,y), lni(x,y) and lnr(x,y), respectively; Step 104, process F(μ,v) with the filter function H(μ,v) to obtain: H(μ,v)F(μ,v)=H(μ,v)I(μ,v)+F(μ,v)R(μ,v) (4) Step 105, inverse transform formula (4) to the spatial domain to obtain: h f (x,y)=hi(x,y)+hr(x,y) (5) Among them, h f (x,y),h i (x,y) and h r (x, y) are the values of inverse transformation of H(μ, v)F(μ, v), H(μ, v)I(μ, v) and F(μ, v)R(μ, v) into the spatial domain respectively; Step 106, exponentiate both sides of formula (5) to obtain: g(x,y)=exp|h f (x,y)|=exp|hi(x,y)|exp|hr(x,y)| (6) Wherein, g(x,y) represents an image obtained by processing the brightness of the image f(x,y).
5. The detection method according to claim 3, characterized in that: The process of using the USM sharpening algorithm to process the clarity of the image includes: Step 111, subtracting the low-frequency component of the image after low-pass filtering from the image to obtain the high-frequency component of the image; Step 112, multiplying the high frequency component by a set scaling factor and superimposing the result on the image to obtain a sharpened image; Step 113, convolve the sharpened image with a Gaussian low-pass filter.
6. The detection method according to claim 1, characterized in that: The process of calculating the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale in step 3 includes: Step 301, determining the geometric center P1 of the displacement observation scale and the midpoints M and N of the upper and lower boundaries; Step 302, taking the observation pile as the monitoring point P2, drawing a perpendicular line from the position of the monitoring point P2 to the straight line MN, and the foot of the perpendicular is point P3; Step 303, when the displacement observation scale is a standard rectangular scale, the calculation formula of the track displacement d is: d = dy * Rcol; Where dy represents the longitudinal distance between the geometric center P1 and point P3, R col is the vertical resolution of the image; When the displacement observation scale is a non-standard rectangular scale, the calculation formula of the track displacement d is: Where dx represents the lateral distance between the geometric center P1 and point P3, R row is the horizontal resolution of the image.
7. The detection method according to claim 3, characterized in that: The step 3 further includes: Step 4: After obtaining the displacement amount and displacement direction at the track displacement observation mark, judge the stress state of each track based on the displacement amount and displacement direction at two consecutive adjacent displacement observation marks, and predict the development trend of internal cracks and formulate a repair plan based on the track flaw detection results.
8. A real-time detection system for longitudinal displacement of seamless rails based on machine vision, characterized in that: The detection system comprises: an image acquisition module, a geometric center acquisition module and a longitudinal displacement calculation module; The image acquisition module is used to collect the full-section image of the track and pre-process the image; The geometric center acquisition module is used to perform edge detection on the image to obtain the outline of the object in the image, extract corner points of the displacement observation scale based on the outline of the object, and obtain the geometric center of the observation pile and the displacement observation scale; The longitudinal displacement calculation module is used to calculate the longitudinal displacement of the seamless line rail based on the geometric center position of the observation pile and the displacement observation scale.
9. An electronic device, characterized in that: It includes a memory and a processor, and the processor is used to implement the steps of the real-time detection method of the longitudinal displacement of seamless line rail based on machine vision as described in any one of claims 1 to 7 when executing the computer management program stored in the memory.
10. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by the processor, the steps of the real-time detection method of the longitudinal displacement of seamless line rails based on machine vision as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Low-power-consumption 4G seamless track steel rail visual displacement detection method and device
CN119625010A
A low-power 4G seamless line rail visual displacement detection method and device
CN119625010B
Intelligent vehicle-mounted seamless track steel rail displacement detection device and method
CN119821471A
Longitudinal displacement and locking rail temperature image monitoring and detecting method and device for continuously welded rail track
CN119840682A
