A 3D scanning point cloud data denoising method and system

By identifying the stable fitting surface set and the degree of noise compliance, the noise point cloud is accurately identified and adjusted, which solves the problem of low noise identification accuracy in traditional methods and improves the measurement accuracy and data quality of 3D laser scanning point cloud data.

CN118657684BActive Publication Date: 2024-10-25SHANDONG ZHIWEI SPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional 3D laser scanning point cloud data denoising algorithms are difficult to accurately identify noisy point clouds in complex environments, resulting in poor measurement accuracy.

Method used

By obtaining point cloud data for three-dimensional reconstruction, determine the monitoring point cloud and identify a stable fitting surface set based on the point change trend in the local range, calculate the difference between predicted coordinates and actual coordinates, evaluate the degree of noise compliance, and coordinate the noise point cloud Adjust for denoising.

Benefits of technology

It improves the reliability and accuracy of point cloud data, significantly reduces the impact of noise on subsequent analysis and applications, and improves data quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657684B_ABST
    Figure CN118657684B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of point cloud 3D reconstruction, and in particular to a 3D scanning point cloud data denoising method and system, the method comprising acquiring point cloud data corresponding to the inside of a target scanning object and performing 3D reconstruction to obtain a 3D reconstruction model; in the 3D reconstruction model, determining a plurality of monitoring point clouds, and based on the change trend of points within a local range, identifying a stable fitting surface set from each monitoring point cloud; for each monitoring point cloud, obtaining a predicted coordinate based on the coordinate mean of a plurality of position points in the stable fitting surface set closest to the monitoring point cloud on the X, Y, and Z axes; calculating the coordinate difference between the predicted coordinate and the actual coordinate on the X, Y, and Z axes, and evaluating the noise conformity of each monitoring point cloud based on the average of the three obtained difference values; screening out the noise point cloud that needs to be corrected based on the noise conformity, and adjusting the coordinate information of the noise point cloud to achieve denoising of the point cloud data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of point cloud three-dimensional reconstruction, and in particular to a method and system for denoising three-dimensional scanning point cloud data. Background Art

[0002] 3D laser scanning technology, also known as real-scene replication technology, is often used in the field of heritage protection. In practical applications, 3D laser scanning technology has the advantage of non-contact measurement, which can avoid physical damage to the heritage and has high detection efficiency. However, due to the complex environment in the heritage site, such as uneven lighting, temperature and humidity, noise data will appear in the point cloud data, thereby reducing the detection confidence, so point cloud data denoising is required. At present, traditional methods often use radius filtering algorithms to denoise each point cloud data. The radius filtering algorithm mainly operates based on the information of other points (or pixels) within a certain radius around each point (or pixel). Specifically, it defines a radius value that determines the neighborhood range that needs to be considered around each point. Then, according to the data characteristics in this neighborhood (such as median, mean, standard deviation, etc.), the attribute value of the current point is updated or judged to achieve denoising, smoothing or other processing effects.

[0003] However, due to the large differences in the distribution characteristics of point clouds in various areas within the site, the radius range in the radius filtering algorithm is often difficult to define, and the traditional radius filtering algorithm does not take into account the change characteristics of the point cloud within the local range of each point cloud data, which leads to low filtering accuracy and poor measurement accuracy of the scanned object. Summary of the invention

[0004] In order to solve the technical problem that the traditional point cloud denoising algorithm has poor accuracy in measuring the scanned object, the purpose of the present invention is to provide a 3D scanning point cloud data denoising method and system. The technical solution adopted is as follows:

[0005] In a first aspect, the present application discloses a method for denoising three-dimensional scanning point cloud data, the method comprising:

[0006] S1, obtaining point cloud data corresponding to the internal part of the target scanning object and performing three-dimensional reconstruction to obtain a three-dimensional reconstructed model;

[0007] S2. In the three-dimensional reconstruction model, a plurality of monitoring point clouds are determined, and based on the change trend of points within a local range, a stable fitting surface set is identified from each monitoring point cloud;

[0008] S3, for each monitoring point cloud, based on the average coordinates of multiple position points closest to the monitoring point cloud in the stable fitting surface set on the X, Y, and Z axes, the predicted coordinates are obtained;

[0009] S4, calculating the coordinate differences between the predicted coordinates and the actual coordinates on the X, Y, and Z axes, and evaluating the noise compliance of each monitoring point cloud based on the average of the three difference values ​​obtained;

[0010] S5. Screening out the noise point cloud that needs to be corrected based on the noise compliance degree, and adjusting the coordinate information of the noise point cloud to achieve denoising of the point cloud data.

[0011] Further, for each monitoring point cloud, in step S2, based on the change trend of points in the local range, a stable fitting surface set is identified from each monitoring point cloud, including:

[0012] S21. Iteratively perform three-dimensional surface fitting and normal vector angle stability evaluation within different proximity ranges;

[0013] S22. Perform cluster analysis based on the stability of the normal vector angles of the fitted surfaces in different update ranges, calculate the change difference of the fitted surfaces in the cluster, and select the target cluster with the smallest change difference to construct a stable fitted surface set.

[0014] Furthermore, in step S21, the iterative three-dimensional surface fitting and normal vector angle stability evaluation are performed in different proximity ranges, including:

[0015] S211, determining an initial proximity range of the monitoring point cloud, and performing three-dimensional surface fitting within the initial proximity range to obtain a first fitting surface;

[0016] S212, after calculating the first normal vector of the first fitting surface at the monitoring point cloud position, expanding along the initial neighboring range to determine a new range boundary;

[0017] S213, performing surface fitting again within the new range boundary, and calculating a second normal vector of the second fitted surface at the monitoring point cloud position;

[0018] S214, determining a stability degree of a normal vector angle of the second fitting surface based on a cosine value of an angle between the first normal vector and the second normal vector;

