Point cloud data filtering method, electronic equipment and readable storage medium

By calculating the characteristic parameters of point cloud data and using the filtering parameter prediction model, combined with terrain dimensionality reduction and swarm intelligence algorithms, the problem of low filtering accuracy of point cloud data is solved and efficient and accurate point cloud data filtering effects are achieved.

CN118628508APending Publication Date: 2024-09-10丰图科技(深圳)有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310242583.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the separation accuracy of ground points and non-ground points in point cloud data filtering is poor, resulting in poor filtering effect of point cloud data.

Method used

By obtaining the point cloud data to be filtered, calculating its characteristic parameters, and using the filter parameter prediction model to filter the point cloud data according to the predicted target filter parameters, the filtering accuracy is improved. This method includes terrain dimensionality reduction on point cloud data and the use of swarm intelligence algorithms or the rule of thirds to determine filtering parameters to ensure the optimization of the filtering effect.

Benefits of technology

It significantly improves the accuracy and efficiency of point cloud data filtering, reduces terrain division time, ensures that filtered data is closer to standard point cloud data, and reduces computing resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628508A
    Figure CN118628508A
Patent Text Reader

Abstract

The invention is suitable for the technical field of data processing, and provides a point cloud data filtering method, electronic equipment and a readable storage medium, and the method comprises the steps: obtaining to-be-filtered first point cloud data; processing the first point cloud data to obtain a corresponding first target filtering parameter; and filtering the first point cloud data based on the first target filtering parameter to obtain filtered second point cloud data, the second point cloud data being point cloud data of ground points or point cloud data of non-ground points. The filtering precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular relates to a point cloud data filtering method, an electronic device, and a readable storage medium. Background Art

[0002] In actual surveying and mapping production activities, in order to obtain high-precision digital elevation models (DEM) and / or contour maps of the target area from discrete point cloud data, it is necessary to separate the ground points and non-ground points in the discrete point cloud data, that is, to separate the non-ground points from the laser foot points falling on the surface. This is point cloud data filtering.

[0003] In practical applications, when filtering point cloud data, some ground points will be detected as non-ground points or some non-ground points will be detected as ground points, which makes the point cloud data filtering accuracy poor.

[0004] Therefore, a solution with higher point cloud data filtering accuracy is needed in practical applications. Summary of the invention

[0005] The embodiments of the present application provide a point cloud data filtering method, an electronic device, and a readable storage medium, which can solve the problem of poor point cloud data filtering accuracy.

[0006] In a first aspect, an embodiment of the present application provides a point cloud data filtering method, comprising:

[0007] Acquire first point cloud data to be filtered;

[0008] Processing the first point cloud data to obtain corresponding first target filtering parameters;

[0009] The first point cloud data is filtered based on the first target filtering parameter to obtain filtered second point cloud data, where the second point cloud data is point cloud data of ground points or point cloud data of non-ground points.

[0010] In the embodiment of the present application, the point cloud data to be filtered can be processed to obtain target filtering parameters applicable to the point cloud data, and then the point cloud data can be filtered according to the target filtering parameters. Since when filtering the point cloud data, specific filtering parameters are not used, but predicted target filtering parameters applicable to the point cloud data are used, this can improve the filtering effect, that is, improve the filtering accuracy.

[0011] In a first possible implementation manner of the first aspect, obtaining first point cloud data to be filtered includes:

[0012] Obtaining the third point cloud data to be segmented;

[0013] The third point cloud data is segmented to obtain the first point cloud data.

[0014] The embodiment of the present application performs terrain dimensionality reduction on the third point cloud data to obtain the first point cloud data, thereby improving filtering accuracy.

[0015] Based on the first possible implementation manner of the first aspect, as a second possible implementation manner of the first aspect, segmenting the third point cloud data to obtain the first point cloud data includes:

[0016] Acquire a segmentation size for segmenting the third point cloud data;

[0017] The third point cloud data is segmented based on the segmentation size to obtain the first point cloud data with a data size less than or equal to the segmentation size.

[0018] The embodiment of the present application automatically divides the terrain of the third point cloud data by a computer, which greatly reduces the time spent on dividing the terrain and improves filtering efficiency.

[0019] Based on the first possible implementation manner of the first aspect, as a third possible implementation manner of the first aspect, segmenting the third point cloud data to obtain the first point cloud data includes:

[0020] A segmentation instruction input by a user is received, and the third point cloud data is segmented based on the segmentation instruction to obtain the first point cloud data.

[0021] The embodiment of the present application divides the terrain according to the elevation difference, and the difference in terrain is mainly reflected in the elevation difference. Therefore, it is easier to obtain the first point cloud data of a single terrain by dividing the terrain by the elevation difference, thereby improving the filtering accuracy.

[0022] In a fourth possible implementation manner of the first aspect, processing the first point cloud data to obtain corresponding first target filtering parameters includes:

[0023] Calculating a first characteristic parameter corresponding to the first point cloud data, and inputting the first characteristic parameter into a filtering parameter prediction model to obtain a first target filtering parameter output by the filtering parameter prediction model;

[0024] The filtering parameter prediction model is obtained by training based on a filtering training data set, and obtaining the filtering training data set includes:

[0025] Obtaining a plurality of fourth point cloud data for training;

[0026] Obtaining second target filtering parameters corresponding to each of the fourth point cloud data;

[0027] Taking each of the fourth point cloud data and its corresponding second target filtering parameter as the filtering training data set;

[0028] Wherein, in the operation of obtaining the second target filtering parameters respectively corresponding to each of the fourth point cloud data, any of the fourth point cloud data is used as the target point cloud data, and the operation on the target point cloud data includes:

[0029] Generate a preset number of initial filtering parameters; each of the initial filtering parameters is within a preset value range;

[0030] The target point cloud data are filtered respectively by using the initial filtering parameters to obtain the preset number of actual point cloud data after filtering;

[0031] Acquire standard point cloud data corresponding to the target point cloud data, and respectively calculate the error between each of the actual point cloud data and the standard point cloud data to obtain error data;

[0032] Based on the error data, the second target filtering parameter corresponding to the target point cloud data is determined.

