Seed-guided UAV laser point cloud railway track line extraction method and system

Through seed guidance and polynomial fitting algorithms, the problems of low efficiency and high safety risks of traditional railway track line extraction methods are solved, and efficient, safe and accurate 3D track line extraction is achieved to meet the monitoring needs of modern railway operation and maintenance.

CN118691836BActive Publication Date: 2024-10-29HUBEI LUOJIA LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411188936.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-29
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

Traditional railway track line extraction methods are inefficient and involve safety risks, and cannot meet the monitoring requirements of modern railway operation and maintenance.

Method used

The UAV laser point cloud method based on seed guidance is used to automatically track the initial position of the orbit line through height and direction consistency constraints, and buffer analysis and polynomial fitting algorithms are used to achieve high-precision extraction of 3D orbit lines.

Benefits of technology

It improves the efficiency and safety of track line extraction, avoids the safety hazards of on-track measurement, overcomes the effects of local occlusion and noise, and obtains high-precision 3D track line extraction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691836B_ABST
    Figure CN118691836B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for extracting railway track lines from UAV laser point clouds based on seed guidance. First, the location and extension direction of the railway track are given through seed guidance, and the initial track line is tracked and parallel track lines are generated through the constraints of the rail height and direction consistency; on this basis, the initial track line is combined with the prior knowledge of the rail size to generate a rail buffer; then, according to the location of the buffer zone and the elevation of the track line, the railway scene point cloud is buffered and analyzed to extract the point cloud of the top of the rail; then, based on the polynomial function, the curve equations of the rail line in the XOY plane and the XOZ plane are constructed respectively, and the simultaneous equations are used to obtain the accurate fitting results of the track line. Among them, the seed-guided initial track line tracking, the rail point extraction based on the buffer zone location and height, and the accurate fitting calculation of the track line are the key technologies of the present invention. The present invention provides reliable technical means for accurate extraction of railway track lines, on-track detection, railway construction and operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of photogrammetry and remote sensing, and in particular relates to a UAV laser point cloud railway track line extraction method and system based on seed guidance. Background Art

[0002] Railway construction, operation and maintenance, and daily management all require a lot of capital and manpower investment. Traditional surveying methods can no longer meet the current social development requirements for surveying and mapping railway thematic elements. Due to the widespread use of unmanned aerial vehicles (UAVs) and the continuous development of lidar technology, lidar based on drones has emerged, making it possible to obtain railway thematic information elements.

[0003] Conventional measurement of railway tracks requires the use of manual steel rulers or total stations to measure distances. Although this method is highly accurate and easy to operate, the data obtained is discrete and cannot fully reflect the changes in the area along the railway, making it difficult to meet the monitoring requirements of modern railway operation and maintenance. The aerial images obtained by aerial photogrammetry often have shadows and geometric distortions. When the railway crosses the forest area, the railway information is severely blocked by trees. In addition, the processing steps of aerial images are complex and the production cycle is long, which cannot meet the current requirements for obtaining railway thematic information elements. The laser scanning system based on the track detection trolley can quickly and accurately collect three-dimensional point clouds of track scenes, providing an effective means for track line extraction, but there are safety risks in track operations, and the operation time is limited by the skylight time. In summary, the traditional railway track line extraction method still has problems such as low efficiency and high safety risks. Summary of the invention

[0004] The present invention mainly solves the problems of low efficiency and high safety risks of traditional railway track extraction methods, and provides a technical support for high-precision railway track extraction without on-track detection. The present invention proposes a seed-guided UAV laser point cloud railway track extraction method and system. Based on the given track location and extension direction, the initial position of the track is automatically tracked through height and direction consistency constraints, and the buffer zone generated by the track is analyzed to extract the top point cloud of the rail. The polynomial fitting algorithm is used to realize the generation of 3D track lines.

[0005] The technical solution of the present invention is a seed-guided UAV laser point cloud railway track line extraction method, comprising the following steps:

[0006] Step 1: For the UAV laser point cloud of the track scene, the initial track line is obtained by combining the track feature points through the seed guidance method;

[0007] Step 2, according to the initial track line obtained in step 1, a parallel track line is obtained based on the prior knowledge of track gauge;

[0008] Step 3, generating buffer areas according to the initial trajectory line and the parallel trajectory line respectively;