[0019] S215. Continue to expand the range, and calculate the stability of the normal vector angle of the new fitting surface according to steps S214 to S215.

[0020] Furthermore, in step S22, cluster analysis is performed based on the stability of the normal vector angles of each fitting surface in different update ranges, and the variation difference of each fitting surface in the cluster is calculated, and the target cluster with the smallest variation difference is selected to construct a stable fitting surface set, including:

[0021] S221, constructing a curve of normal vector angle stability vs. neighboring range update times, with the number of times the neighboring range is updated as the abscissa and the stability of the normal vector angle of the fitting surface corresponding to the neighboring range after the update as the ordinate;

[0022] S222, clustering each point in the curve to form multiple clusters;

[0023] S223, for each cluster, evaluating the corresponding best fitting surface set probability by the distance between the normal vector angle stability of each point in the cluster and the mean of the normal vector angle stability of all points;

[0024] S224, taking the horizontal coordinate range of the cluster with the largest probability value of the best fitting surface set as the best neighboring range interval, and constructing a stable fitting surface set based on each fitting surface in the interval.

[0025] Furthermore, in step S5, the noise point cloud that needs to be corrected is screened out based on the noise conformity, and the coordinate information of the noise point cloud is adjusted to achieve denoising of the point cloud data, including:

[0026] S51, constructing the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model based on the noise compliance degree;

[0027] S52, obtaining a noise performance level threshold, and traversing each noise performance level, during the traversal process, when it is determined that the current traversal value is greater than the noise performance level threshold, taking the corresponding monitoring point cloud as a noise point cloud that needs to be corrected;

[0028] S53, determining the offset amplitude of the noise point cloud according to the noise performance degree, and adjusting the coordinate information of the noise point cloud based on the offset amplitude to achieve denoising of the point cloud data.

[0029] Furthermore, in step S51, constructing the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model based on the noise compliance degree includes:

[0030] S511. Based on the noise conformity, the noise representation degree of each monitoring point cloud in the three-dimensional reconstruction model is constructed by combining the point cloud with the difference in laser reflection intensity of each point cloud in the corresponding stable fitting surface set.

[0031] Further, in step S511, for each monitoring point cloud, based on the noise conformity, combining the point cloud with the laser reflection intensity difference of each point cloud in the corresponding stable fitting surface set, constructing the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model, including:

[0032] S5111, obtaining a first laser reflection intensity value of the monitoring point cloud and a second laser reflection intensity value of each point cloud within the optimal adjacent range interval;

[0033] S5112, performing difference calculation based on the first laser reflection intensity value and each obtained second laser reflection intensity value, and accumulating and averaging these difference values ​​to obtain a laser reflection intensity difference;

[0034] S5113. Calculate the product of the noise conformity and the laser reflection intensity difference, and perform normalization processing on it to obtain the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model.

[0035] Furthermore, in step S53, determining the offset amplitude of the noise point cloud according to the noise performance degree includes:

[0036] S531, determining the largest target proximity range in the optimal proximity range interval of the noise point cloud, and calculating the average noise performance level of the target proximity range;

[0037] S532, calculating the Euclidean distance from the noise point cloud to the coordinates of the mean of all point cloud data in the vicinity of the target, adjusting the Euclidean distance based on the average noise performance level, and obtaining the amplitude of the noise point cloud offset to the coordinates of the vicinity.

[0038] In a second aspect, the present application discloses a 3D scanning point cloud data denoising system, the system comprising a 3D reconstruction module, a stable fitting surface screening module, and a point cloud noise assessment module, wherein:

[0039] The three-dimensional reconstruction module is used to obtain point cloud data inside the corresponding target scan object and perform three-dimensional reconstruction to obtain a three-dimensional reconstructed model;

[0040] The stable fitting surface screening module is used to determine a plurality of monitoring point clouds in the three-dimensional reconstruction model, and identify a stable fitting surface set from each monitoring point cloud based on a change trend of points within a local range;

[0041] The point cloud noise evaluation module is used to obtain predicted coordinates for each monitoring point cloud based on the average coordinates of multiple position points closest to the monitoring point cloud in the stable fitting surface set on the X, Y, and Z axes;

[0042] The point cloud noise evaluation module is also used to calculate the coordinate differences between the predicted coordinates and the actual coordinates on the X, Y, and Z axes, and evaluate the noise compliance of each monitoring point cloud based on the average value of the three difference values ​​obtained;

[0043] The point cloud noise assessment module is also used to screen out the noise point cloud that needs to be corrected based on the noise compliance degree, and adjust the coordinate information of the noise point cloud to achieve denoising of the point cloud data.

[0044] In a third aspect, the present application discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the three-dimensional scanning point cloud data denoising method.

[0045] The present invention has the following beneficial effects:

[0046] 1. Based on the change trend of points in the local range, a stable fitting surface set is identified, which helps to accurately reflect the geometric shape of the scanned object surface and improve the reliability of the monitoring point cloud;

[0047] 2. The coordinates of the monitoring point cloud are predicted by using the coordinate mean in the stable fitting surface set, which reduces the impact of the fluctuation of a single point cloud data on the prediction results and improves the accuracy of the predicted coordinates;

[0048] 3. By calculating the difference between the predicted coordinates and the actual coordinates and evaluating the noise compliance of each monitoring point cloud based on the average of the three difference values, the noise point cloud that needs to be corrected can be accurately identified;

[0049] 4. Adjust the coordinate information of the noisy point cloud to achieve denoising of the point cloud data. This process can significantly reduce the impact of noise on subsequent analysis and application and improve data quality. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0051] Figure 1 A flow chart of a method for denoising three-dimensional scanning point cloud data provided by an embodiment of the present invention;

[0052] Figure 2 It is a curve chart showing the stability of the normal vector angle of the monitoring point cloud and the number of updates in the adjacent range;