[0033] In the embodiment of the present application, the error accurately reflects the gap between the actual point cloud data and the standard point cloud data. Ideally, the filtering effect of the filtering parameter prediction model obtained by using the filtering parameter corresponding to the standard point cloud data as the second target filtering parameter is the best. However, the filtering parameter corresponding to the standard point cloud data is unknown. Therefore, after understanding the gap through the error, it provides a basis for reducing the error for the subsequent processing process, thereby improving the filtering effect of the filtering parameter prediction model.

[0034] Based on the fourth possible implementation manner of the first aspect, as a fifth possible implementation manner of the first aspect, after obtaining the error data, the method further includes:

[0035] When the preset cycle condition is met, at least two error data are selected from each of the error data in a selection order from small to large;

[0036] Selecting a left boundary and a right boundary from the initial filtering parameters corresponding to the at least two error data;

[0037] The upper limit value and the lower limit value of the preset numerical interval are updated based on the left boundary and the right boundary, and the step of generating a preset number of initial filtering parameters is returned.

[0038] When the embodiment of the present application obtains the second target filtering parameters through the swarm intelligence algorithm, more initial filtering parameters can be generated at one time, which makes the second target filtering parameters obtained more accurate after multiple rounds of cycles.

[0039] Based on the fourth possible implementation manner of the first aspect, as a sixth possible implementation manner of the first aspect, after obtaining the error data, the method further includes:

[0040] When the preset loop condition is met, the boundary of the preset numerical interval is updated based on the initial filtering parameter corresponding to the maximum error data in each error data, an updated preset numerical interval is obtained, and the step of generating a preset number of initial filtering parameters is returned.

[0041] The logic of obtaining the second target filtering parameter by the method of three divisions in the embodiment of the present application is simple and consumes less computing resources.

[0042] Based on the fifth possible implementation manner of the first aspect or the sixth possible implementation manner of the first aspect, as a seventh possible implementation manner of the first aspect, the error data is a root mean square error, and the root mean square error Z RMSE Calculated by the following formula:

[0043]

[0044] Wherein, N is the number of points in the actual point cloud data or the number of points in the standard point cloud data; Z S,i is the height value of the i-th point in the actual point cloud data; Z B,i is the height value of the i-th point in the standard point cloud data.

[0045] For example, the error data is the non-root mean square error, the non-root mean square error Z NRMSE Calculated by the following formula:

[0046]

[0047] Wherein, N is the number of points in the actual point cloud data or the number of points in the standard point cloud data; Z S,i is the height value of the i-th point in the actual point cloud data; Z B,i is the height value of the i-th point in the standard point cloud data.

[0048] In this embodiment of the present application, the root mean square error Z RMSE and the non-RMS error Z NRMSE Both can determine the second target filter parameters, the difference is that the former reflects the average error, while the latter reflects the error sum. Therefore, the former can more clearly reflect the gap between the actual point cloud data and the standard point cloud data, while the latter cannot clearly reflect the gap between the actual point cloud data and the standard point cloud data. However, since there is no need to calculate the average value, the calculation process will be slightly faster than the latter.

[0049] In an eighth possible implementation manner of the first aspect, the method further includes:

[0050] Obtaining adjusted second point cloud data;

[0051] Update the filtering training data set based on the adjusted second point cloud data to obtain an updated filtering training data set;

[0052] Based on the updated filter training data set, a new filter parameter prediction model is retrained to improve the filtering accuracy.

[0053] The embodiment of the present application enriches the filter training data set through the continuous accumulation of manual verification (ie, adjustment) data, and iteratively updates the filter parameter prediction model, thereby improving the filtering accuracy of the filter parameter prediction model.

[0054] In a second aspect, an embodiment of the present application provides a point cloud data filtering device, comprising:

[0055] A first acquisition module, used to acquire first point cloud data to be filtered;

[0056] A processing module, used for processing the first point cloud data to obtain corresponding first target filtering parameters;

[0057] A filtering module is used to filter the first point cloud data based on the first target filtering parameter to obtain filtered second point cloud data, where the second point cloud data is point cloud data of ground points or point cloud data of non-ground points.

[0058] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the point cloud data filtering method as described in any one of the first aspects above is implemented.

[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the point cloud data filtering method as described in any one of the first aspects above.

[0060] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the point cloud data filtering method described in any one of the first aspects above.

[0061] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0063] Figure 1 It is a schematic diagram of the server hardware structure provided in the embodiment of the present application;

[0064] Figure 2 It is a flow chart of a point cloud data filtering method provided in an embodiment of the present application;

[0065] Figure 3 It is a schematic diagram of the implementation principle of the rule of three involved in the embodiment of the present application;

[0066] Figure 4 It is a schematic diagram of a scene of the point cloud data segmentation process of the point cloud data filtering method provided in an embodiment of the present application;

[0067] Figure 5 is another schematic diagram of a point cloud data segmentation process of the point cloud data filtering method provided in an embodiment of the present application;

[0068] Figure 6 is another flow chart of the point cloud data filtering method provided in an embodiment of the present application;

[0069] Figure 7 It is a structural schematic diagram of a point cloud data filtering device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0071] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or suggesting relative importance. It should also be understood that although the terms "first", "second", etc. are used to describe various elements in some embodiments of the present application in the text, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first table can be named as the second table, and similarly, the second table can be named as the first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.

[0072] The point cloud data filtering method provided in the embodiment of the present application can be applied to electronic devices such as servers, mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of electronic devices.

[0073] Take the electronic device as a server as an example. Figure 1 Schematic diagram of the structure of a server provided by an embodiment of the present application. Figure 1 As shown, the server 1 of this embodiment includes: at least one processor 10 ( Figure 1 Only one is shown in the figure), a memory 11, and a computer program 12 that can be run on the processor 10 is stored in the memory 11. When the processor 10 executes the computer program 12, the steps in the above-mentioned point cloud data filtering method embodiments are implemented, such as Figure 2 Alternatively, when the processor 10 executes the computer program 12, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 7 The functions of modules 71 to 73 are shown.

[0074] The server may include, but is not limited to, a processor 10 and a memory 11. Those skilled in the art will appreciate that Figure 1 It is only an example of server 1 and does not constitute a limitation of server 1. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the server may also include an input sending device, a network access device, a bus, etc.