[0009] Step 4, extracting rail point cloud from the buffer area obtained in step 3, that is, searching for point clouds located in the buffer area, marking point clouds whose heights meet the requirements of the initial track line height as rail point clouds;

[0010] Step 5: For the rail point cloud obtained in step 4, a polynomial fitting algorithm is used to perform track line fitting processing, so as to obtain an accurate track line extraction result.

[0011] Furthermore, the specific implementation of step 1 is as follows;

[0012] 1a) Two seed points are manually selected at a certain distance from the location of the rail, and the initial position and direction of the rail are determined based on them, and then the track feature points are screened;

[0013] 1b) Set the height difference threshold of track feature points , direction threshold , initial value of search radius , search step length , where the initial value of the trajectory extension direction is set by the direction of the seed point connection line;

[0014] 1c) Based on the manually given seed point position, use the search radius Search for the point cloud near the location, and use the bubble sort method to sort the elevation of the neighboring point cloud, taking the median elevation as the benchmark, and select the point cloud with a height difference less than the threshold. The maximum elevation point is taken as the starting track feature point;

[0015] 1d) Based on the manually given seed point position, use the search radius Search for the point cloud near the location, use the elevation of the previous track feature point as the reference, and select the point cloud with a height difference less than the threshold. The maximum elevation point is taken as the second track characteristic point;

[0016] 1e) Using the positions of the two track feature points obtained, calculate the average height of the track line and extension direction , and use the second track feature point as the seed point position, according to the search step length and direction , estimate the position of the next track feature point;

[0017] 1f) According to the search step as well as Estimate candidate point search radius ;

[0018] Based on the estimated track feature point position and candidate point search radius Search the neighborhood point cloud and use As a benchmark, select the height difference less than the threshold The maximum elevation point of the track is taken as a candidate track feature point; steps 1e) and 1f) are repeated until the search for all track feature points of the current track is completed, the tracking is ended, and these candidate track feature points are connected in sequence to obtain the initial track line.

[0019] Furthermore, the following formula is used in 1a) to screen the track feature points:

[0020] (1)

[0021] In the formula, For any point i in the point cloud, Refers to the height difference between the i-th point and the identified track feature point; It refers to the angle between the line connecting the i-th point and the nearest track feature point and the extension direction of the track line.

[0022] Furthermore, the search radius of candidate points in 1f) The formula is as follows:

[0023] (2).

[0024] Furthermore, in step 2, set the parallel track line detection parameters , the distance from the initial track line to the left and right sides of the extension direction of the initial track line At , search the point cloud for points that are highly consistent with the track feature points. After all points are searched, the points on the side with the most points are retained as parallel track feature points and connected into lines as the parallel track line detection results of the initial track line.

[0025] Furthermore, in step 3, for any one of the initial trajectory line and the parallel trajectory line, a specific implementation method of generating a buffer area is as follows;

[0026] Along the direction of the track line, on the left and right sides of the track line, the distance from the track line Generate two buffer feature points, referred to as buffer points; the specific steps are:

[0027] 2a) Select feature points one by one and , the coordinates are ( )and( ), we can get The equation of the straight line where the slope is calculated and the intercept ;

[0028] 2b) In at, perpendicular to The equation of the straight line, whose slope is ,Will Substitute the point coordinates into the intercept ;

[0029] 2c) Let the buffer point to be requested be ( ), then the buffer point satisfies the following equation:

[0030] (3)

[0031] According to the above equation, two buffer feature point results can be calculated;

[0032] 2d) Determine if the generated buffer point is located on the straight line The left or right side of:

[0033] (4)

[0034] like , then point ( ) in a straight line Left side; if When, point ( ) in a straight line Right side; if , then point ( ) in a straight line superior;

[0035] 2e) After the buffer points corresponding to all the feature points of the track line are generated, the buffer points on the left and the right are connected in sequence to complete the generation of the buffer area.

[0036] Furthermore, in step 4, the point cloud whose marking height and initial track line height meet the following formula is used as the rail point cloud:

[0037] (5)

[0038] In the formula, is the point cloud in the buffer zone, For any point, For point The elevation of is the initial track elevation, is the high difference threshold.

[0039] Furthermore, the specific implementation of step 5 is as follows;