[0053] Figure 3 A system structure diagram for denoising three-dimensional scanning point cloud data provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a three-dimensional scanning point cloud data denoising method and system proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0055] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0056] The specific scheme of a three-dimensional scanning point cloud data denoising method and system provided by the present invention is described in detail below with reference to the accompanying drawings.

[0057] See also Figure 1 , which shows a flow chart of a method for denoising three-dimensional scanning point cloud data provided by an embodiment of the present invention, the method comprising:

[0058] Step S1, obtaining point cloud data corresponding to the interior of the target scan object and performing three-dimensional reconstruction to obtain a three-dimensional reconstructed model.

[0059] Specifically, the present application will plan the laser scanning path in advance inside the target scanning object to ensure that the laser point cloud produced along the laser scanning path can cover the entire position range of the target scanning object. Afterwards, when the laser point cloud is successfully produced by the three-dimensional laser scanner and the corresponding point cloud information is obtained, the target scanning object is modeled by combining the point cloud information with the three-dimensional reconstruction technology to obtain a three-dimensional reconstructed model. In the embodiment of the present invention, the ruins can be taken as an example, for example, the point cloud data inside the corresponding target ruins is obtained and three-dimensionally reconstructed to obtain a three-dimensional reconstructed model of the ruins, and subsequent analysis and processing are performed. Other buildings can also be used as examples to construct a three-dimensional reconstruction model for subsequent analysis and processing.

[0060] In one of the embodiments, the present application uses a 3D laser scanner to generate a laser point cloud on the planned laser scanning path, and captures the reflected laser through the receiving module of the laser scanner to obtain point cloud data at each position. Afterwards, the point cloud data information is read through the ARO Stream program application connected to the 3D laser scanner, wherein the point cloud information includes the 3D coordinates of the target scan object, laser reflection intensity, reflection time difference and other information. Finally, the present application applies 3D reconstruction technology to complete the modeling of the target scan object based on surface reconstruction, model optimization and other methods.

[0061] Step S2, in the three-dimensional reconstruction model, a plurality of monitoring point clouds are determined, and based on the change trend of points within a local range, a stable fitting surface set is identified from each monitoring point cloud.

[0062] Specifically, in the three-dimensional reconstruction model, this application will determine multiple monitoring areas according to the complexity of the scanned object and the monitoring requirements. Each monitoring area corresponds to a monitoring point cloud, and these point cloud data cover the key parts of the scanned object or areas with special research value. For each monitoring point cloud, the change trend of the points in the local range is analyzed, and based on the change trend of the points in the local range, the surface fitting technology is used to identify a stable fitting surface set.

[0063] Step S3, for each monitoring point cloud, based on the average coordinates of multiple position points in the stable fitting surface set that are closest to the monitoring point cloud on the X, Y, and Z axes, the predicted coordinates are obtained.

[0064] Specifically, this laser point cloud scene is a three-dimensional point cloud, so the total number of coordinate axes is 3, and each point in the point cloud has corresponding coordinate information on the X, Y, and Z axes. For each monitoring point cloud, this application will search for the position point closest to the point cloud in all stable fitting surface sets. Specifically, this application will calculate the Euclidean distance to find the position point closest to the point cloud in the Euclidean distance. This is currently just one implementation method, and the distance calculation algorithm can also be adjusted according to the actual application scenario in different embodiments. Once all the nearest position points corresponding to each monitoring point cloud are found, the mean coordinates of these points on the X, Y, and Z axes can be calculated, and this mean will be used as the predicted coordinates of the monitoring point cloud.

[0065] In one embodiment, for the predicted coordinates of the i-th monitoring point cloud on the u-th coordinate axis, the calculation formula includes:

[0066] ;

[0067] in, represents the predicted coordinates of the i-th monitoring point cloud on the u-th coordinate axis, represents the number of all stable fitting surfaces obtained from the i-th monitoring point cloud, Represents the coordinate value of the u-th coordinate axis of the point on the y-th stable fitting surface of the ith monitoring point cloud that is closest to the Euclidean distance of the ith monitoring point cloud.

[0068] Step S4, calculating the coordinate differences between the predicted coordinates and the actual coordinates on the X, Y, and Z axes, and evaluating the noise compliance of each monitoring point cloud based on the average value of the three difference values ​​obtained.

[0069] Specifically, given the actual coordinates of the i-th monitoring point cloud on the u-th coordinate axis When, according to the formula (where H represents the total number of coordinate axes) the average value of the three difference values ​​can be calculated, and the result is the noise compliance degree of the ith monitoring point cloud. It should be noted that the larger the value of the noise compliance degree, the greater the noise probability of the ith monitoring point cloud.

[0070] Step S5, based on the noise conformity, the noise point cloud that needs to be corrected is screened out, and the coordinate information of the noise point cloud is adjusted to achieve denoising of the point cloud data.

[0071] As can be seen from the above, the 3D scanning point cloud data denoising method disclosed in the present application identifies a stable fitting surface set based on the change trend of points in a local range, which helps to accurately reflect the geometric shape of the surface of the scanned object and improve the reliability of the monitoring point cloud; the coordinate mean in the stable fitting surface set is used to predict the coordinates of the monitoring point cloud, which reduces the impact of the fluctuation of a single point cloud data on the prediction result and improves the accuracy of the predicted coordinates; by calculating the difference between the predicted coordinates and the actual coordinates, and evaluating the noise conformity of each monitoring point cloud based on the average of the three difference values, the noise point cloud that needs to be corrected can be accurately identified; the coordinate information of the noise point cloud is adjusted to achieve denoising of the point cloud data. This process can significantly reduce the impact of noise on subsequent analysis and application and improve data quality.

[0072] In one embodiment, for each monitoring point cloud, in step S2, the step of identifying a stable fitting surface set from each monitoring point cloud based on a change trend of points within a local range includes:

[0073] Step S21, iteratively performing three-dimensional surface fitting and normal vector angle stability evaluation within different proximity ranges.

[0074] Specifically, the present application performs multiple three-dimensional surface fitting on the monitoring point cloud within different proximity ranges, and evaluates the stability of the normal vector angle of each fitting surface based on the cosine value of the angle between the normal vectors of adjacent fitting surfaces.

[0075] Step S22, cluster analysis is performed based on the stability of the normal vector angles of each fitting surface in different update ranges, and the change difference of each fitting surface in the cluster is calculated, and the target cluster with the smallest change difference is selected to construct a stable fitting surface set.

[0076] Specifically, the present application calculates the angles between the normal vectors of each fitting surface and evaluates the stability of these angles within different update ranges, thereby grouping fitting surfaces with similar stability characteristics into the same cluster. Subsequently, for the fitting surfaces within each cluster, the change differences between them are further calculated. Considering that if the corresponding fitting surfaces within a cluster show large change differences as the number of updates increases, the possibility that the cluster is the corresponding cluster of the best adjacent range interval is smaller. Therefore, the present application selects the target cluster with the smallest change difference, and the fitting surfaces within this cluster are identified as having the highest stability, thereby constructing a set of stable fitting surfaces.

[0077] In the above embodiment, by iteratively fitting three-dimensional surfaces in different proximity ranges and evaluating the stability of the normal vector angle, we can accurately capture the surface features and identify unstable areas, thereby improving the accuracy and reliability of fitting. Subsequently, cluster analysis is performed based on the stability of the normal vector angles of these fitted surfaces, and the target clusters with the smallest change differences are screened out to construct a stable fitted surface set. This process not only optimizes the quality of the surface set, but also provides a stable, consistent and efficient surface foundation for subsequent data processing, shape analysis and decision making.

[0078] In one embodiment, in step S21, iteratively performing three-dimensional surface fitting and normal vector angle stability evaluation in different proximity ranges includes:

[0079] Step S211, determining an initial proximity range of the monitoring point cloud, and performing three-dimensional surface fitting within the initial proximity range to obtain a first fitting surface.

[0080] Specifically, the initial neighboring range is selected as 3 empirical values. This application will extract data points within this range from the entire point cloud data set, and use these points as input data for surface fitting, and perform three-dimensional surface fitting based on the spline interpolation fitting algorithm (since the spline interpolation fitting algorithm belongs to the prior art, it will not be explained in detail here).

[0081] Step S212: After calculating the first normal vector of the first fitting surface at the monitoring point cloud position, the initial neighboring range is expanded to determine a new range boundary.

[0082] Specifically, the present application aims to continuously update the boundaries of the monitoring point cloud by dynamically adjusting the proximity range of the monitoring point cloud. The specific implementation method is as follows: First, the initial number of proximity ranges is set to 3 based on the empirical value, and then, in each iteration, a point cloud closest to the coordinate position of the monitoring point cloud is selected from the point cloud outside the current proximity range and added to the proximity range. This process will continue until the number of proximity ranges reaches the set end value, which is an empirical value of 3000 in this application. In this way, the proximity range of the monitoring point cloud can be continuously updated as the neighboring point cloud is added, thereby accurately reflecting the new boundaries of the monitoring point cloud.

[0083] Step S213, performing surface fitting again within the new range boundary, and calculating a second normal vector of the second fitting surface at the monitoring point cloud position.

[0084] Specifically, each time the neighborhood range is updated, the present application performs three-dimensional surface fitting on each point in the neighborhood range through a spline interpolation fitting algorithm, and calculates the normal vector of the fitted surface at the monitoring point cloud position.

[0085] Step S214: determining the stability of the normal vector angle of the second fitting surface based on the cosine value of the angle between the first normal vector and the second normal vector.

[0086] Specifically, the present application calculates the cosine value of the angle between the first normal vector and the second normal vector by the following formula:

[0087] ;

[0088] in, Represents the normal vector (i.e., the second normal vector) of the fitting surface corresponding to the j-th updated neighborhood of the i-th monitoring point cloud at the position of the i-th monitoring point cloud; It represents the normal vector (i.e., the first normal vector) of the fitting surface corresponding to the j-1th updated neighborhood of the i-th monitoring point cloud at the position of the i-th monitoring point cloud. <Normal vector 1, Normal vector 2> represents the angle A between Normal vector 1 and Normal vector 2, and cos<Normal vector 1, Normal vector 2> represents the cosine value of the angle A.

[0089] Furthermore, in order to prevent Negative numbers appear, this application is based on the formula Evaluate the stability of the normal vector angle of the second fitting surface, that is, the formula The calculated value is used as the stability of the normal vector angle. The larger the value, the smaller the change of the fitting surface corresponding to the jth updated neighborhood of the i-th monitoring point cloud is compared with the previous fitting surface, which means that the fitting surface corresponding to the jth updated neighborhood of the i-th monitoring point cloud has a higher prediction weight in the prediction process of the i-th monitoring point cloud.

[0090] Step S215, continue to expand the range, and calculate the stability of the normal vector angle of the new fitting surface according to steps S214 to S215.

[0091] In the above embodiment, by gradually expanding the proximity range of the monitoring point cloud, performing three-dimensional surface fitting in each expanded range, and evaluating the stability of the normal vector of the fitted surface, this process ensures the continuity and accuracy of the surface fitting. By comparing the changes in the normal vector angles of the fitted surfaces in different ranges, the stability of the surface model can be accurately identified and optimized, thereby constructing a more accurate and reliable surface set. This iterative surface fitting and evaluation method not only improves the accuracy of surface reconstruction, but also provides a solid foundation for subsequent data analysis, model optimization and decision making.