[0075] The processor 10 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0076] In some embodiments, the memory 11 may be an internal storage unit of the server 1, such as a hard disk or memory of the server 1. The memory 11 may also be an external storage device of the server 1, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the server 1. The memory 11 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program 12. The memory 11 may also be used to temporarily store data that has been sent or is to be sent.

[0077] In order to better understand the embodiments of the present application, the embodiments of the present application are briefly described below:

[0078] In addition to generating DEM and contour maps, point cloud filtering also includes other application requirements, such as the extraction of target objects (such as buildings, trees, power lines, roads, etc.) after point cloud data filtering. Before extracting the target objects, the process of separating all ground points and non-ground points through point cloud filtering is very critical. How to obtain accurate ground object information to reduce interference in subsequent ground object classification work has important research value in data processing work. In order to obtain accurate ground object information, it is particularly important to improve filtering accuracy.

[0079] In practical applications, the inventors have found that when filtering point cloud data through a ground point extraction algorithm, specific filtering parameters are used for filtering, and for different point cloud data, the terrain may be different, and the terrain may be a single terrain or a complex terrain. For example, the terrain may be a slope terrain that is fully covered by objects or a terrain with large buildings, or a complex terrain including a slope terrain that is fully covered by objects and a terrain with large buildings. For point cloud data of different terrains, since specific filtering parameters cannot be applied to various terrains, this results in poor filtering effects when filtering point cloud data of different terrains through specific filtering parameters. In practical applications, before filtering the point cloud data, the optimal filtering parameters are not obtained for the terrain of the current point cloud data, but the input point cloud data is directly filtered through specific filtering parameters.

[0080] Taking the slope terrain with full coverage of ground objects as an example, some small undulations in the slope terrain covered by vegetation and other ground objects (especially low ground objects) may cause confusion between ground points and non-ground points. Specifically, selecting loose (large value) filtering parameters may cause some ground objects to be detected as ground points, while conservative (small value) filtering parameters may result in failure to detect the complete terrain.

[0081] For example, for point cloud data of slope terrain fully covered by ground objects, the optimal filtering parameter is 0.1. At this time, the closer the specific filtering parameter is to 0.1, the better the filtering effect. And the greater the specific filtering parameter is than 0.1, the more likely the ground object is detected as a ground point; the smaller the specific filtering parameter is than 0.1, the less likely it is that the complete terrain cannot be detected. Assuming that the specific filtering parameter is 0.2, protrusions below 0.2 meters are classified as ground points, and protrusions above 0.2 meters are classified as non-ground points. This will cause low ground objects below 0.2 meters to be mistakenly classified as ground, resulting in low filtering accuracy.

[0082] Among them, ground point extraction algorithms include Progressive TIN Densification (PTD), Cloth Simulation Filter (CSF), etc.

[0083] Therefore, in practical applications, filtering point cloud data of different terrains by using specific filtering parameters will result in poor filtering effects on point cloud data of some terrains.

[0084] In order to improve the filtering accuracy of point cloud data, in an embodiment of the present application, the point cloud data to be filtered can be processed to obtain target filtering parameters applicable to the point cloud data, and then the point cloud data can be filtered according to the target filtering parameters.

[0085] Since when filtering the point cloud data, instead of using specific filtering parameters, predicted target filtering parameters suitable for the point cloud data are used, this can improve the filtering effect, that is, improve the filtering accuracy.

[0086] Figure 2 A schematic flow chart of the point cloud data filtering method provided in the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned server 1.

[0087] S201, obtaining first point cloud data to be filtered.

[0088] The first point cloud data may be provided by a laser detection and ranging (Light Detection and Ranging, LiDAR) system or other readable storage medium storing point cloud data, that is, the first point cloud data to be filtered provided by the laser detection and ranging system or other readable storage medium storing point cloud data is obtained.

[0089] S202: Process the first point cloud data to obtain corresponding first target filtering parameters.

[0090] Processing the first point cloud data may be calculating a first characteristic parameter corresponding to the first point cloud data, and inputting the first characteristic parameter into a filter parameter prediction model, thereby predicting a corresponding first target filter parameter. Processing the first point cloud data may also be obtaining a height difference of the first point cloud data, and matching the corresponding filter parameter through a mapping relationship between the height difference and the filter parameter.

[0091] The following is a detailed description of the process of obtaining the corresponding first target filter parameters through the filter parameter prediction model:

[0092] The characteristic parameters include at least slope, point density, and elevation difference. Among them, the slope is the ratio of the elevation difference to the horizontal distance, the point density is the number of points in a unit volume, and the elevation difference is the difference between the lowest value and the highest value. It can be understood that the elevation difference is a special elevation difference. Among them, the first characteristic parameter and the second characteristic parameter in the embodiment of the present application are only used to distinguish the characteristic parameters corresponding to the description of different point cloud data, and the attributes included in each characteristic parameter (that is, at least including slope, point density, and elevation difference) are the same.

[0093] The filter parameter prediction model can predict the first target filter parameter that best matches the first characteristic parameter. This is because each fourth point cloud data used for training corresponds to a tag information (second target filter parameter). To predict the first target filter parameter through the filter parameter prediction model, in fact, the first characteristic parameter corresponding to the first point cloud data is first classified, that is, the second characteristic parameter corresponding to the fourth point cloud data that best matches it is found, and then the second target filter parameter corresponding to the fourth point cloud data that best matches it is used as the first target filter parameter corresponding to the first point cloud data. Among them, the fourth point cloud data is also provided by a laser detection and ranging system or other readable storage medium storing point cloud data.

[0094] It can be understood that since each fourth point cloud data used for training corresponds to a label information, the filter parameter prediction model can predict different results for different inputs, that is, after different first feature parameters are input into the filter parameter prediction model, different first target filter parameters suitable for the corresponding first point cloud data can be obtained.

[0095] The process of training the model to be trained based on the filter training data set is the process of finding the fourth point cloud data that best matches the first point cloud data. It should be noted that after the model is trained, the process of predicting the first target filter parameter through the first point cloud data in the filter training data set is required, and this process can be called the test process. Specifically, the filter training data set can be divided into two parts, one for training and the other for testing. Among them, the proportion of the training part and the test part in the filter training data set can be 70%, 30%, 80%, 20%, and 75%, 25%, etc. After training the model to be trained through the filter training data set of the training part, an updated model to be trained that meets the model training end condition is obtained, and the updated model to be trained is tested through the filter training data set of the test part. If the test passes, the filter parameter prediction model is obtained; if the test fails, the model to be trained is retrained. Among them, the end conditions of model training include the number of training times reaching the preset training times threshold, model convergence, etc.