[0040] First, the rail point cloud is used to perform polynomial fitting on the XOY plane to fit the rail point cloud on a track line. , whose three-dimensional coordinates are , m is the number of rail point clouds, then the rail point cloud The following relationship is satisfied on the XOY plane:

[0041] (6)

[0042] Where: is the polynomial coefficient, n is the number of polynomial coefficients;

[0043] Defining variables as well as , the corresponding calculation formula is as follows:

[0044] (7)

[0045] (8)

[0046] (9)

[0047] Furthermore, the orbit point cloud fitting expression is as follows:

[0048] (10)

[0049] Substitute the coordinates of the rail point cloud obtained in step 4 into formula (9) to solve , that is, the polynomial coefficients are obtained , thus obtaining the mathematical expression of the orbit line;

[0050] In order to obtain the distribution position of the orbit line in the height direction, the same method is used to construct the fitting polynomial of the orbit line in the XOZ plane.

[0051] (11)

[0052] In the formula,

[0053] (12)

[0054] (13)

[0055] After solving the polynomial coefficients using the same method, we get the projection cylinder of the orbit line about XOZ. By combining equations (10) and (11), we get the orbit line space curve.

[0056] The present invention also provides a UAV laser point cloud railway track line extraction system based on seed guidance, comprising the following modules:

[0057] The initial track line acquisition module is used to obtain the initial track line through the seed guidance method based on the track scene UAV laser point cloud and the track feature points;

[0058] A parallel track line acquisition module is used to obtain a parallel track line according to the obtained initial track line and the prior knowledge of track gauge;

[0059] A buffer area generation module is used to generate buffer areas according to the initial track line and the parallel track line respectively;

[0060] The rail point cloud acquisition module is used to extract rail point clouds from the obtained buffer area, that is, to search for point clouds located in the buffer area, and mark point clouds whose heights meet the requirements of the initial track line height as rail point clouds;

[0061] The track line extraction module is used to perform track line fitting processing on the obtained rail point cloud using a polynomial fitting algorithm to obtain accurate track line extraction results.

[0062] The present invention has the following advantages:

[0063] (1) The method is highly efficient and safe. This method can achieve track information extraction without obtaining point clouds on track, avoid the safety hazards of on-track measurement, overcome the problem that the operation time is limited by the skylight time, and improve operation efficiency and safety.

[0064] (2) High robustness. This method avoids the preprocessing errors caused by the traditional method of first performing scene point cloud filtering and point cloud classification. Through seed guidance, it can efficiently detect the initial track line position, overcome the problem of missing track point extraction caused by local occlusion, and improve the robustness of the track line extraction method.

[0065] (3) High precision. Based on the initial trajectory line extraction, this method obtains the trajectory point cloud through the buffer analysis method, and uses the polynomial fitting method to obtain the 3D trajectory line extraction result. This avoids the shortcomings of directly detecting the trajectory line based on the point cloud, which is easily affected by the point cloud density and noise. The extraction result has high precision. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 This is a flow chart of a UAV point cloud trajectory extraction method based on seed guidance in an embodiment of the present invention.

[0067] Figure 2 This is a diagram of the initial trajectory line extraction result based on seed guidance in an embodiment of the present invention.

[0068] Figure 3 FIG. 1 is a diagram showing the rail point extraction result based on buffer analysis in an embodiment of the present invention, wherein Figure 3 (a) is the result of extracting rail points in the buffer zone. Figure 3 (b) in the equation is Figure 3 A magnified image of the local point cloud in the rectangular box in (a).

[0069] Figure 4 This is a comparison diagram of the trajectory extraction results in the embodiment of the present invention, where Figure 4 (a) in the figure is the initial trajectory extraction result. Figure 4 (b) is the precise fitting result of the track point cloud. Figure 4 (c) in the equation is Figure 4 The local enlarged view of the rectangular frame in (a), Figure 4 (d) in Figure 4 A partial enlarged view of the rectangular box in (b). DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0071] In recent years, with the rapid development of UAV technology and the continuous improvement of laser scanning capabilities, UAV-based laser scanning technology can obtain dense three-dimensional point clouds of track scenes, providing data support for the accurate extraction of track lines. Therefore, for UAV laser point clouds, the initial track line detection is directly guided by seeds to avoid pre-processing errors caused by filtering or classifying the track scene point clouds first; the initial track line position and height buffer analysis are used to detect the rail point cloud to avoid the initial track line being affected by point cloud density and noise; the 3D rail line accurate extraction result is obtained by polynomial function fitting.