[0092] In one embodiment, in step S22, cluster analysis is performed based on the stability of the normal vector angles of each fitting surface in different update ranges, and the change difference of each fitting surface in the cluster is calculated, and the target cluster with the smallest change difference is selected to construct a stable fitting surface set, including:

[0093] Step S221, constructing a normal vector angle stability-neighborhood range update times curve with the number of times the neighborhood range is updated as the horizontal coordinate and the normal vector angle stability of the fitting surface corresponding to the neighborhood range update as the vertical coordinate.

[0094] Specifically, the normal vector angle stability-neighborhood update times curve currently constructed can be referenced Figure 2 . Figure 2 The horizontal axis represents the number of updates, and the vertical axis represents the stability of the normal vector angle.

[0095] Step S222: clustering the points in the curve to form a plurality of clusters.

[0096] Specifically, since each fitting surface within the optimal neighboring range interval should show that as the number of updates increases, the change in the stability of the normal vector angle of the fitting surface corresponding to the updated neighboring range is relatively small, the optimal neighboring range interval should be shown in the normal vector angle stability-neighboring range update number curve as the values ​​of each point in the interval are approximately equal. Taking this feature into consideration, the present application clusters each point in the normal vector angle stability-neighboring range update number curve, and then clusters each point in the curve into each cluster cluster, then the horizontal coordinate range of a cluster cluster in the clustering result is the optimal neighboring range interval.

[0097] In one embodiment, the present application selects the Kmeans clustering algorithm to cluster the points in the normal vector angle stability-neighborhood update times curve, wherein the number of clusters K is determined by the elbow method. Since the Kmeans clustering algorithm belongs to the scope of the prior art, the present application does not provide too much explanation on it.

[0098] Step S223, for each cluster, the probability of the corresponding best fitting surface set is evaluated by the distance between the stability of the normal vector angle of each point in the cluster and the mean stability of the normal vector angle of all points.

[0099] Specifically, for point x in the kth cluster of the i-th monitoring point cloud, this application will calculate the stability of the normal vector angle of the point The mean stability of the angle between the normal vector and the kth cluster The difference between is intended to quantify the degree of deviation of the normal vector angle stability of the point relative to the overall stability within the cluster, and this difference reflects the indicator of "the distance between the stability of the normal vector angles of each point in the cluster and the mean of the normal vector angle stability of all points". Therefore, for each point in the cluster, after the aforementioned difference calculation, multiple difference terms will be obtained. In order to evaluate the overall level of difference between the stability of the normal vector angles of each point in the cluster and the mean within the cluster, this application will perform mean calculation based on the obtained difference terms, where a lower mean indicates that the stability of the normal vector angles of each point in the cluster is more consistent, that is, the stability within the cluster is higher. Therefore, by selecting clusters with smaller difference means, a set of more stable and consistent fitting surfaces can be constructed, which is of great significance for subsequent data analysis, model optimization or decision making.

[0100] In one embodiment, the aforementioned calculation process can be understood by the following formula:

[0101] ;

[0102] in, Indicates the number of sample points in the kth cluster in the clustering result of the curve of the stability of the normal vector angle of the i-th monitoring point cloud and the number of updates of the neighboring range; Indicates the stability of the normal vector angle of the x-th point in the k-th cluster in the clustering result of the normal vector angle stability of the i-th monitoring point cloud-the number of updates in the neighborhood range curve; It represents the mean value of the stability of the normal vector angle within the kth cluster in the clustering result of the normal vector angle stability of the i-th monitoring point cloud - the number of updates in the neighboring range curve.

[0103] Furthermore, in order to calculate the probability of the best fitting surface set, the present application performs a reciprocal calculation based on the above formula, which is specifically embodied in the following formula:

[0104] ;

[0105] in, It represents the probability of the best fitting surface set of the kth cluster in the clustering result of the curve of the stability of the normal vector angle of the i-th monitoring point cloud and the number of updates of the neighboring range. The smaller the value of is, the higher the probability of the best fitting surface set of the kth cluster in the clustering result of the curve of the stability of the normal vector angle of the i-th monitoring point cloud-the number of updates of the neighboring range is.

[0106] Step S224, taking the abscissa range of the cluster with the largest probability value of the best fitting surface set as the best neighboring range interval, and constructing a stable fitting surface set based on each fitting surface in the interval.

[0107] Specifically, for the i-th monitoring point cloud, the present application will obtain the best fitting surface set probability of all clusters in the clustering result of the normal vector angle stability-neighborhood range update number curve, and take the horizontal coordinate range of the cluster with the largest probability of the best fitting surface set as the best neighboring range interval of the i-th monitoring point cloud, extract each updated fitting surface within the interval as the stable fitting surface set of the i-th monitoring point cloud, and perform the same processing on other point cloud data as the i-th monitoring point cloud.

[0108] In the above embodiment, by constructing a curve of the stability of the normal vector angle and the number of neighboring range updates, combined with cluster analysis and probability evaluation, the present application can accurately determine the optimal neighboring range interval, and accordingly construct a stable and high-precision set of fitting surfaces, which significantly improves the efficiency and accuracy of surface fitting.

[0109] In one embodiment, in step S5, the noise point cloud that needs to be corrected is selected based on the noise compliance degree, and the coordinate information of the noise point cloud is adjusted to achieve denoising of the point cloud data, including:

[0110] Step S51: constructing the noise representation degree of each monitoring point cloud in the three-dimensional reconstruction model based on the noise conformity degree.

[0111] Specifically, the noise conformity reflects the degree of deviation between the position prediction of the monitoring point cloud in three-dimensional space and the actual observation. It provides a quantitative indicator for the noise performance of each monitoring point cloud in the three-dimensional reconstruction model. Among them, a lower noise conformity means that the point cloud data in this area has a higher quality and can better reflect the true shape of the scanned object; while a higher noise conformity indicates that the point cloud data in this area may be subject to greater noise interference, and corresponding denoising or correction measures need to be taken.