[0096] Among them, the model to be trained can be constructed through algorithms such as Support Vector Machine (SVM), Adaptive Boosting (Adaboost), and Gradient Boosting Decision Tree (GBDT).

[0097] S203, filtering the first point cloud data based on the first target filtering parameter to obtain filtered second point cloud data, where the second point cloud data is point cloud data of ground points or point cloud data of non-ground points.

[0098] By filtering the first point cloud data using the first target filtering parameter applicable to the first point cloud data, the filtering accuracy can be improved, that is, the accuracy of the second point cloud data can be improved, that is, the second point cloud data can be closer to the standard point cloud data (no noise). The standard point cloud data can be composed of non-ground points manually selected from the fourth point cloud data.

[0099] It should be noted that, based on the known plurality of fourth point cloud data and their corresponding filtering parameters, the filtering parameters are predicted by a filtering parameter prediction model, so that the accuracy of the filtering parameters can be improved, and the efficiency of obtaining the filtering parameters can be improved.

[0100] It can be understood that the embodiment of the present application utilizes the characteristic that the terrains of different point cloud data are different. The first target filtering parameter is predicted for the first point cloud data through the filtering parameter prediction model. The first target filtering parameter is the optimal filtering parameter for the first point cloud data. Then, the first point cloud data is filtered through the optimal filtering parameter, and naturally the second point cloud data with good filtering effect can be obtained, which improves the filtering accuracy.

[0101] It should be noted that before training the model to be trained by filtering the training data set, it is necessary to first obtain a plurality of fourth point cloud data for training, and use the plurality of fourth point cloud data and their corresponding second target filtering parameters together as the filtering training data set. In the operation of obtaining the second target filtering parameters corresponding to each fourth point cloud data, any fourth point cloud data is used as the target point cloud data.

[0102] The operation on the target point cloud data can be performed based on the trichotomy or swarm intelligence algorithm. Specifically, the second target filter parameter is limited to the preset numerical range by utilizing the principle that the filter parameter fluctuates within the preset numerical range. The preset numerical range can be determined according to the ground point extraction algorithm used during filtering. For example, the preset numerical range of PTD is (0, 1). Swarm intelligence algorithms include particle swarm optimization (PSO), ant colony optimization (ACO), etc.

[0103] The following is a detailed description of how to obtain the second target filter parameters through a swarm intelligence algorithm and how to obtain the second target filter parameters through the method of trisection.

[0104] For the swarm intelligence algorithm, it is to find the second target filter parameter corresponding to any fourth point cloud data from the preset numerical interval. Specifically, a preset number of initial filter parameters are generated; each initial filter parameter is within the preset numerical interval. The generation process includes random generation, equal spacing generation, etc. After that, the preset number of initial filter parameters and some operations can be used to continuously approximate the optimal filter parameters, and finally the second target filter parameters are obtained. It can be understood that the process of obtaining the second target filter parameter through the swarm intelligence algorithm is a process of gradually approaching the optimal filter parameter within the preset numerical interval, that is, the second target filter parameter is generally not the optimal filter parameter, and the second target filter parameter is not an accurate value directly calculated, but an approximate value.

[0105] Specifically, when solving the second target filter parameter using the swarm intelligence algorithm, a preset number of initial filter parameters are first generated; each initial filter parameter is within a preset numerical range. Among them, the preset number can be set as needed, and this embodiment does not specifically limit it. Then, based on this preset number of initial filter parameters, the optimal filter parameters are gradually approached to obtain the second target filter parameter. Specifically, the target point cloud data is filtered by each initial filter parameter to obtain a preset number of actual point cloud data. The error between each actual point cloud data and the acquired standard point cloud data is calculated respectively, and a preset number of error data is obtained accordingly. It is judged whether the preset loop condition is met at this time, wherein the preset loop condition includes that the number of loops is less than the preset loop number threshold, or the difference between the left boundary and the right boundary of the preset numerical range is greater than the preset difference threshold, etc. Among them, the preset loop number threshold and the preset difference threshold can be set as needed, and this embodiment does not specifically limit it. When the preset loop condition is not met, the minimum error data in the preset number of error data is determined, and the initial filter parameter corresponding to the minimum error data is used as the second target filter parameter. When the preset loop condition is met, at least two error data are selected from the preset number of error data, and the selection order is from small to large, because the smaller the error data, the closer the corresponding initial filtering parameters are to the optimal filtering parameters. Among them, if two error data are selected from the preset number of error data, the initial filtering parameters corresponding to the two error data are used as the left boundary and the right boundary; if the number of error data selected from the preset number of error data is greater than two, any two error data are selected from the selected error data, and the initial filtering parameters corresponding to the two error data are used as the left boundary and the right boundary. Thus, the upper limit value and the lower limit value of the preset numerical interval are updated according to the left boundary and the right boundary, and the step of generating the preset number of initial filtering parameters is returned.

[0106] It should be noted that the error data is calculated by using the actual point cloud data and the standard point cloud data. It can be understood that the closer the actual point cloud data is to the standard point cloud data, the smaller the error data is and the better the filtering effect is; correspondingly, the greater the difference between the actual point cloud data and the standard point cloud data, the larger the error data is and the worse the filtering effect is.

[0107] Taking the preset numerical interval (0, 1) as an example, assuming that the preset cycle number threshold is 200, when the cycle number is 200, the preset cycle condition is not met, and the minimum error data in this cycle is 0.01, and the initial filter parameter corresponding to the minimum error data is 0.58, then the second target filter parameter is 0.58. When the cycle number does not reach 200, for example, when the cycle number is 150, the preset cycle condition is met. Assuming that 100 initial filter parameters are randomly generated in this cycle, 100 error data are calculated accordingly, and 4 error data are selected from these 100 error data in the order of selection from small to large, which are 0.03, 0.04, 0.06 and 0.08 respectively. Select any two error data from 0.03, 0.04, 0.06 and 0.08, for example, the selected error data are 0.03 and 0.06, and the corresponding initial filtering parameters are 0.57 and 0.62 respectively, then the left boundary and the right boundary are 0.57 and 0.62 respectively, thereby updating the upper limit and lower limit of the preset numerical interval to obtain the updated preset numerical interval (0.57, 0.62).