[0072] The technical solution provided by the present invention is a method for extracting the track line of the UAV point cloud of the railway scene as the research object, relying on the seed-guided method, extracting the initial track line according to the rail position and direction consistency constraints, and realizing the accurate extraction of the 3D track line through the track line buffer generation, rail top point cloud extraction and track line polynomial fitting method. Among them, the seed-guided initial track line tracking, the rail point extraction based on the buffer position and height, and the accurate fitting of the track line are the key technologies of the present invention.

[0073] The method of the present invention uses the UAV laser point cloud of the railway scene as the data basis, relies on the initial seed point to obtain the initial position and extension direction of the track line, and implements the tracking processing of the initial track line according to the consistency constraint of the track height and direction. On this basis, the initial track line is used to generate a buffer area, and the buffer position and track line height information are used to screen the rail point cloud. The 3D track line extraction is completed through the polynomial fitting of the XOY and XOZ surfaces of the rail point cloud. Its core process is as follows: Figure 1 As shown, the following steps are included:

[0074] Step 1: For the UAV laser point cloud of the track scene, the initial track line tracking is performed through the seed guidance method. The steps are as follows:

[0075] a) Two seed points are manually selected at a certain distance from the location of the rail, and the initial position and direction of the rail are determined based on them. The following formula is used to screen the track feature points:

[0076] (1)

[0077] In the formula, is any point in the point cloud, Refers to the height difference between this point and the identified track feature point; It refers to the angle between the line connecting the point and the nearest track feature point and the extension direction of the track line.

[0078] b) Set the height difference threshold of track feature points , direction threshold , initial value of search radius , search step length , where the initial value of the trajectory extension direction is set by the direction of the seed point connection line;

[0079] c) Based on the manually given seed point position, use the search radius Search for the point cloud near the location, and use the bubble sort method to sort the elevation of the neighboring point cloud, taking the median elevation as the benchmark, and select the point cloud with a height difference less than the threshold. The maximum elevation point is taken as the starting track feature point;

[0080] d) Based on the manually given seed point position, use the search radius Search for the point cloud near the location, use the elevation of the previous feature point as a reference, and select the point cloud with a height difference less than the threshold. The maximum elevation point is taken as the second track characteristic point;

[0081] e) Using the positions of the two track feature points obtained, calculate the average height of the track line and extension direction , and use the second track point as the seed point position, according to the search step length and direction , estimate the position of the next track feature point;

[0082] f) According to the search step as well as Estimate candidate point search radius , the formula is as follows,

[0083] (2)

[0084] Based on step e) the track feature points estimate the position and radius Search the neighborhood point cloud and use As a benchmark, select the height difference less than the threshold The maximum elevation point of the track is taken as a candidate track feature point; steps e) and f) are repeated until the search for all track feature points of the current track is completed, the tracking is ended, and these candidate track feature points are connected in sequence to obtain the initial track line.

[0085] Step 2: Based on the initial track line obtained in step 1 and the prior knowledge of track gauge, set the parallel track line detection parameters. , the distance between the left and right sides of the initial track line extension direction At each point, search for points in the point cloud that are highly consistent with the track feature points. After all feature points are searched, the points on the side with the most points are retained as parallel track points, and they are sequentially connected into lines as the parallel track line detection results of the initial track line.

[0086] Step 3: Generate buffer areas based on the initial trajectory and parallel trajectory. The steps are as follows:

[0087] Based on a track line, along the direction of the track line, on the left and right sides of the track line, the distance from the track line Generate two buffer feature points (referred to as buffer points) at the location; the specific steps are:

[0088] a) Select the track feature points one by one and , the coordinates are ( )and( ), we can get The equation of the straight line where the slope is calculated and the intercept ;

[0089] b) In at, perpendicular to The equation of the straight line, whose slope is ,Will Substitute the point coordinates into the intercept ;

[0090] c) Let the buffer point to be requested be ( ), then the point satisfies the following equation:

[0091] (3)

[0092] According to the above equation, two buffer feature point results can be calculated.

[0093] d) Determine whether the generated feature points are located on the straight line The left or right side of:

[0094] (4)

[0095] like , then point ( ) in a straight line Left side; if When, point ( ) in a straight line Right side; if , then point ( ) in a straight line superior.

[0096] e) After the buffer points corresponding to all the feature points of the track line are generated, connect the buffer points on the left side in sequence, and then connect the buffer points on the right side in reverse order to complete the buffer generation.

[0097] Step 4: Extract the rail point cloud from the buffer area obtained in step 3. That is, search for the rail point cloud located in the buffer area, and mark the point cloud whose height and the initial track line height meet the following formula as the rail point cloud.

[0098] (5)

[0099] In the formula, is the point cloud in the buffer zone, For any point, For point The elevation of is the initial track elevation, is the high difference threshold.

[0100] Step 5: For the rail point cloud obtained in step 4, a polynomial fitting algorithm is used to fit the track line, so as to obtain the accurate extraction result of the track line. Considering that the track line is a 3D space curve, firstly, a polynomial fitting is performed on the XOY plane using the rail point cloud to fit the track point cloud on a track line. , whose three-dimensional coordinates are , m is the number of rail point clouds, then the rail point cloud The following relationship is satisfied on the XOY plane:

[0101] (6)

[0102] Where: are the polynomial coefficients.

[0103] For the convenience of calculation, define the variable as well as , the corresponding calculation formula is shown below.

[0104] (7)

[0105] (8)

[0106] (9)

[0107] Furthermore, the orbit point cloud fitting expression can be obtained as shown below.

[0108] (10)

[0109] Calculate from it , we can get the polynomial coefficients , thus obtaining the mathematical expression of the orbit line.

[0110] In fact, the curve obtained by using formula (10) is actually the cylindrical surface of the trajectory line projected on the XOY plane. In order to obtain the distribution position of the trajectory line in the height direction, the same method can be used to construct the fitting polynomial of the trajectory line on the XOZ plane.

[0111] (11)

[0112] In the formula,

[0113] (12)

[0114] (13)

[0115] By using the same method to solve the polynomial coefficients, we can get the projection cylinder of the orbit line about XOZ. By combining equations (10) and (11), we can get the orbit line space curve.

[0116] The specific implementation process of using the real outdoor scene point cloud to extract the track line is as follows:

[0117] Step 1: For the track scene UAV laser point cloud, the initial track line tracking is performed through the seed guidance method. The value is 0.2m. The value is 15°. The value is 0.2m. The value is 1.0m. In specific implementation, the above parameters may also take other values.

[0118] Step 2: Based on the initial track line obtained in step 1 and the prior knowledge of track gauge, set the parallel track line detection parameters. (The value is 1.5m, other values ​​can also be used in specific implementation), the distance on the left and right sides of the initial track line in the forward direction After all track points are searched, the order with the largest number of points is retained and connected into a line as the parallel track line detection result of the initial track line (see Figure 2 ).

[0119] Step 3: Generate a buffer area based on the initial trajectory line and the parallel trajectory line. The steps are as follows:

[0120] Based on the feature points of the track line, along the direction of the track line, on the left and right sides of the track line, the distance from the track line Two buffer feature points are generated at (the value is 0.14m, and other values ​​can also be used in specific implementation). After the buffer points corresponding to all the feature points of the track line are generated, the left points are connected in sequence, and then the right points are connected in reverse order to complete the buffer generation.

[0121] Step 4: Extract the rail point cloud from the buffer area obtained in step 3. That is, search for the rail point cloud located in the buffer area, and mark the point cloud whose height and the initial track line height meet the following formula as the rail point cloud, where The value is 0.05m. Other values ​​can also be used in specific implementation. The extraction results are as follows Figure 3 shown.

[0122] ;

[0123] Step 5: For the rail point cloud obtained in step 4, a polynomial fitting algorithm is used to fit the track line. A cubic polynomial fitting is performed on the XOY plane and a cubic polynomial fitting is performed on the XOZ plane. By combining the equations, the accurate extraction result of the track line can be obtained (see Figure 4 as shown).