[0112] Step S52, obtaining a noise performance level threshold, and traversing each noise performance level. During the traversal process, when it is determined that the current traversal value is greater than the noise performance level threshold, the corresponding monitoring point cloud is used as a noise point cloud that needs to be corrected.

[0113] Specifically, the present application sets the noise performance level threshold to an empirical value of 0.88, and determines the monitoring point cloud with a noise performance level higher than 0.88 as a noise point cloud that needs to be corrected.

[0114] Step S53, determining the offset amplitude of the noise point cloud according to the noise performance degree, and adjusting the coordinate information of the noise point cloud based on the offset amplitude to achieve denoising of the point cloud data.

[0115] Specifically, this application will move the coordinates of the noise point cloud (which usually involves the coordinate values ​​in the X, Y, and Z axis directions) to the coordinate mean of its neighboring range for adjustment (specifically, some addition and subtraction operations will be involved). It should be noted that when adjusting the coordinate information, it is necessary to ensure that the adjusted point cloud data maintains overall consistency and continuity to avoid generating new noise, and the higher the noise performance of each point in its neighboring range, the smaller the adjustment range, and vice versa. Furthermore, by adjusting the coordinate information of each noise point cloud in the three-dimensional reconstruction model, the purpose of denoising the point cloud data is achieved.

[0116] In the above embodiment, by constructing the noise performance degree of each monitoring point cloud and identifying the noise point cloud that needs to be corrected based on these degrees, it can be ensured that only the noise points that truly affect the accuracy of the model are processed, thereby improving the accuracy of the 3D reconstructed model.

[0117] In one embodiment, in step S51, constructing the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model based on the noise compliance degree includes:

[0118] Step S511, based on the noise conformity, combined with the laser reflection intensity difference between the point cloud and the corresponding stable fitting surface set, construct the noise representation degree of each monitoring point cloud in the three-dimensional reconstruction model.

[0119] Specifically, noise conformity is a quantitative indicator used to evaluate the conformity of noise characteristics in monitoring point cloud data with expected or standard noise models. By combining the difference in laser reflection intensity with noise conformity, the influence of noise characteristics and reflection intensity changes on noise performance can be comprehensively considered, and the noise performance of monitoring point clouds in 3D reconstruction models can be more comprehensively evaluated.

[0120] In one embodiment, in step S511, for each monitoring point cloud, based on the noise conformity, combining the point cloud with the laser reflection intensity difference of each point cloud in the corresponding stable fitting surface set, constructing the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model includes:

[0121] Step S5111, obtaining a first laser reflection intensity value of the monitoring point cloud and a second laser reflection intensity value of each point cloud within the optimal adjacent range.

[0122] Step S5112, performing difference calculation based on the first laser reflection intensity value and each obtained second laser reflection intensity value, and accumulating and averaging these difference values ​​to obtain the laser reflection intensity difference.

[0123] Step S5113, by calculating the product of the noise conformity and the laser reflection intensity difference, and performing normalization processing on it, so as to obtain the noise performance degree of each monitoring point cloud in the three-dimensional reconstructed model.

[0124] Specifically, based on step S5111 to step S5113, it should be noted that since the noise conformity only reflects the noise probability of each monitoring point cloud from the three-dimensional coordinate information of each point cloud, and since the point cloud data can not only reflect the three-dimensional coordinate information of the monitoring position, but also reflect the laser reflection intensity information of the monitoring position. Among them, the laser reflection intensity information can reflect the material and other information of the monitoring position, and since the material of the target in a very small area of ​​the scanned object should be roughly the same, that is, the reflection intensity information should be roughly the same, and the randomness of the noise point cloud data is also reflected in the reflection intensity information, the difference between the laser reflection intensity of the monitoring point cloud and the laser reflection intensity of each point cloud data in the optimal adjacent range can be used to further reflect the noise probability of the monitoring point cloud. Among them, when the value of the noise performance degree of the i-th monitoring point cloud is larger, it means that the difference between its laser reflection intensity value and the laser reflection intensity values ​​of other point clouds in its adjacent range is larger, which can further reflect that the noise probability of the i-th monitoring point cloud is larger.

[0125] Furthermore, the calculation logic of step S5111 to step S5113 can also be specifically reflected in the following formula:

[0126] ;

[0127] in, Indicates the noise performance level of the i-th monitoring point cloud; Indicates the noise conformity of the i-th monitoring point cloud, and this value is used as a confidence parameter; Represents the total number of all neighboring ranges of the i-th monitoring point cloud in the optimal neighboring range interval, which is used for mean calculation; Represents the number of all point clouds within the yth neighboring range of the i-th monitoring point cloud, which is used for mean calculation; represents the laser reflection intensity value of the ith monitoring point cloud (i.e., the first laser reflection intensity value); It represents the laser reflection intensity value of the rth point cloud within the yth neighboring range of the ith monitoring point cloud (i.e., the second laser reflection intensity value). norm() represents the normalization function.

[0128] It is further necessary to explain that The larger the value of , the greater the probability that the i-th monitoring point cloud belongs to the noise point cloud.

[0129] In the above embodiment, not only the characteristics of the noise itself are taken into account, but also the change of the reflection intensity is combined, thereby improving the sensitivity and accuracy of noise identification. In this way, it is easier to identify the point cloud area seriously affected by the noise, providing a clear goal and direction for the subsequent denoising process.

[0130] In one embodiment, in step S53, determining the offset amplitude of the noise point cloud according to the noise performance degree includes:

[0131] Step S531, determining the largest target proximity range in the optimal proximity range interval of the noise point cloud, and calculating the average noise performance level of the target proximity range.

[0132] Specifically, the calculation formula for the average noise performance level is as follows:

[0133] ;