[0108] The process of obtaining the second target filtering parameter by the swarm intelligence algorithm is described below with an optional embodiment:

[0109] Assuming that the preset numerical interval is (0, 1), 100 initial filtering parameters within (0, 1) are randomly generated, which are 1 / 3, 5 / 8, ..., 2 / 3 respectively. The fourth point cloud data is filtered by 1 / 3, 5 / 8, ..., 2 / 3 respectively to obtain the filtering result (i.e., the actual point cloud data), obtain the standard point cloud data, and calculate 100 error data by the standard point cloud data and the actual point cloud data. Among them, the minimum error data is 0.01, and the initial filtering parameter corresponding to the minimum error data is 0.58, the second smallest error data is 0.02, and the initial filtering parameter corresponding to the second smallest error data is 0.52. Determine whether the preset loop condition is met. If it is not met, 0.58 is used as the second target filtering parameter; if it is met, the initial filtering parameter corresponding to the minimum error data is used as the right boundary, and the initial filtering parameter corresponding to the second smallest error data is used as the left boundary. Thus, a new preset numerical interval (0.52, 0.58) is obtained. Repeat the above steps, i.e., randomly generate 100 initial filter parameters within (0.52, 0.58), and update (0.52, 0.58) according to the corresponding error data until the loop ends, and obtain the second target filter parameters.

[0110] It can be understood that when the second target filtering parameters are obtained through the swarm intelligence algorithm, more initial filtering parameters can be generated at one time, which makes the second target filtering parameters obtained more accurate after multiple cycles.

[0111] For the method of three divisions, the method of three divisions is used to solve the extreme value of a convex function. In short, there is a point x in the convex function that is the maximum (minimum) value. For the left side of x, it satisfies monotonic increase (decrease), and the right side satisfies monotonic decrease (increase). Using this principle, some operations can be used to continuously approach this point x, and finally the answer is obtained. It can be understood that the process of obtaining the second target filter parameter by the method of three divisions is a process of gradually approaching the extreme value of the convex function within a preset numerical range, that is, the second target filter parameter is not an accurate value directly calculated, but an approximate value.

[0112] Specifically, assuming that the error data corresponding to the second target filter parameter is a minimum value in the convex function, the left side of the second target filter parameter satisfies monotonically decreasing and the right side satisfies monotonically increasing in the preset numerical interval. The convex function takes the filter parameter as the independent variable and the error data as the dependent variable.

[0113] The error data is calculated by the actual point cloud data and the standard point cloud data. The standard point cloud data is obtained by manually editing the fourth point cloud data. It can be understood that the closer the actual point cloud data is to the standard point cloud data, the smaller the error data is and the better the filtering effect is; correspondingly, the greater the difference between the actual point cloud data and the standard point cloud data, the larger the error data is and the worse the filtering effect is.

[0114] When using the trisection method to solve the second target filter parameter, first generate two values ​​within the preset numerical interval to obtain two initial filter parameters, that is, the preset number is two. It should be noted that how the two initial filter parameters are specifically taken is not limited in this embodiment and can be determined as needed. For example, the two values ​​are the values ​​corresponding to the points that divide the preset numerical interval into three equal parts; for example, first take the midpoint of the preset numerical interval, and thereby obtain two new numerical intervals, and then take the midpoint of one of the two new numerical intervals, so as to obtain the values ​​corresponding to the two midpoints. It can be understood that one of the two initial filter parameters is closer to the left boundary of the preset numerical interval, and the other is closer to the right boundary of the preset numerical interval.

[0115] Then, based on the two initial filtering parameters, the extreme point of the convex function is gradually approached, so as to obtain the second target filtering parameter. Specifically, assuming that the two initial filtering parameters are the first initial filtering parameter and the second initial filtering parameter, after filtering the target point cloud data respectively by the first initial filtering parameter and the second initial filtering parameter, two actual point cloud data are obtained. The errors between the two actual point cloud data and the acquired standard point cloud data are calculated respectively, and the first error data and the second error data are obtained accordingly. It is judged whether the preset loop condition is met at this time, wherein the preset loop condition includes that the number of loops is less than the preset loop number threshold, or the difference between the left boundary and the right boundary of the preset numerical interval is greater than the preset difference threshold, etc. Among them, the preset loop number threshold and the preset difference threshold can be set as needed, and this embodiment does not specifically limit it. When the preset loop condition is not met, the size of the first error data and the second error data is determined, and the initial filtering parameter corresponding to the smaller error data is selected as the second target filtering parameter; when the preset loop condition is met, the boundary of the preset numerical interval is updated based on the initial filtering parameter corresponding to the maximum error data in each error data, and the updated preset numerical interval is obtained, and the step of generating the preset number of initial filtering parameters is returned. It should be noted that the new boundary can be a left boundary or a right boundary, which is specifically determined by the size of the first error data and the second error data. If the first error data is larger than the second error data, and the first initial filter parameter is close to the left boundary, the first initial filter parameter is used as the new left boundary of the preset numerical interval. If the first error data is smaller than the second error data, and the second initial filter parameter is close to the left boundary, the second initial filter parameter is used as the new left boundary of the preset numerical interval. If the first error data is equal to the second error data, and the second initial filter parameter is close to the left boundary and the first initial filter parameter is close to the right boundary, the second initial filter parameter is used as the new left boundary of the preset numerical interval or the first initial filter parameter is used as the new right boundary of the preset numerical interval.

[0116] Taking the preset numerical interval as (0, 1) as an example, assuming that the preset cycle number threshold is 200, when the cycle number is 200, the preset cycle condition is not met, and the first initial filter parameter and the second initial filter parameter of this cycle are 0.54 and 0.56 respectively, and the first error data and the second error data obtained in this cycle are 0.01 and 0.011 respectively. Since the first error data is less than the second error data, the first initial filter parameter corresponding to the first error data is used as the second target filter parameter, that is, the second target filter parameter is 0.54. When the cycle number does not reach 200, for example, when the cycle number is 150, the preset cycle condition is met, assuming that the first initial filter parameter and the second initial filter parameter of this cycle are 0.44 and 0.76 respectively, and the first error data and the second error data obtained in this cycle are 0.03 and 0.08 respectively. Since the second error data is greater than the first error data, the second initial filter parameter is used as the new boundary of the preset numerical interval, and since 0.76 is closer to the right boundary "1" of the preset numerical interval, the second initial filter parameter is used as the new right boundary of the preset numerical interval.