[0124] The seed-guided UAV laser point cloud railway track line extraction method and system provided by the technical solution of the present invention can use computer software calculation to realize the automatic operation process. The embodiment of the present invention also provides a seed-guided UAV laser point cloud railway track line extraction system, including the following modules:

[0125] The initial track line acquisition module is used to obtain the initial track line through the seed guidance method based on the track scene UAV laser point cloud and the track feature points;

[0126] A parallel track line acquisition module is used to obtain a parallel track line according to the obtained initial track line and the prior knowledge of track gauge;

[0127] A buffer area generation module is used to generate buffer areas according to the initial track line and the parallel track line respectively;

[0128] The rail point cloud acquisition module is used to extract rail point clouds from the obtained buffer area, that is, to search for point clouds located in the buffer area, and mark point clouds whose heights meet the requirements of the initial track line height as rail point clouds;

[0129] The track line extraction module is used to perform track line fitting processing on the obtained rail point cloud using a polynomial fitting algorithm to obtain accurate track line extraction results.

[0130] The specific implementation method of each module is the same as each step and will not be described in detail in the present invention.

[0131] The specific implementation examples described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific implementation examples described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the attached claims.

Claims

1. A seed-guided UAV laser point cloud railway track line extraction method, characterized in that: The steps include: Step 1: For the UAV laser point cloud of the track scene, the initial track line is obtained by combining the track feature points through the seed guidance method; The specific implementation of step 1 is as follows; 1a) Two seed points are manually selected at a certain distance from the location of the rail, and the initial position and direction of the rail are determined based on them, and then the track feature points are screened; 1b) Set the track feature point height difference threshold T Δz , direction threshold θ T , the initial value of the search radius r0, the search step length s, where the initial value of the trajectory extension direction is set by the direction of the seed point connection line; 1c) According to the manually given seed point position, use the search radius r0 to search for the neighboring point cloud of the position, and use the bubble sorting method to sort the elevation of the neighboring point cloud. Take the median elevation as the benchmark and select the point cloud with a height difference less than the threshold T. Δz The maximum elevation point is taken as the starting track feature point; 1d) According to the manually given seed point position, use the search radius r0 to search for the point cloud near the position, take the elevation of the previous track feature point as the benchmark, and select the point cloud with a height difference less than the threshold T Δz The maximum elevation point is taken as the second track characteristic point; 1e) Using the obtained positions of the two track feature points, calculate the average height z and extension direction θ of the track line, and use the second track feature point as the seed point position, and estimate the position of the next track feature point according to the search step s and direction θ; 1f) According to the search step size s and θ T Estimate the candidate point search radius r; Based on the estimated track feature point position and the candidate point search radius r, the neighborhood point cloud is searched, and z is used as the reference to select points with a height difference less than the threshold T Δz The maximum elevation point of the track is taken as a candidate track feature point; repeat steps 1e) and 1f) until the search for all track feature points of the current track is completed, the tracking is ended, and these candidate track feature points are connected in sequence to obtain the initial track line; Step 2, according to the initial track line obtained in step 1, a parallel track line is obtained based on the prior knowledge of track gauge; Step 3, generating buffer areas according to the initial trajectory line and the parallel trajectory line respectively; In step 3, for any one of the initial trajectory line and the parallel trajectory line, the specific implementation method of generating the buffer area is as follows; Along the direction of the track line, two buffer feature points are generated on the left and right sides of the track line at a distance d from the track line, referred to as buffer points; the specific steps are: 3a) Select the feature points p1 and p2 in turn, with coordinates (x1, y1) and (x2, y2) respectively, and you can get the equation of the straight line where p1p2 is located, and calculate the slope k1 and intercept b1; 3b) At point p1, the equation of the line perpendicular to p1p2 has a slope of -1 / k1. Substituting the coordinates of point p1 into the equation, we can calculate the intercept b2. 3c) Let the buffer point to be determined be (x0, y0), then the buffer point satisfies the following equation: According to the above equation, two buffer feature point results can be calculated; 3d) Determine whether the generated buffer point is on the left or right side of the straight line p1p2: S=(x1-x0)×(y2-y0)-(y1-y0)×(x2-x0) (4) If S>0, the point (x0, y0) is on the left side of the straight line p1p2; if S<0, the point (x0, y0) is on the right side of the straight line p1p2; if S=0, the point (x0, y0) is on the straight line p1p2; 3e) After the buffer points corresponding to all the feature points of the track line are generated, the buffer points on the left are connected in sequence, and then the buffer points on the right are connected, and the generation of the buffer area is completed; Step 4, extracting rail point cloud from the buffer area obtained in step 3, that is, searching for point clouds located in the buffer area, marking point clouds whose heights meet the requirements of the initial track line height as rail point clouds; Step 5: Using a polynomial fitting algorithm to perform track line fitting processing on the rail point cloud obtained in step 4, so as to obtain an accurate track line extraction result; The specific implementation of step 5 is as follows; First, the rail point cloud is used to perform polynomial fitting on the XOY plane to fit the rail point cloud p on a track line. k , whose three-dimensional coordinates are (x k ,y k ,z k ), k = 1, 2…, m, m is the number of rail point clouds, then the rail point cloud p k The following relationship is satisfied on the XOY plane: y k =a0+a1x k +…+a n x k n (6) Where: a0, a1, …, a n is the polynomial coefficient, n is the number of polynomial coefficients; Define variables X, a, and Y. The corresponding calculation formula is as follows: a=[a0,a1,…,a n ] T (8) Y=[y1,y2,…,y m ] T (9) Furthermore, the orbit point cloud fitting expression is as follows: Xa=Y (10) Substitute the coordinates of the rail point cloud obtained in step 4 into formula (10) to solve for a, and then obtain the polynomial coefficient a i , thus obtaining the mathematical expression of the orbit line; In order to obtain the distribution position of the orbit line in the height direction, the same method is used to construct the fitting polynomial of the orbit line in the XOZ plane. Xb=Z (11) In the formula, b=[b0,b1,…,b n ] T (12) Z=[z1,z2,…,z m ] T (13) After solving the polynomial coefficients using the same method, we get the projection cylinder of the orbit line about XOZ. By combining equations (10) and (11), we get the orbit line space curve.