[0134] in, Represents the total number of all point cloud data in the target neighborhood corresponding to the lth noise point cloud; Indicates the noise performance level of the cth point cloud data within the target proximity range corresponding to the lth noise point cloud. Based on this formula, it should be noted that the present application will obtain the noise performance level of all point cloud data within the target proximity range and perform superposition and summation. In order to reflect the average noise performance level, a further mean calculation is performed on the basis of the summation. The smaller the value of the average noise performance level, the smaller the noise probability of each point within the proximity range of the lth noise point cloud, and the coordinates of the lth noise point cloud can be more offset to the mean position of its proximity range.

[0135] Step S532, calculating the Euclidean distance from the noise point cloud to the coordinates of the mean of all point cloud data in the target neighborhood, adjusting the Euclidean distance based on the average noise performance level, and obtaining the amplitude of the noise point cloud offset to the coordinates of the neighborhood range mean.

[0136] Specifically, the Euclidean distance from the lth noise point cloud to the mean coordinate of all point cloud data in the vicinity of the target is calculated When, by calculating and The ratio between them is the magnitude of the displacement of the lth noise point cloud to the mean value of the adjacent range coordinates. .

[0137] In the above embodiment, on the one hand, by determining the largest target proximity range in the optimal proximity range interval of the noise point cloud and calculating the average noise performance of the range, the noise level of the surrounding environment of the noise point cloud can be more accurately evaluated. This helps to adjust the denoising strategy more finely and avoid excessive or insufficient processing of the noise point cloud. On the other hand, adjusting the Euclidean distance from the noise point cloud to the mean coordinate of the proximity range based on the average noise performance can ensure that the offset amplitude matches the noise level of the surrounding environment, thereby improving the accuracy and effect of denoising.

[0138] Please refer to Figure 3 The present application discloses a 3D scanning point cloud data denoising system, the system comprising a 3D reconstruction module, a stable fitting surface screening module, and a point cloud noise assessment module, wherein:

[0139] The three-dimensional reconstruction module is used to obtain point cloud data inside the corresponding target scan object and perform three-dimensional reconstruction to obtain a three-dimensional reconstructed model;

[0140] The stable fitting surface screening module is used to determine a plurality of monitoring point clouds in the three-dimensional reconstruction model, and identify a stable fitting surface set from each monitoring point cloud based on a change trend of points within a local range;

[0141] The point cloud noise evaluation module is used to obtain predicted coordinates for each monitoring point cloud based on the average coordinates of multiple position points closest to the monitoring point cloud in the stable fitting surface set on the X, Y, and Z axes;

[0142] The point cloud noise evaluation module is also used to calculate the coordinate differences between the predicted coordinates and the actual coordinates on the X, Y, and Z axes, and evaluate the noise compliance of each monitoring point cloud based on the average value of the three difference values ​​obtained;

[0143] The point cloud noise assessment module is also used to screen out the noise point cloud that needs to be corrected based on the noise compliance degree, and adjust the coordinate information of the noise point cloud to achieve denoising of the point cloud data.

[0144] In one of the embodiments, the above modules are also used to implement the method described in any of the above embodiments.

[0145] As can be seen from the above, the 3D scanning point cloud data denoising system disclosed in the present application identifies a stable fitting surface set based on the change trend of points in a local range, which helps to accurately reflect the geometric shape of the surface of the scanned object and improve the reliability of the monitoring point cloud; the coordinate mean in the stable fitting surface set is used to predict the coordinates of the monitoring point cloud, which reduces the impact of the fluctuation of a single point cloud data on the prediction result and improves the accuracy of the predicted coordinates; by calculating the difference between the predicted coordinates and the actual coordinates, and evaluating the noise compliance of each monitoring point cloud based on the average of the three difference values, the noise point cloud that needs to be corrected can be accurately identified; the coordinate information of the noise point cloud is adjusted to achieve denoising of the point cloud data. This process can significantly reduce the impact of noise on subsequent analysis and application and improve data quality.

[0146] The present application also discloses a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the three-dimensional scanning point cloud data denoising method is implemented.

[0147] The present application also discloses a 3D scanning point cloud data denoising device, comprising a communication interface, a memory, a communication bus and a processor, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0148] The memory is used to store computer programs;

[0149] The processor is used to implement the steps of the three-dimensional scanning point cloud data denoising method when executing the program stored in the memory.

[0150] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0151] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A 3D scanning point cloud data denoising method, characterized in that: The method comprises: S1, obtaining point cloud data corresponding to the internal part of the target scanning object and performing three-dimensional reconstruction to obtain a three-dimensional reconstructed model; S2. In the three-dimensional reconstruction model, a plurality of monitoring point clouds are determined, and based on the change trend of points within a local range, a stable fitting surface set is identified from each monitoring point cloud; Among them, a stable fitting surface set is identified from each monitoring point cloud, including: S21. Iteratively perform three-dimensional surface fitting and normal vector angle stability evaluation within different proximity ranges; S22, performing cluster analysis based on the stability of the normal vector angles of each fitting surface in different update ranges, calculating the change difference of each fitting surface in the cluster, and selecting the target cluster with the smallest change difference to construct a stable fitting surface set; S3, for each monitoring point cloud, based on the average coordinates of multiple position points closest to the monitoring point cloud in the stable fitting surface set on the X, Y, and Z axes, the predicted coordinates are obtained; S4, calculating the coordinate differences between the predicted coordinates and the actual coordinates on the X, Y, and Z axes, and evaluating the noise compliance of each monitoring point cloud based on the average of the three difference values ​​obtained; S5. Screening out the noise point cloud that needs to be corrected based on the noise compliance degree, and adjusting the coordinate information of the noise point cloud to achieve denoising of the point cloud data.

