Method for acquiring point cloud data of railway contact line, storage medium and processor
Through the combination of a vehicle-mounted laser scanning system and a high-dimensional index tree data structure, the accuracy and efficiency problems of contact line point cloud extraction in traditional detection methods are solved, and high-precision contact line point cloud data acquisition is achieved.
Patent Information
- Application Number
- CN202310840594.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-07-10
AI Technical Summary
The traditional manual detection method used to detect contact line conductance height and pull-out value is time-consuming and has low accuracy, making it difficult to achieve high-precision contact line point cloud extraction.
A vehicle-mounted laser scanning system is used to obtain point cloud data, and through method segmentation based on elevation histogram thresholds, statistical filtering algorithm denoising, rasterization processing and RANSAC algorithm fitting, a high-dimensional index tree data structure is constructed to filter out contact line errors. Point cloud within range, optimizing point cloud data.
It improves the acquisition speed and accuracy of contact line point cloud data, saves time, and achieves high-precision contact line point cloud extraction.
Smart Images

Figure CN118735845A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit detection technology, and in particular to a method for acquiring point cloud data of a railway contact line, a storage medium and a processor. Background Art
[0002] Railway has developed rapidly with its advantages of large transportation volume, high speed and low transportation cost, and has become an extremely important mode of transportation. As the main framework of railway electrification projects, the contact network system plays the role of powering electric locomotives and is an important part of the railway system. The contact network pillars and contact wires are the support equipment and power supply equipment of the contact network system respectively. They are the key components of the contact network system and an important guarantee for the normal operation of the contact network system. The pantograph plays an extremely important role as a two-way transmission hub between the train and the contact network. In order to ensure the normal operation of the train, the pantograph and the contact wire need to maintain good contact at all times to achieve reliable current collection. In order to avoid "bow scraping" or "bow drilling", the contact wire conduction height and pull-out value need to be tested regularly to eliminate hidden dangers and keep the contact network in a good working condition. Therefore, achieving high-precision contact line point cloud extraction is the key to accurately calculate the contact wire conduction height and pull-out value; however, the traditional manual detection method is not only time-consuming, but also has low accuracy. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method for acquiring point cloud data of a railway contact line, a storage medium and a processor, so as to solve the technical problems existing in the above-mentioned prior art.
[0004] In order to achieve the above-mentioned object, an embodiment of the present invention provides a method for acquiring point cloud data of a railway contact line, comprising acquiring point cloud data of a railway contact line;
[0005] Processing the point cloud data of the railway contact network to obtain a point cloud data set of the contact line;
[0006] According to the point cloud data set of the contact line, a high-dimensional index tree data structure of the contact line point cloud is constructed, and a point cloud within the contact line error range is obtained based on the high-dimensional index tree data structure;
[0007] The point clouds within the contact line error range are screened, and the point clouds belonging to the contact line are added to the point cloud data set of the contact line, thereby optimizing the point cloud data of the contact line and obtaining the target point cloud data of the railway contact line.
[0008] Optionally, the obtaining of point cloud data of the railway contact network includes:
[0009] Acquire railway point cloud data from vehicle-mounted laser scanning systems;
[0010] The railway point cloud data is segmented by using a method based on elevation histogram threshold to obtain initial point cloud data of the railway contact network;
[0011] A statistical filtering algorithm is used to perform denoising on the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network.
[0012] Optionally, the method based on elevation histogram threshold is used to segment the railway point cloud data to obtain initial point cloud data of the railway contact network, including:
[0013] Dividing the railway point cloud data according to certain elevation intervals to obtain a point cloud quantity histogram based on elevation changes;
[0014] Determine the elevation segmentation threshold according to the elevation and density characteristics of the contact network point cloud and the rail point cloud and a predetermined point cloud quantity threshold;
[0015] The railway point cloud data is segmented according to the elevation segmentation threshold to obtain initial point cloud data of the railway contact network.
[0016] Optionally, the adopting a statistical filtering algorithm to perform denoising on the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network includes:
[0017] Constructing a high-dimensional index tree data structure of the initial point cloud data of the railway contact network;
[0018] Calculate the average distance from each laser foot point to the nearest multiple adjacent points and a first distance threshold, wherein the first distance threshold is the sum of the average point spacing and the standard deviation of the initial point cloud data of the railway contact network;
[0019] It is determined whether the average distance is greater than the first distance threshold. If so, the laser foot point is regarded as a noise point and is removed from the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network.
[0020] Optionally, the processing of the point cloud data of the railway contact network to obtain a point cloud data set of the contact line includes:
[0021] rasterizing the point cloud data of the railway contact network to obtain a connected area of the point cloud data of the railway contact line in the grid;
[0022] Traversing the connected area, calculating the average elevation of the point cloud data in the grid, and taking the average elevation as a threshold, determining whether the elevation of the point cloud data is greater than the threshold, and if so, treating it as non-contact line point cloud data and removing it, so as to obtain segmented contact line point cloud data;
[0023] Performing straight line fitting based on the RANSAC algorithm on the segmented contact line point cloud data to obtain a target fitting straight line;
[0024] The target fitting straight line is used to find the contact line point cloud connected to the column, and the contact line at the fracture position is completed to obtain the contact line point cloud data set.
[0025] Optionally, performing straight line fitting based on the RANSAC algorithm on the segmented contact line point cloud data to obtain a target fitting straight line includes:
[0026] Select two laser foot points from any segment of the contact line, and determine a straight line based on the two laser foot points;
[0027] Calculate the distance from any point in the point cloud of the contact line to the straight line respectively, and determine whether the distance is less than a second distance threshold. If so, regard the point whose distance from any point in the point cloud of the contact line to the straight line is less than the second distance threshold as a reliable point of the straight line.
[0028] The above process is repeated, and the parameters of the straight line and the number of reliable points determined each time are recorded, and the straight line with the largest number of reliable points is taken as the target fitting straight line.
[0029] Optionally, the rasterizing the point cloud data of the railway contact network to obtain a connected area of the point cloud data of the railway contact line in a grid includes:
[0030] Dividing the point cloud data of the railway contact network into the grid according to a predetermined step length, and recording the row and column corresponding to each laser foot point in the grid;
[0031] According to the elevation distribution characteristics of the column point cloud, the position of the column point cloud in the grid is determined, and the connected area of the grid is segmented with the column point cloud as a breakpoint to obtain a plurality of grid connected area sets;
[0032] According to the fact that the height difference of the grid where the contact line point cloud is located is greater than that of other non-contact line grids, the average height difference of the connected areas of multiple grids is calculated, and based on a preset height difference threshold, the connected area of the point cloud data of the contact line in the grid is determined, wherein the preset height difference threshold is determined based on the vertical distance between the contact line and the load-bearing cable.
[0033] Optionally, the determining the position of the column point cloud in the grid according to the elevation distribution characteristics of the column point cloud, and segmenting the connected area of the grid using the column point cloud as a breakpoint to obtain a plurality of grid connected area sets includes:
[0034] Traverse all grids and determine the maximum and minimum elevation values of the point clouds in all grids to obtain the height difference values of all grids;
[0035] Sort the height differences of all grids from large to small, take the maximum values in turn, and add the corresponding grid indexes to the initial grid set, find the corresponding eight-neighborhood grid height differences according to the grid index, regard the grids less than the preset height difference threshold as the grids where the point cloud of the column is located, and remove them from the initial grid set to obtain the target grid set;
[0036] Connectivity analysis is performed on the target grid set to obtain multiple grid connected area sets.
[0037] Optionally, the processing of the point cloud data of the railway contact network to obtain a point cloud data set of the contact line further includes:
[0038] According to the elevation segmentation threshold, the point clouds of the droppers and the catenary cables contained in the grid are removed, and the abnormal grids containing the point clouds of the droppers are found, and their index values are recorded;
[0039] According to the grid position relationship, determine the eight-neighborhood grid indexes corresponding to the abnormal grid, take out the non-empty grids as adjacent grids, and record the indexes of the adjacent grids;
[0040] Counting the maximum values of the elevation of the point cloud in the adjacent grid to form a maximum value set, and considering the laser foot points in the abnormal grid that are greater than the minimum value in the maximum value set as non-contact line points;
[0041] The point cloud data corresponding to the non-contact line points are eliminated to obtain a point cloud data set of the contact line.
[0042] Optionally, screening the point cloud within the contact line error range, adding the point cloud belonging to the contact line to the point cloud data set of the contact line, and then optimizing the point cloud data of the contact line to obtain the target point cloud data of the railway contact line includes:
[0043] Calculating the minimum distance between the point cloud within the contact line error range and the contact line point cloud respectively;
[0044] Determine whether the minimum distance is less than the second distance threshold. If so, determine that the point cloud within the contact line error range is the point cloud of the contact line, and add it to the point cloud data set of the contact line, thereby optimizing the point cloud data of the contact line and obtaining the target point cloud data of the railway contact line.
[0045] On the other hand, the present invention provides a computer-readable storage medium having instructions stored thereon, the instructions being used to execute the above-mentioned method for acquiring point cloud data of a railway contact line.
[0046] On the other hand, the present invention provides a processor for running a program, wherein the program, when being run, is used to execute the above-mentioned method for acquiring point cloud data of a railway contact line.
[0047] Through the above technical scheme, the acquired point cloud data of the contact network is processed to obtain a point cloud data set of the contact line, and based on the constructed high-dimensional index tree data structure of the contact line point cloud, the point cloud within the error range of the contact line is obtained, which saves more time. Moreover, by screening the point cloud within the error range of the contact line, the point cloud data of the contact line is optimized, and the target point cloud data of the railway contact line is obtained with higher accuracy.
[0048] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0050] Figure 1 It is a flow chart of an implementation method of a method for acquiring point cloud data of a railway contact line provided by an embodiment of the present invention;
[0051] Figure 2 An embodiment of the present invention provides a vehicle-mounted LiDAR point cloud data map;
[0052] Figure 3 is a schematic diagram of the position relationship of a contact line provided by an embodiment of the present invention;
[0053] Figure 4 is a point cloud quantity histogram of elevation changes provided by an embodiment of the present invention;
[0054] Figure 5 It is a schematic diagram of a kd-tree data structure of a contact network point cloud constructed according to an embodiment of the present invention;
[0055] Figure 6 is a grid schematic diagram provided by an embodiment of the present invention;
[0056] Figure 7 1 is a schematic diagram of the principle of a RANSAC algorithm provided by an embodiment of the present invention;
[0057] Figure 8ais a schematic diagram of a contact line point cloud extraction result provided by an embodiment of the present invention;
[0058] Figure 8b is a schematic diagram showing a contact line extraction result in an original point cloud provided by an embodiment of the present invention;
[0059] Fig. 9 It is a flowchart of an implementation method for acquiring point cloud data of a railway contact line provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0060] Railways have been rapidly developed in all countries of the world with their advantages of large transportation volume, high speed and low transportation cost, and have become an extremely important mode of transportation. As the main framework of railway electrification projects, the contact network system plays the role of powering electric locomotives and is an important part of the railway system. The contact network pillars and contact wires are the support equipment and power supply equipment of the contact network system respectively. They are the key components of the contact network system and an important guarantee for the normal operation of the contact network system. The pantograph plays an extremely important role as a two-way transmission hub between the train and the contact network. In order to ensure the normal operation of the train, the pantograph and the contact wire need to maintain good contact at all times to achieve reliable current collection. In order to avoid "bow scraping" or "bow drilling", the contact wire conduction height and pull-out value need to be tested regularly to eliminate hidden dangers and keep the contact network in a good working condition. Therefore, achieving high-precision contact line point cloud extraction is the key to accurately calculate the contact wire conduction height and pull-out value.
[0061] At present, the methods for extracting power lines in various scenes, including railway contact lines, based on 3D laser point clouds can be roughly divided into three categories according to the different features used: the first category is to extract the linear structure based on the overall power line laser point cloud using Hough transformation. The second category is to extract based on the comprehensive analysis of the geometric and distribution characteristics of different local ranges of the power line laser point cloud. The third category is to extract based on the statistical analysis of the elevation, density and other information of the power line laser point cloud. Studies have found that most of the existing studies are based on the direct extraction of linear structures based on point cloud data. This type of method requires statistics of multiple features on massive point cloud data, resulting in a large amount of calculation and low operating efficiency. In addition, this type of method is greatly affected by point cloud density and terrain changes, and is difficult to apply to contact line detection in complex railway scenes. Therefore, a safe and fast detection method is needed. With the rapid development of 3D laser scanning, the extraction of high-density 3D laser point cloud data containing texture and geometric information of railway contact network can provide data support for safe and fast detection.
[0062] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0063] See also Figure 1 As shown, it is a flowchart of a method for obtaining point cloud data of a railway contact line provided by an embodiment of the present invention, which specifically includes the following steps:
[0064] Step 100: Obtain point cloud data of the railway contact network.
[0065] Specifically, when executing step 100, the following steps may be specifically performed:
[0066] S1001: Acquire railway point cloud data from the vehicle-mounted laser scanning system.
[0067] In some embodiments, the acquired railway point cloud data is a LiDAR point cloud data of a heavy-duty railway trunk line, such as Figure 2 As shown in Figure 2, the total number of points in this dataset is 28,891,923, with a total length of about 280 m, including 10 types of objects such as contact network poles, contact wires, load-bearing cables, suspension strings, return wires, and rails. The location relationship of the contact wires can be found in Figure 2. Figure 3 shown.
[0068] S1002: Segmenting the railway point cloud data using a method based on elevation histogram threshold to obtain initial point cloud data of the railway contact network.
[0069] Specifically, the railway point cloud data is segmented using a method based on an elevation histogram threshold to obtain the initial point cloud data of the railway contact network, including dividing the railway point cloud data according to a certain elevation interval to obtain a point cloud quantity histogram based on elevation changes; determining an elevation segmentation threshold based on the elevation and density characteristics of the contact network point cloud and the rail point cloud and a predetermined point cloud quantity threshold; and segmenting the railway point cloud data according to the elevation segmentation threshold to obtain the initial point cloud data of the railway contact network.
[0070] In some implementations, the railway point cloud data is divided according to a certain elevation interval in the Z-axis direction to obtain a point cloud quantity histogram based on elevation changes, see Figure 4 As shown, according to the elevation and density characteristics of the contact network point cloud and the rail point cloud, a point cloud quantity threshold is set to obtain an elevation segmentation threshold, the original point cloud is segmented into the contact network point cloud and the rail point cloud, the stable change interval of the point cloud quantity in the point cloud quantity histogram is found, the point cloud quantity threshold N is estimated, and the first elevation interval with a point cloud quantity less than the threshold N is searched to the right from the peak value in the point cloud quantity histogram, and the starting elevation of the elevation interval is used as the elevation threshold. In this embodiment, the point cloud quantity threshold N=1000.
[0071] S1003: Using a statistical filtering algorithm to perform denoising on the initial point cloud data of the railway contact network to obtain point cloud data of the railway contact network.
[0072] Specifically, executing step S1003 may include: constructing a high-dimensional index tree data structure of the initial point cloud data of the railway contact network; calculating the average distance and a first distance threshold from each laser foot point to multiple adjacent points closest to it, wherein the first distance threshold is the sum of the average point spacing and the standard deviation of the initial point cloud data of the railway contact network; judging whether the average distance is greater than the first distance threshold, if so, the laser foot point is regarded as a noise point, and it is removed from the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network.
[0073] In some embodiments, a kd-tree data structure of a contact point cloud is constructed, see Figure 5 As shown, Figure 5 In the data structure, the point clouds with position coordinates (2,3), (5,4), (4,7), (8,1), (7,2) and (9,6) are considered as leaf nodes in the kd-tree data structure, the point clouds with position coordinates (2,4) and (2,2) are considered as intermediate nodes in the kd-tree data structure, and the point cloud with position coordinates (1,5) is the vertex in the kd-tree data structure. The number of nearest neighbor points K is set, for example, K = 20, and the K adjacent points of each laser foot point are found. The average distance d from each laser foot point to its nearest K points is calculated, and the first distance threshold T is calculated. d , determine the average distance d and the first distance threshold T d If d>T d , then the laser foot point is regarded as a noise point and removed from the contact network point cloud. All points are traversed to obtain the contact network point cloud after noise removal.
[0074] Step 101: Process the point cloud data of the railway contact network to obtain a point cloud data set of the contact line.
[0075] Specifically, when executing step 101, the following two methods can be used:
[0076] Method 1:
[0077] In one implementation, the execution of method 1 may refer to the following steps:
[0078] S1: performing rasterization processing on the point cloud data of the railway contact network to obtain the connected area of the point cloud data of the railway contact line in the grid;
[0079] Specifically, executing step S1 includes: dividing the point cloud data of the railway contact network into the grid according to a predetermined step size, and recording the row and column corresponding to each laser foot point in the grid; determining the position of the column point cloud in the grid according to the elevation distribution characteristics of the column point cloud, and dividing the connected area of the grid with the column point cloud as a breakpoint to obtain a plurality of grid connected area sets; according to the fact that the height difference of the grid where the contact line point cloud is located is greater than that of other non-contact line grids, calculating the average height difference of the connected areas of the plurality of grids, and determining the connected area of the point cloud data of the contact line in the grid according to a preset height difference threshold, wherein the preset height difference threshold is determined according to the vertical distance between the contact line and the load-bearing cable.
[0080] In some embodiments, all grids are traversed, the maximum elevation value and the minimum elevation value of the point cloud in the grid are found, the grid height difference values are calculated, the height difference values are sorted from large to small, the maximum values are taken in turn, and the corresponding grid indexes are added to a grid set, and the corresponding eight-neighborhood grid height difference is found according to the grid index. The grids that are less than a preset height difference threshold are considered to be the grids where the point cloud of the column is located, and they are shielded from the original grid set. The straight line is calculated according to the grid index of the column at the corresponding position on both sides of the track, and all grids passing through the straight line and adjacent to the straight line are found and shielded from the original grid set. The remaining grid sets are subjected to connectivity analysis to obtain a number of connected grid area sets.
[0081] In some embodiments, the denoised contact network point cloud is divided into specified grids according to a certain step size, see Figure 6 As shown, the rows and columns of the grid corresponding to each laser foot point are recorded. According to the elevation distribution characteristics of the column point cloud, the grid position where the column point cloud is located is found, and the grid connected area is divided using it as a breakpoint. Since the contact line, the suspension string and the load-bearing cable coincide in two-dimensional space, the height difference of the grid where the contact line point cloud is located is significantly greater than that of other grids. The average height difference of several grid connected areas obtained after segmentation is calculated, and according to the height difference threshold, the connected area set of the grid where the contact line point cloud is located is found. In this embodiment, the step size is set to 0.5m and the height difference threshold is set to 6m.
[0082] S2: traverse the connected area, calculate the average elevation of the point cloud data in the grid, and use the average elevation as a threshold, and determine whether the elevation of the point cloud data is greater than the threshold. If so, treat it as non-contact line point cloud data and remove it to obtain segmented contact line point cloud data;
[0083] In some embodiments, the point cloud data in the grid where the contact line point cloud is located is removed according to the elevation threshold. Figure 3The partial dropper and catenary point clouds shown in the figure are used to find the abnormal grid with the dropper through multiple difference calculations. According to the grid position relationship, the eight-neighborhood grid index corresponding to the abnormal grid is found, and the non-empty grid is taken as the adjacent grid, and the grid index is recorded. The maximum value of the point cloud elevation in the adjacent grid is counted, and the minimum value in the maximum value set is found. The laser foot points in the abnormal grid that are greater than this value are considered to be non-contact line points, which are removed to achieve segmented extraction of the contact line point cloud.
[0084] In some embodiments, finding abnormal grids with hanging strings through multiple difference calculations includes: calculating grid height differences, sorting them from large to small, and recording their index values, and performing difference calculations from top to bottom on the sorted height differences again to obtain a difference sequence; finding the maximum value of the difference sequence, and the index position of the difference sequence where the value is located is the grid height difference mutation position, that is, the grids from the starting position of the sequence to the maximum value index position are abnormal grids, and according to the calculated grid height differences, they are sorted from large to small, and their index values are recorded to find the index value corresponding to the abnormal grid.
[0085] S3: performing straight line fitting based on the RANSAC algorithm on the segmented contact line point cloud data to obtain a target fitting straight line;
[0086] Specifically, executing step S3 includes: selecting two laser foot points from any segment of the contact line, and determining a straight line based on the two laser foot points; respectively calculating the distance from any point in the point cloud of the segment of the contact line to the straight line, and judging whether the distance is less than a second distance threshold, and if so, considering the point whose distance from any point in the point cloud of the segment of the contact line to the straight line is less than the second distance threshold as a reliable point of the straight line; repeating the above process, and recording the parameters of the straight line and the number of reliable points determined each time, and taking the straight line with the largest number of reliable points as the target fitting straight line.
[0087] In some embodiments, the principle diagram of the RANSAC algorithm is shown in Figure 7 As shown in the figure, the points close to the fitting straight line ( Figure 7 The points far from the fitted line are outliers ( Figure 7 square dot in the middle).
[0088] In some embodiments, two laser foot points P1 (x1, y1, z1) and P2 (x2, y2, z2) greater than a given distance are randomly selected from any segment of the contact line, and the distance constraint is estimated by estimating the length of the contact line in the X direction; the equation of the straight line L is calculated based on the points P1 and P2, and the expression is:
[0089]
[0090] Calculate any point P i (xi ,y i ,z i ) to the straight line L i , whose expression is:
[0091]
[0092] Set the second distance threshold d T (Based on the contact line point cloud thickness and error estimation), if d i <d T , then the point is considered to be a reliable point of the line L and is recorded. The point cloud of the contact line is traversed to find all the reliable points of the line. Steps S511 to S514 are repeated m times, and the line parameters and the number of reliable points are recorded each time. The line equation with the largest number of reliable points is found to be the best fitting line. The calculation process of the number of iterations m is as follows:
[0093]
[0094] Among them, p is the probability of obtaining the optimal model after m iterations, w is the estimated value of the ratio of the target number of points to the total number of points, and n is the number of points required to construct the model.
[0095] Repeat the above steps k times, where k is the number of contact line segments, to obtain the best fitting straight line for each contact line point cloud data segment.
[0096] S4: using the target fitting straight line to find the contact line point cloud connected to the column, and completing the contact line at the fracture position to obtain a point cloud data set of the contact line.
[0097] In some implementations, all the fitted lines are traversed, and the grids of the column point cloud closest to the fitted line are found in turn. The column candidate points are taken from the grids of the column point cloud, and the distance from the candidate point to the best fitting line is calculated using formula (2). The second distance threshold d T Determine whether the candidate point is a contact line point.
[0098] Method 2:
[0099] In one implementation, the execution of mode 2 may refer to the following steps:
[0100] SA: removing the point clouds of the droppers and catenary cables contained in the grid according to the elevation segmentation threshold, finding the abnormal grids containing the point clouds of the droppers, and recording their index values;
[0101] SB: According to the grid position relationship, determine the eight-neighborhood grid indexes corresponding to the abnormal grid, take out the non-empty grids as adjacent grids, and record the indexes of the adjacent grids;
[0102] SC: Counting the maximum values of the elevation of the point cloud in the adjacent grid to form a maximum value set, and treating the laser foot points in the abnormal grid that are greater than the minimum value in the maximum value set as non-contact line points;
[0103] SD: Eliminate the point cloud data corresponding to the non-contact line points to obtain the point cloud data set of the contact line.
[0104] Step 102: construct a high-dimensional index tree data structure of the contact line point cloud according to the contact line point cloud data set, and obtain a point cloud within the contact line error range based on the high-dimensional index tree data structure.
[0105] In some embodiments, a kd-tree data structure of the contact line point cloud is established, and based on the remaining contact network point cloud set after the contact line is extracted, the point cloud within a certain interval in the Z direction of the contact line position is retrieved, and the minimum distance d to the contact line point cloud is calculated. min , the interval point cloud extraction range is the set Q{Pt{z min -0.04 <z<z max +0.04}}, where Pt is the remaining contact network point cloud set after contact line extraction, z min is the minimum elevation value of the currently extracted contact line point cloud, z max is the maximum elevation value of the currently extracted contact line point cloud. Traverse all points in the interval. If d min <d T , then the point is considered to be a contact line point.
[0106] Step 103: Screen the point clouds within the contact line error range, add the point clouds belonging to the contact line to the point cloud data set of the contact line, and then optimize the point cloud data of the contact line to obtain the target point cloud data of the railway contact line.
[0107] Specifically, when executing step 103, the following steps may be specifically performed:
[0108] S1031: Calculate the minimum distance between the point cloud within the contact line error range and the contact line point cloud respectively.
[0109] S1032: Determine whether the minimum distance is less than the second distance threshold. If so, determine that the point cloud within the contact line error range is the point cloud of the contact line, and add it to the point cloud data set of the contact line, thereby optimizing the point cloud data of the contact line and obtaining the target point cloud data of the railway contact line.
[0110] In some implementations, the acquisition method can be implemented by programming on a CPU dual-core 3.30GHz, memory 4GB, Windows 10 Ultimate system using MATLAB 7.11.0 platform, see Figure 8aAs shown in FIG. 1 , a schematic diagram of a contact line point cloud extraction result provided in an embodiment of the present application is shown. Figure 8a It can be clearly seen that the extracted contact lines are distributed in a zigzag shape, see Figure 8b FIG. 1 is a schematic diagram showing a contact line extraction result provided in an embodiment of the present application in an original point cloud, wherein the orange part represents the contact line ( Figure 8b The colors in the figure are only used for display and have no practical effect. Figure 8b It can be seen that the contact line point cloud extraction based on visual judgment has a good effect. In order to more effectively prove the effectiveness of the method of the present invention, the contact line point cloud extraction results of the present invention are compared with the manual extraction results based on TerraSolid. Through quantitative analysis, in this example, the precision of the contact line point cloud extraction is 96.09%, and the recall rate is 99.69%, indicating that the method of the present invention can basically achieve the complete extraction of the contact line point cloud. In addition, to further prove the universality of the method of the present invention, contact line point cloud extraction is performed on three groups of railway point cloud data with more complex scenes. The experimental results show that the precision and recall rates of the contact line point cloud extraction are both above 95%, proving that the application of the method of the present invention in relevant scenarios has good robustness.
[0111] In some embodiments, see Fig. 9 FIG. 1 is a flowchart of a method for acquiring point cloud data of a railway contact line provided by another embodiment of the present invention, which specifically includes the following steps:
[0112] Step 900: Obtain railway point cloud data based on vehicle-mounted LiDAR, and use a method based on elevation histogram threshold to segment the original point cloud data into track point cloud and contact network point cloud.
[0113] Step 901: Use a statistical filtering algorithm to perform point cloud denoising on the contact network point cloud obtained by segmentation to obtain a contact network point cloud after noise removal.
[0114] Step 902: Process the contact network point cloud data after noise removal based on the grid data structure to obtain a connected area set of the grid where the contact line point cloud is located.
[0115] Step 903: Using the contact line point cloud features and their positional relationship in the grid, non-contact line point clouds in the grid are eliminated to achieve segmented extraction of the contact line point cloud.
[0116] Step 904: Use the RANSAC method to perform straight line fitting on the segmented contact line point clouds in sequence, find the contact line part connected to the column according to the straight line equation, and complete the contact line point cloud data at the fracture position.
[0117] Step 905: construct a kd-tree data structure of the contact line point cloud, combine the thickness of the contact line point cloud itself, and according to the nearest distance, retrieve the contact line laser foot points lost in the straight line fitting process to optimize the contact line point cloud extraction result.
[0118] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, and the instructions are used to execute the method for acquiring point cloud data of a railway contact line described in the above embodiment.
[0119] On the other hand, an embodiment of the present invention further provides a processor for running a program, wherein the program, when being run, is used to execute the method for acquiring point cloud data of a railway contact line described in the above embodiment.
[0120] The present invention firstly segments the original point cloud by using the elevation histogram threshold to obtain the track point cloud and the contact network point cloud respectively, and uses the statistical filtering algorithm to remove the noise of the contact network point cloud; secondly, the denoised contact network point cloud is rasterized, and the disordered contact network point cloud is converted into a grid structure, and the grid where the lowest point of the column is located is used as the segmentation point, and the candidate grid of the contact line point cloud is found by using the grid connectivity and the grid characteristics where the contact line point cloud is located; thirdly, based on the positional relationship between the contact line point cloud and the load-bearing cable and the suspension string, the non-contact line point cloud in the candidate grid is filtered out to obtain the segmented contact line point cloud with the column position as the segmentation point; then, the random sampling consistency (RANSAC) method is used to perform straight line fitting on the extracted segmented contact line point cloud respectively, and the contact line laser foot point connected to the column is found according to the straight line equation; finally, the kd-tree data structure of the contact line point cloud is established, and the contact line laser foot point lost in the straight line fitting process is retrieved according to the nearest neighbor distance and the thickness of the contact line point cloud itself, so as to obtain the contact line point cloud optimization extraction result.
[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 processor, 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.
[0123] 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 comprising 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.
[0124] 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 The steps for the functions specified in one or more boxes.
[0125] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0126] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0127] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0128] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0129] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for acquiring point cloud data of a railway contact line, characterized in that: include: Obtain point cloud data of railway contact network; Processing the point cloud data of the railway contact network to obtain a point cloud data set of the contact line; According to the point cloud data set of the contact line, a high-dimensional index tree data structure of the contact line point cloud is constructed, and a point cloud within the contact line error range is obtained based on the high-dimensional index tree data structure; The point clouds within the contact line error range are screened, and the point clouds belonging to the contact line are added to the point cloud data set of the contact line, thereby optimizing the point cloud data of the contact line and obtaining the target point cloud data of the railway contact line.
2. The acquisition method according to claim 1, characterized in that: The step of obtaining the point cloud data of the railway contact network includes: Acquire railway point cloud data from vehicle-mounted laser scanning systems; The railway point cloud data is segmented by using a method based on elevation histogram threshold to obtain initial point cloud data of the railway contact network; A statistical filtering algorithm is used to perform denoising on the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network.
3. The acquisition method according to claim 2, characterized in that: The method based on the elevation histogram threshold is used to segment the railway point cloud data to obtain the initial point cloud data of the railway contact network, including: Dividing the railway point cloud data according to certain elevation intervals to obtain a point cloud quantity histogram based on elevation changes; Determine the elevation segmentation threshold according to the elevation and density characteristics of the contact network point cloud and the rail point cloud and a predetermined point cloud quantity threshold; The railway point cloud data is segmented according to the elevation segmentation threshold to obtain initial point cloud data of the railway contact network.
4. The acquisition method according to claim 2, characterized in that: The method of using a statistical filtering algorithm to perform denoising on the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network includes: Constructing a high-dimensional index tree data structure of the initial point cloud data of the railway contact network; Calculate the average distance from each laser foot point to the nearest multiple adjacent points and a first distance threshold, wherein the first distance threshold is the sum of the average point spacing and the standard deviation of the initial point cloud data of the railway contact network; It is determined whether the average distance is greater than the first distance threshold. If so, the laser foot point is regarded as a noise point and is removed from the initial point cloud data of the railway contact network to obtain the point cloud data of the railway contact network.
5. The acquisition method according to claim 2, characterized in that: The step of processing the point cloud data of the railway contact network to obtain a point cloud data set of the contact line includes: rasterizing the point cloud data of the railway contact network to obtain a connected area of the point cloud data of the railway contact line in the grid; Traversing the connected area, calculating the average elevation of the point cloud data in the grid, and taking the average elevation as a threshold, determining whether the elevation of the point cloud data is greater than the threshold, and if so, treating it as non-contact line point cloud data and removing it, so as to obtain segmented contact line point cloud data; Performing straight line fitting based on the RANSAC algorithm on the segmented contact line point cloud data to obtain a target fitting straight line; The target fitting straight line is used to find the contact line point cloud connected to the column, and the contact line at the fracture position is completed to obtain the point cloud data set of the contact line.
6. The acquisition method according to claim 5, characterized in that: The step of performing straight line fitting based on the RANSAC algorithm on the segmented contact line point cloud data to obtain a target fitting straight line includes: Select two laser foot points from any segment of the contact line, and determine a straight line based on the two laser foot points; Calculate the distance from any point in the point cloud of the contact line to the straight line respectively, and determine whether the distance is less than a second distance threshold. If so, regard the point whose distance from any point in the point cloud of the contact line to the straight line is less than the second distance threshold as a reliable point of the straight line. The above process is repeated, and the parameters of the straight line and the number of reliable points determined each time are recorded, and the straight line with the largest number of reliable points is taken as the target fitting straight line.
7. The acquisition method according to claim 5, characterized in that: The step of rasterizing the point cloud data of the railway contact network to obtain a connected area of the point cloud data of the railway contact line in a grid includes: Dividing the point cloud data of the railway contact network into the grid according to a predetermined step length, and recording the row and column corresponding to each laser foot point in the grid; According to the elevation distribution characteristics of the column point cloud, the position of the column point cloud in the grid is determined, and the connected area of the grid is segmented with the column point cloud as a breakpoint to obtain a plurality of grid connected area sets; According to the fact that the height difference of the grid where the contact line point cloud is located is greater than that of other non-contact line grids, the average height difference of the connected areas of multiple grids is calculated, and based on a preset height difference threshold, the connected area of the point cloud data of the contact line in the grid is determined, wherein the preset height difference threshold is determined based on the vertical distance between the contact line and the load-bearing cable.
8. The acquisition method according to claim 7, characterized in that: The method of determining the position of the column point cloud in the grid according to the elevation distribution characteristics of the column point cloud, and segmenting the connected area of the grid using the column point cloud as a breakpoint to obtain a plurality of grid connected area sets includes: Traverse all grids and determine the maximum and minimum elevation values of the point clouds in all grids to obtain the height difference values of all grids; Sort the height differences of all grids from large to small, take the maximum values in turn, and add the corresponding grid indexes to the initial grid set, find the corresponding eight-neighborhood grid height differences according to the grid index, regard the grids less than the preset height difference threshold as the grids where the point cloud of the column is located, and remove them from the initial grid set to obtain the target grid set; Connectivity analysis is performed on the target grid set to obtain multiple grid connected area sets.
9. The acquisition method according to claim 5, characterized in that: The step of processing the point cloud data of the railway contact network to obtain a point cloud data set of the contact line further includes: According to the elevation segmentation threshold, the point clouds of the droppers and the catenary cables contained in the grid are removed, and the abnormal grids containing the point clouds of the droppers are found, and their index values are recorded; According to the grid position relationship, determine the eight-neighborhood grid indexes corresponding to the abnormal grid, take out the non-empty grids as adjacent grids, and record the indexes of the adjacent grids; Counting the maximum values of the elevation of the point cloud in the adjacent grid to form a maximum value set, and considering the laser foot points in the abnormal grid that are greater than the minimum value in the maximum value set as non-contact line points; The point cloud data corresponding to the non-contact line points are eliminated to obtain a point cloud data set of the contact line.
10. The acquisition method according to claim 6, characterized in that: The step of screening the point cloud within the contact line error range, adding the point cloud belonging to the contact line to the point cloud data set of the contact line, and then optimizing the point cloud data of the contact line to obtain the target point cloud data of the railway contact line includes: Calculating the minimum distance between the point cloud within the contact line error range and the contact line point cloud respectively; Determine whether the minimum distance is less than the second distance threshold. If so, determine that the point cloud within the contact line error range is the point cloud of the contact line, and add it to the point cloud data set of the contact line, thereby optimizing the point cloud data of the contact line and obtaining the target point cloud data of the railway contact line.
11. A computer-readable storage medium having instructions stored thereon, the instructions being used to execute the method for acquiring point cloud data of a railway contact line as claimed in any one of claims 1 to 10.
12. A processor, characterized in that: Used to run a program, wherein the program, when run, is used to execute the method for acquiring point cloud data of a railway contact line as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Laser-point cloud based method for extracting mountainous road by use of three-dimensional characteristic description model
CN106022259A
Non-contact contact network parameter detection method based on three-dimensional point cloud data
CN108564575A
Three-dimensional point cloud segmentation-based overhead contact system locator slope detection method
CN108921164A
Railway contact network extraction and classification method based on vehicle-mounted LiDAR
CN112529044A
Contact network height guide and pull-out value automatic detection method based on vehicle-mounted mobile laser point cloud
CN113870123A