2. The seed-guided UAV laser point cloud railway track line extraction method according to claim 1, characterized in that: In 1a), the following formula is used to screen track feature points: Where P i For any point i in the point cloud, ΔZ i Refers to the height difference between the i-th point and the identified track feature point; θ v It refers to the angle between the line connecting the i-th point and the nearest track feature point and the extension direction of the track line.

3. The seed-guided UAV laser point cloud railway track line extraction method according to claim 1, characterized in that: The formula for the candidate point search radius r in 1f) is as follows:

4. The seed-guided UAV laser point cloud railway track line extraction method according to claim 1, characterized in that: In step 2, the parallel track line detection parameter w is set, and points that are highly consistent with the track feature points are searched in the point cloud at a distance of w from the initial track line on both sides of the extension direction of the initial track line. After all points are searched, the points on the side with the most points are retained as parallel track feature points, and connected into lines as the parallel track line detection results of the initial track line.

5. The seed-guided UAV laser point cloud railway track line extraction method according to claim 1, characterized in that: In step 4, the point cloud whose marking height and initial track line height meet the following formula is used as the rail point cloud: Where C is the point cloud in the buffer zone, P j For any point, Z j For point P j The elevation, Z line is the initial track elevation, T h is the high difference threshold.

6. The seed-guided UAV laser point cloud railway track extraction system is characterized by: Includes the following modules: The initial track line acquisition module is used to obtain the initial track line through the seed guidance method based on the track scene UAV laser point cloud and the track feature points; the specific implementation method is as follows; 1a) Two seed points are manually selected at a certain distance from the location of the rail, and the initial position and direction of the rail are determined based on them, and then the track feature points are screened; 1b) Set the track feature point height difference threshold T Δz , direction threshold θ T , the initial value of the search radius r0, the search step length s, where the initial value of the trajectory extension direction is set by the direction of the seed point connection line; 1c) According to the manually given seed point position, use the search radius r0 to search for the neighboring point cloud of the position, and use the bubble sorting method to sort the elevation of the neighboring point cloud. Take the median elevation as the benchmark and select the point cloud with a height difference less than the threshold T. Δz The maximum elevation point is taken as the starting track feature point; 1d) According to the manually given seed point position, use the search radius r0 to search for the point cloud near the position, take the elevation of the previous track feature point as the benchmark, and select the point cloud with a height difference less than the threshold T Δz The maximum elevation point is taken as the second track characteristic point; 1e) Using the obtained positions of the two track feature points, calculate the average height z and extension direction θ of the track line, and use the second track feature point as the seed point position, and estimate the position of the next track feature point according to the search step s and direction θ; 1f) According to the search step size s and θ T Estimate the candidate point search radius r; Based on the estimated track feature point position and the candidate point search radius r, the neighborhood point cloud is searched, and z is used as the reference to select points with a height difference less than the threshold T Δz The maximum elevation point of the track is taken as a candidate track feature point; repeat steps 1e) and 1f) until the search for all track feature points of the current track is completed, the tracking is ended, and these candidate track feature points are connected in sequence to obtain the initial track line; A parallel track line acquisition module is used to obtain a parallel track line according to the obtained initial track line and the prior knowledge of track gauge; The buffer area generation module is used to generate buffer areas according to the initial track line and the parallel track line respectively; the specific implementation method is as follows; Along the direction of the track line, two buffer feature points are generated on the left and right sides of the track line at a distance d from the track line, referred to as buffer points; the specific steps are: 3a) Select the feature points p1 and p2 in turn, with coordinates (x1, y1) and (x2, y2) respectively, and you can get the equation of the straight line where p1p2 is located, and calculate the slope k1 and intercept b1; 3b) At point p1, the equation of the line perpendicular to p1p2 has a slope of -1 / k1. Substituting the coordinates of point p1 into the equation, we can calculate the intercept b2. 3c) Let the buffer point to be determined be (x0, y0), then the buffer point satisfies the following equation: According to the above equation, two buffer feature point results can be calculated; 3d) Determine whether the generated buffer point is on the left or right side of the straight line p1p2: S=(x1-x0)×(y2-y0)-(y1-y0)×(x2-x0) (4) If S>0, the point (x0, y0) is on the left side of the straight line p1p2; if S<0, the point (x0, y0) is on the right side of the straight line p1p2; if S=0, the point (x0, y0) is on the straight line p1p2; 3e) After the buffer points corresponding to all the feature points of the track line are generated, the buffer points on the left are connected in sequence, and then the buffer points on the right are connected, and the generation of the buffer area is completed; The rail point cloud acquisition module is used to extract rail point clouds from the obtained buffer area, that is, to search for point clouds located in the buffer area, and mark point clouds whose heights meet the requirements of the initial track line height as rail point clouds; The track line extraction module is used to perform track line fitting processing on the obtained rail point cloud using a polynomial fitting algorithm, so as to obtain an accurate track line extraction result; the specific implementation method is as follows; First, the rail point cloud is used to perform polynomial fitting on the XOY plane to fit the rail point cloud p on a track line. k , whose three-dimensional coordinates are (x k ,y k ,z k ), k = 1, 2…, m, m is the number of rail point clouds, then the rail point cloud p k The following relationship is satisfied on the XOY plane: y k =a0+a1x k +…+a n x k n (6) Where: a0, a1, …, a n is the polynomial coefficient, n is the number of polynomial coefficients; Define variables X, a, and Y. The corresponding calculation formula is as follows: a=[a0,a1,…,a n ] T (8) Y=[y1,y2,…,y m ] T (9) Furthermore, the orbit point cloud fitting expression is as follows: Xa=Y (10) Substitute the coordinates of the rail point cloud obtained in step 4 into formula (10) to solve for a, and then obtain the polynomial coefficient a i , thus obtaining the mathematical expression of the orbit line; In order to obtain the distribution position of the orbit line in the height direction, the same method is used to construct the fitting polynomial of the orbit line in the XOZ plane. Xb=Z (11) In the formula, b=[b0,b1,…,b n ] T (12) Z=[z1,z2,…,z m ] T (13) After solving the polynomial coefficients using the same method, we get the projection cylinder of the orbit line about XOZ. By combining equations (10) and (11), we get the orbit line space curve.

Citation Information

Patent Citations

  • Subway tunnel rail surface line automatic identification method based on point cloud

    CN115035142A

  • Rail superelevation and longitudinal level measurement method based on vehicle-mounted mobile laser point clouds

    WO2023168888A1