2. The 3D scanning point cloud data denoising method according to claim 1, characterized in that: In step S21, the iterative three-dimensional surface fitting and normal vector angle stability evaluation are performed in different proximity ranges, including: S211, determining an initial proximity range of the monitoring point cloud, and performing three-dimensional surface fitting within the initial proximity range to obtain a first fitting surface; S212, after calculating the first normal vector of the first fitting surface at the monitoring point cloud position, expanding along the initial neighboring range to determine a new range boundary; S213, performing surface fitting again within the new range boundary, and calculating a second normal vector of the second fitted surface at the monitoring point cloud position; S214, determining a stability degree of a normal vector angle of the second fitting surface based on a cosine value of an angle between the first normal vector and the second normal vector; S215. Continue to expand the range, and calculate the stability of the normal vector angle of the new fitting surface according to steps S214 to S215.

3. The 3D scanning point cloud data denoising method according to claim 1, characterized in that: In step S22, cluster analysis is performed based on the stability of the normal vector angles of each fitting surface in different update ranges, and the variation difference of each fitting surface in the cluster is calculated, and the target cluster with the smallest variation difference is selected to construct a stable fitting surface set, including: S221, constructing a curve of normal vector angle stability vs. neighboring range update times, with the number of times the neighboring range is updated as the abscissa and the stability of the normal vector angle of the fitting surface corresponding to the neighboring range after the update as the ordinate; S222, clustering each point in the curve to form multiple clusters; S223, for each cluster, evaluating the corresponding best fitting surface set probability by the distance between the normal vector angle stability of each point in the cluster and the mean of the normal vector angle stability of all points; S224, taking the horizontal coordinate range of the cluster with the largest probability value of the best fitting surface set as the best neighboring range interval, and constructing a stable fitting surface set based on each fitting surface in the interval.

4. The 3D scanning point cloud data denoising method according to claim 1, characterized in that: In step S5, the noise point cloud that needs to be corrected is screened out based on the noise conformity, and the coordinate information of the noise point cloud is adjusted to achieve denoising of the point cloud data, including: S51, constructing the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model based on the noise compliance degree; S52, obtaining a noise performance level threshold, and traversing each noise performance level, during the traversal process, when it is determined that the current traversal value is greater than the noise performance level threshold, taking the corresponding monitoring point cloud as a noise point cloud that needs to be corrected; S53, determining the offset amplitude of the noise point cloud according to the noise performance degree, and adjusting the coordinate information of the noise point cloud based on the offset amplitude to achieve denoising of the point cloud data.

5. The 3D scanning point cloud data denoising method according to claim 4, characterized in that: In step S51, the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model is constructed based on the noise compliance degree, including: S511. Based on the noise conformity, the noise representation degree of each monitoring point cloud in the three-dimensional reconstruction model is constructed by combining the point cloud with the difference in laser reflection intensity of each point cloud in the corresponding stable fitting surface set.

6. The 3D scanning point cloud data denoising method according to claim 5, characterized in that: In step S511, for each monitoring point cloud, the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model is constructed based on the noise compliance degree and in combination with the difference in laser reflection intensity between the point cloud and each point cloud in the corresponding stable fitting surface set, including: S5111, obtaining a first laser reflection intensity value of the monitoring point cloud and a second laser reflection intensity value of each point cloud within the optimal adjacent range interval; S5112, performing difference calculation based on the first laser reflection intensity value and each obtained second laser reflection intensity value, and accumulating and averaging these difference values ​​to obtain a laser reflection intensity difference; S5113. Calculate the product of the noise compliance degree and the laser reflection intensity difference, and perform normalization processing on it to obtain the noise performance degree of each monitoring point cloud in the three-dimensional reconstruction model.

7. The 3D scanning point cloud data denoising method according to claim 4, characterized in that: In step S53, determining the offset amplitude of the noise point cloud according to the noise performance degree includes: S531, determining the largest target proximity range in the optimal proximity range interval of the noise point cloud, and calculating the average noise performance level of the target proximity range; S532, calculating the Euclidean distance from the noise point cloud to the coordinates of the mean of all point cloud data in the vicinity of the target, adjusting the Euclidean distance based on the average noise performance level, and obtaining the amplitude of the noise point cloud offset to the coordinates of the vicinity.

8. A 3D scanning point cloud data denoising system, characterized in that: The system includes a three-dimensional reconstruction module, a stable fitting surface screening module, and a point cloud noise assessment module, wherein: The three-dimensional reconstruction module is used to obtain point cloud data inside the corresponding target scan object and perform three-dimensional reconstruction to obtain a three-dimensional reconstructed model; The stable fitting surface screening module is used to determine multiple monitoring point clouds in the three-dimensional reconstruction model, and identify a stable fitting surface set from each monitoring point cloud based on the change trend of points in a local range; wherein the stable fitting surface set is identified from each monitoring point cloud, including: iteratively performing three-dimensional surface fitting and normal vector angle stability evaluation within different proximity ranges; performing cluster analysis based on the stability of normal vector angles of various fitting surfaces belonging to different update ranges, and calculating the change difference of each fitting surface in the cluster, and selecting the target cluster with the smallest change difference to construct a stable fitting surface set; The point cloud noise evaluation module is used to obtain predicted coordinates for each monitoring point cloud based on the average coordinates of multiple position points closest to the monitoring point cloud in the stable fitting surface set on the X, Y, and Z axes; The point cloud noise evaluation module is also used to calculate the coordinate differences between the predicted coordinates and the actual coordinates on the X, Y, and Z axes, and evaluate the noise compliance of each monitoring point cloud based on the average value of the three difference values ​​obtained; The point cloud noise assessment module is also used to screen out the noise point cloud that needs to be corrected based on the noise compliance degree, and adjust the coordinate information of the noise point cloud to achieve denoising of the point cloud data.

9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for denoising three-dimensional scanning point cloud data as described in any one of claims 1 to 7 is implemented.