[0117] The process of obtaining the second target filter parameter by the method of three divisions is described below with an optional embodiment:

[0118] Reference Figure 3 , Figure 3 This is a schematic diagram of the implementation principle of the trisection method involved in this embodiment. Among them, 301 is a curve of a convex function in the interval (0, 1) with the filter parameter as the independent variable and the error data as the dependent variable, 302 is the minimum error data, and 303 is the optimal filter parameter. Assuming that the preset numerical interval is (0, 1), the values ​​corresponding to the three-division points of (0, 1) are taken as 1 / 3 and 2 / 3, respectively, and the fourth point cloud data is filtered by 1 / 3 and 2 / 3, respectively, to obtain the filtering result. Obtain the first error data corresponding to 1 / 3 and the second error data corresponding to 2 / 3. Among them, if the second error data is greater than the first error data, the preset numerical interval is updated to (0, 2 / 3). Repeat the above steps, that is, take the values ​​corresponding to the three-division points of (0, 2 / 3), and update (0, 2 / 3) according to the corresponding error data until the loop ends to obtain the second target filter parameter.

[0119] It can be understood that the logic of obtaining the second target filtering parameter by the trisection method is simple and consumes less computing resources.

[0120] It should be noted that the error accurately reflects the gap between the actual point cloud data and the standard point cloud data. Ideally, the filtering parameters corresponding to the standard point cloud data are used as the second target filtering parameters, and the filtering effect of the filtering parameter prediction model trained thereby is the best. However, the filtering parameters corresponding to the standard point cloud data are unknown. Therefore, after understanding the gap through the error, it provides a basis for reducing the error for the subsequent processing process, thereby improving the filtering effect of the filtering parameter prediction model.

[0121] Exemplarily, the above error data may be a root mean square error or a non-root mean square error.

[0122] Root mean square error Z RMSE Calculated by the following formula:

[0123]

[0124] Where N is the number of points in the actual point cloud data or the number of points in the standard point cloud data; Z S,i is the height value of the i-th point in the actual point cloud data; Z B,i is the height value of the i-th point in the standard point cloud data.

[0125] It should be noted that point cloud data is three-dimensional data. If the root mean square error between two three-dimensional points needs to be calculated, three variables (i.e., x, y, and z) need to be involved. However, this embodiment can be calculated using the above formula. The reason is that there is a one-to-one correspondence between the points of the actual point cloud data and the points of the standard point cloud data on the xy plane, that is, the projections of the points of the actual point cloud data and the points of the standard point cloud data on the xy plane overlap, and the difference between the two lies in their heights.

[0126] It should be noted that point cloud data filtering can use different filtering parameters to determine different z values ​​from the same position on the xy plane without changing the frame.

[0127] Non-RMS Error Z NRMSE Calculated by the following formula:

[0128]

[0129] Where N is the number of points in the actual point cloud data or the number of points in the standard point cloud data; Z S,i is the height value of the i-th point in the actual point cloud data; Z B,i is the height value of the i-th point in the standard point cloud data.

[0130] The specific implementation of this embodiment is basically the same as the specific implementation corresponding to the above-mentioned root mean square error, and will not be repeated here.

[0131] It can be understood that through the root mean square error ZRMSE and the non-RMS error Z NRMSE Both can determine the second target filter parameters, the difference is that the former reflects the average error, while the latter reflects the error sum. Therefore, the former can more clearly reflect the gap between the actual point cloud data and the standard point cloud data, while the latter cannot clearly reflect the gap between the actual point cloud data and the standard point cloud data. However, since there is no need to calculate the average value, the calculation process will be slightly faster than the latter.

[0132] In addition, if the point cloud data to be filtered includes multiple terrains, the point cloud data to be filtered can also be segmented, so as to divide the point cloud data to be filtered into multiple point cloud data blocks, that is, the terrain dimension reduction of the point cloud data to be filtered is achieved.

[0133] In this regard, the present application not only automatically selects the first target filter parameter applicable to the first point cloud data through the filter parameter prediction model, but also first obtains the third point cloud data to be filtered from the laser detection and ranging system or other readable storage medium storing the point cloud data, and then segments the third point cloud data to be filtered, thereby obtaining the first point cloud data. Before the third point cloud data to be filtered is segmented, outliers can also be removed, such as removing infinite points in the third point cloud data.

[0134] Specifically, one target filtering parameter cannot be applied to the filtering process of the third point cloud data of various terrains. Filtering by the target filtering parameter of the third point cloud data applicable to various terrains is a compromise solution. When filtering the third point cloud data by the target filtering parameter, the overall filtering accuracy is reduced. Therefore, it should be avoided that the point cloud data to be filtered contains too many terrains.

[0135] The embodiment of the present application reduces the number of terrains included in the point cloud data to be filtered, so that each filtering only filters the first point cloud data of fewer terrains or a single terrain, thereby improving the overall filtering accuracy.

[0136] The terrain dimension reduction of the third point cloud data to be filtered can be achieved manually or automatically by a computer. It should be noted that when obtaining the filter training data set, the point cloud data therein is also subjected to terrain dimension reduction by manual or computer, thereby improving the filtering accuracy when filtering through the filter parameter prediction model.

[0137] The following describes the terrain dimensionality reduction by manual and computer respectively:

[0138] For manual implementation, the third point cloud data to be segmented (i.e., the third point cloud data to be filtered mentioned above) is first displayed on the display, so that the user can input the corresponding segmentation instruction according to the fluctuation condition of the third point cloud data, thereby segmenting the third point cloud data based on the segmentation instruction to obtain the first point cloud data. Among them, the segmentation instruction is input by the user through relevant hardware (including but not limited to mouse, digital tablet, keyboard) according to the fluctuation condition of the third point cloud data in his visual area, and the segmentation instruction is the user's operation on the display area of ​​the third point cloud data, and the result of the operation is reflected as a segmentation trajectory on the display area. For example, if the relevant hardware is a mouse, the segmentation instruction can be that the user holds down the left mouse button and drags it on the display area until the user releases the left mouse button. It can be understood that the segmentation trajectory is the movement trajectory of the mouse cursor on the display area when the user inputs the segmentation instruction. Among them, the undulating condition is the elevation difference, that is, segmentation according to the undulating condition is actually segmentation through the elevation difference, that is, the areas in the third point cloud data can be classified by the elevation difference, for example, the elevation difference is less than 200 as one category, the elevation difference is 200 to 500 as one category, the elevation difference is 500 to 1000 as one category, and the elevation difference is greater than 1000 as one category.

[0139] Reference Figure 4 , 401 is the display area of ​​the third point cloud data, 402, 403 and 404 are three different segmentation tracks, and 401 is segmented into four areas, 405, 406, 407 and 408, through 402, 403 and 404. Among them, the elevation difference corresponding to 405 and 408 is less than 200, the elevation difference corresponding to 406 is between 200 and 500, and the elevation difference corresponding to 407 is between 500 and 1000. It can be understood that 405, 406, 407 and 408 are the display areas of the first point cloud data, that is, the third point cloud data is segmented into four first point cloud data.

[0140] For computer automatic implementation, it obtains the third point cloud data to be segmented and obtains the segmentation size for segmenting the third point cloud data; the third point cloud data is segmented based on the segmentation size to obtain one or more first point cloud data with a data size less than or equal to the segmentation size. The third point cloud data to be segmented is the third point cloud data to be reduced in terrain dimension, and segmenting the third point cloud data is a means of implementing terrain dimension reduction on the third point cloud data. The segmentation size can be a default or manually set according to actual needs.

[0141] It should be noted that the process of segmenting the third point cloud data based on the segmentation size to obtain one or more first point cloud data with a data size less than or equal to the segmentation size is: segmenting each three-dimensional point in the third point cloud data based on the segmentation size to obtain one or more first point cloud data with the same data size and the data size equal to the segmentation size, or one or more first point cloud data with the same size and the data size equal to the segmentation size and one or more first point cloud data with not completely the same size and the data size less than the segmentation size.

[0142] Specifically, when the size of the third point cloud data is an integer multiple of the segmentation size, one or more first point cloud data with the same size and a data size equal to the segmentation size are obtained. For example, if the data size of the third point cloud data is 30000m×30000m, and the segmentation size is 10000m×10000m, the third point cloud data can be segmented to obtain 9 first point cloud data with a data size of 10000m×10000m. When the size of the third point cloud data is a non-integer multiple of the segmentation size, it includes the case where the size of the third point cloud data is larger than the segmentation size, and includes the case where the size of the third point cloud data is smaller than the segmentation size. When the size of the third point cloud data is smaller than the segmentation size, the third point cloud data can be directly used as the first point cloud data. When the size of the third point cloud data is larger than the segmentation size: refer to Figure 5 , 501 is the area where the third point cloud data is located; 502 is the segmentation of the third point cloud data at 501 according to the segmentation size; 503 is the first point cloud data with 12 identical sizes and a data size equal to the segmentation size obtained after segmentation, and 504 is the first point cloud data with 8 different sizes and a data size smaller than the segmentation size obtained after segmentation.

[0143] It is understandable that, since the terrain division of the third point cloud data is done manually based on the elevation difference, and the difference of the terrain is mainly reflected in the elevation difference, it is easier to obtain the first point cloud data of a single terrain by manually dividing the terrain. The automatic terrain division of the third point cloud data by computer greatly reduces the time spent on terrain division.

[0144] Exemplarily, in order to enrich the filter training data set and iteratively update the filter parameter prediction model, after filtering to obtain the second point cloud data, the filter training data set is updated using the manually adjusted second point cloud data, so that the filter training data set is enriched through the continuously accumulated manual verification data, and the filter parameter prediction model is iteratively updated, thereby improving the filtering accuracy of the filter parameter prediction model.

[0145] Reference Figure 6 The overall process of this application is described below with an optional embodiment:

[0146] In the stage of training the model to be trained, first obtain the standard point cloud data, and determine the segmentation size to be 10000m×10000m. The standard point cloud data is segmented according to the segmentation size to obtain multiple block data. The second target filter parameters of each block data are calculated by the particle swarm optimization algorithm. The eigenvalues ​​of each block data are calculated respectively, and the eigenvectors are generated. The model to be trained is trained by the eigenvector and the corresponding second target filter parameters to obtain the filter parameter prediction model. Before filtering the first point cloud data, the first target filter parameters corresponding to the first point cloud data are predicted by the filter parameter prediction model, so that when the first point cloud data is filtered by the ground point extraction algorithm, the first target parameters are used for filtering to obtain the ground point data.

[0147] Corresponding to the point cloud data filtering method of the above embodiment, Figure 7 A structural block diagram of a point cloud data filtering device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0148] Reference Figure 7 , the device comprises:

[0149] A first acquisition module 71, used to acquire first point cloud data to be filtered;

[0150] A processing module 72, used to process the first point cloud data to obtain corresponding first target filtering parameters;

[0151] The filtering module 73 is used to filter the first point cloud data based on the first target filtering parameter to obtain filtered second point cloud data, where the second point cloud data is point cloud data of ground points or point cloud data of non-ground points.

[0152] Exemplarily, the first acquisition module 71 includes:

[0153] A first acquisition unit, used to acquire third point cloud data to be segmented;

[0154] A segmentation unit is used to segment the third point cloud data to obtain the first point cloud data.

[0155] Exemplarily, the segmentation unit includes:

[0156] an acquisition subunit, used for acquiring a segmentation size for segmenting the third point cloud data;

[0157] The first segmentation subunit is used to segment the third point cloud data based on the segmentation size to obtain the first point cloud data with a data size less than or equal to the segmentation size.

[0158] Exemplarily, the segmentation unit includes:

[0159] The second segmentation subunit is configured to receive a segmentation instruction input by a user, and segment the third point cloud data based on the segmentation instruction to obtain the first point cloud data.

[0160] Exemplarily, the processing module 72 includes:

[0161] A calculation unit, used to calculate a first characteristic parameter corresponding to the first point cloud data, and input the first characteristic parameter into a filter parameter prediction model to obtain a first target filter parameter output by the filter parameter prediction model;

[0162] The filter parameter prediction model is obtained by training based on a filter training data set, and the device further includes:

[0163] A second acquisition module, used to acquire a plurality of fourth point cloud data for training;

[0164] The third acquisition module is used to acquire the second target filtering parameters corresponding to each fourth point cloud data; and use each fourth point cloud data and its corresponding second target filtering parameter as a filtering training data set;

[0165] In the operation of acquiring the second target filtering parameters respectively corresponding to each fourth point cloud data, any fourth point cloud data is used as the target point cloud data, and the third acquisition module includes:

[0166] A generating unit, used to generate a preset number of initial filtering parameters; each initial filtering parameter is within a preset value range;

[0167] A filtering unit, used to filter the target point cloud data respectively through various initial filtering parameters to obtain a preset number of actual point cloud data after filtering;

[0168] The second acquisition unit is used to acquire standard point cloud data corresponding to the target point cloud data, and respectively calculate the error between each actual point cloud data and the standard point cloud data to obtain error data;

[0169] The determination unit is used to determine a second target filtering parameter corresponding to the target point cloud data based on the error data.

[0170] Exemplarily, the third acquisition module further includes:

[0171] A first selection unit is used to select at least two error data from each error data in a selection order from small to large when a preset cycle condition is met;

[0172] A second selection unit is used to select a left boundary and a right boundary from initial filtering parameters corresponding to at least two error data;

[0173] The first updating unit is used to update the upper limit value and the lower limit value of the preset numerical interval based on the left boundary and the right boundary, and return to the step of generating a preset number of initial filtering parameters.

[0174] Exemplarily, the third acquisition module further includes:

[0175] The second updating unit is used to update the boundary of the preset numerical interval based on the initial filtering parameter corresponding to the maximum error data in each error data when the preset loop condition is met, obtain the updated preset numerical interval, and return to the step of generating a preset number of initial filtering parameters.

[0176] For example, the error data is the root mean square error, the root mean square error Z RMSE Calculated by the following formula:

[0177]

[0178] Where N is the number of points in the actual point cloud data or the number of points in the standard point cloud data; Z S,i is the height value of the i-th point in the actual point cloud data; Z B,i is the height value of the i-th point in the standard point cloud data.

[0179] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0180] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0181] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.

[0182] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0183] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0184] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0185] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0186] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0187] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A point cloud data filtering method, characterized in that: include: Acquire first point cloud data to be filtered; Processing the first point cloud data to obtain corresponding first target filtering parameters; The first point cloud data is filtered based on the first target filtering parameter to obtain filtered second point cloud data, where the second point cloud data is point cloud data of ground points or point cloud data of non-ground points.

2. The point cloud data filtering method according to claim 1, characterized in that: The step of obtaining first point cloud data to be filtered includes: Obtaining the third point cloud data to be segmented; The third point cloud data is segmented to obtain the first point cloud data.

3. The point cloud data filtering method according to claim 2, characterized in that: The step of segmenting the third point cloud data to obtain the first point cloud data includes: Acquire a segmentation size for segmenting the third point cloud data; The third point cloud data is segmented based on the segmentation size to obtain the first point cloud data with a data size less than or equal to the segmentation size.

4. The point cloud data filtering method according to claim 2, characterized in that: The step of segmenting the third point cloud data to obtain the first point cloud data includes: A segmentation instruction input by a user is received, and the third point cloud data is segmented based on the segmentation instruction to obtain the first point cloud data.

5. The point cloud data filtering method according to claim 1, characterized in that: The processing of the first point cloud data to obtain a corresponding first target filtering parameter includes: Calculating a first characteristic parameter corresponding to the first point cloud data, and inputting the first characteristic parameter into a filtering parameter prediction model to obtain a first target filtering parameter output by the filtering parameter prediction model; The filtering parameter prediction model is obtained by training based on a filtering training data set, and obtaining the filtering training data set includes: Obtaining a plurality of fourth point cloud data for training; Obtaining second target filtering parameters corresponding to each of the fourth point cloud data; Taking each of the fourth point cloud data and its corresponding second target filtering parameter as the filtering training data set; Wherein, in the operation of obtaining the second target filtering parameters respectively corresponding to each of the fourth point cloud data, any of the fourth point cloud data is used as the target point cloud data, and the operation on the target point cloud data includes: Generate a preset number of initial filtering parameters; each of the initial filtering parameters is within a preset value range; The target point cloud data are filtered respectively by using the initial filtering parameters to obtain the preset number of actual point cloud data after filtering; Acquire standard point cloud data corresponding to the target point cloud data, and respectively calculate the error between each of the actual point cloud data and the standard point cloud data to obtain error data; Based on the error data, the second target filtering parameter corresponding to the target point cloud data is determined.

6. The point cloud data filtering method according to claim 5, characterized in that: After obtaining the error data, the method further includes: When the preset cycle condition is met, at least two error data are selected from each of the error data in a selection order from small to large; Selecting a left boundary and a right boundary from the initial filtering parameters corresponding to the at least two error data; The upper limit value and the lower limit value of the preset numerical interval are updated based on the left boundary and the right boundary, and the step of generating a preset number of initial filtering parameters is returned.

7. The point cloud data filtering method according to claim 5, characterized in that: After obtaining the error data, the method further includes: When the preset loop condition is met, the boundary of the preset numerical interval is updated based on the initial filtering parameter corresponding to the maximum error data in each error data, an updated preset numerical interval is obtained, and the step of generating a preset number of initial filtering parameters is returned.

8. The point cloud data filtering method according to claim 6 or 7, characterized in that: The error data is the root mean square error, and the root mean square error Z RMSE Calculated by the following formula: Wherein, N is the number of points in the actual point cloud data or the number of points in the standard point cloud data; Z S,i is the height value of the i-th point in the actual point cloud data; Z B,i is the height value of the i-th point in the standard point cloud data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • LiDar point cloud data morphological filtering method based on area prediction

    CN103745436A

  • Adaptive point-cloud filtering method for complex terrain structure

    CN105118090A

  • Improved whale optimization algorithm-based cylindricity evaluation method

    CN109931903A

  • Adaptive filtering method based on point cloud region segmentation

    CN110136138A

  • Point cloud filtering method and device

    CN110349092A