A method and system for verifying three-dimensional point cloud image data
By performing coordinate system calibration, preprocessing, planeness checking and noise counting on the three-dimensional point cloud image data, the problems of poor detection accuracy and reliability in the prior art are solved, and efficient data detection and processing are achieved.
Patent Information
- Application Number
- CN202510436252.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-04-09
AI Technical Summary
The prior art has problems such as poor accuracy and reliability in the detection of three-dimensional point cloud image data, high computational complexity of the detection process, and affecting the detection speed.
By performing coordinate system calibration, preprocessing, plane degree inspection, noise quantity statistics and plane normal vector deviation judgment on three-dimensional point cloud image data, comprehensive inspection is achieved, data accuracy and reliability are ensured, and calculation complexity is reduced.
It improves the accuracy and reliability of three-dimensional point cloud image data detection, reduces the computational complexity of the detection process, ensures data quality and consistency, and provides stable and reliable data acquisition and processing tools.
Smart Images

Figure CN119963549B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional point cloud image data processing, and in particular to a three-dimensional point cloud image data verification method and system. Background Art
[0002] With the continuous advancement of three-dimensional imaging technology, coordinate system calibration and three-dimensional point cloud image data quality detection play a core role in three-dimensional data processing. They are indispensable for ensuring the accuracy and reliability of three-dimensional point cloud image data, ensuring that three-dimensional point cloud image data from different sources can be accurately aligned, and effectively eliminating noise and errors, thereby improving the quality of three-dimensional point cloud image data. Therefore, it is of great significance to study the detection method of three-dimensional point cloud image data quality.
[0003] At present, 3D data processing technology has made significant progress. However, in the 3D data inspection process, most processes only focus on checking the deviation of the coordinate system, while ignoring the comprehensive evaluation of the 3D point cloud image data. As a result, even if the coordinate system is aligned correctly, the noise, redundancy, missing or uneven density problems in the 3D point cloud image data are still not discovered and corrected in a timely manner, thereby affecting the accuracy and reliability of subsequent 3D modeling, analysis or application. The prior art discloses a 3D point cloud quality assessment method and system, which obtains point cloud information and inputs it into a preset noise simulation function to generate random point cloud noise; constructs a point cloud scoring database based on the generated random point cloud noise and a preset point cloud quality assessment method; constructs a point cloud quality assessment model based on the point cloud scoring database; inputs the point cloud information into the point cloud quality assessment model, and outputs the quality score of the point cloud as the point cloud quality assessment result. However, this method uses the constructed cloud quality assessment model to perform 3D point cloud image data quality assessment, and the cloud quality assessment model requires a large amount of data training and optimization. The detection process has high computational complexity, which affects the speed of 3D point cloud image data quality detection. Summary of the Invention
[0004] In order to solve the problems of poor accuracy and reliability of three-dimensional point cloud image data detection in the above-mentioned existing technologies, high computational complexity of the detection process, and affecting the detection speed of three-dimensional point cloud image data, the present invention proposes a three-dimensional point cloud image data verification method and system. By performing comprehensive detection on three-dimensional point cloud image data, the accuracy and reliability of three-dimensional point cloud image data detection are ensured, the computational complexity of the detection process is effectively reduced, and the detection speed of three-dimensional point cloud image data is improved.
[0005] In order to achieve the above technical effects, the technical solutions of the present invention are as follows:
[0006] A method for verifying three-dimensional point cloud image data comprises the following steps:
[0007] S1. Perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration;
[0008] S2. Preprocessing the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data;
[0009] S3. Calculate the flatness of the preprocessed three-dimensional point cloud image data and determine whether the flatness meets the preset flatness standard. If so, the flatness check passes and S4 is executed; if not, the flatness check fails;
[0010] S4. Counting the number of noise points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard, and determining whether the number of noise points is within a preset threshold range, if so, the noise point number check passes, and execution proceeds to S5; if not, the noise point number check fails;
[0011] S5. Obtaining a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold, and determining whether a deviation between the plane normal vector and the reference normal vector is within the deviation range; if so, the plane normal vector check passes, and S6 is executed; if not, the normal vector check fails;
[0012] S6. Record the point corresponding to the plane normal vector as an outlier point, count the number of the outlier points, and calibrate the three-dimensional point cloud image data according to the number of the outlier points to obtain a calibration result of the three-dimensional point cloud image data.
[0013] Preferably, the coordinate system calibration of the three-dimensional point cloud image data includes:
[0014] S11. Using a calibration plate with a pattern, align the calibration plate with the world coordinate system;
[0015] S12. Using a camera to identify the pattern of the calibration plate and calculate a standard reference matrix from the camera coordinate system of the calibration plate to the world coordinate system;
[0016] S13. Compare the latest identification matrix obtained based on real-time placement position identification with the standard reference matrix saved during calibration, and check whether the coordinate system deviation between the standard reference matrix and the latest identification matrix is within the coordinate system deviation standard range. If so, the coordinate system calibration of the three-dimensional point cloud image data passes; if not, the coordinate system calibration of the three-dimensional point cloud image data fails.
[0017] Preferably, the standard reference matrix and the latest recognition matrix are both 4x4 homogeneous matrices, and the calculation expression of the standard reference matrix is:
[0018]
[0019] in, Represents the standard reference matrix determined in a theoretical or preset calibration process, represents a 3x3 rotation matrix, Represents a 3x1 translation vector;
[0020] The calculation expression of the latest recognition matrix is:
[0021]
[0022] in, Indicates the latest recognition matrix calculated by recognizing the calibration plate pattern in real time. represents the 3x3 calibration rotation matrix, Represents a 3x1 calibration translation vector.
[0023] Preferably, comparing the latest identification matrix obtained according to the real-time placement position identification with the standard reference matrix saved during calibration to check whether the coordinate system deviation between the standard reference matrix and the latest identification matrix is within the coordinate system deviation standard range includes:
[0024] S131. Based on the translation vector and the calibration translation vector, calculating the translation vector difference between the translation vector and the calibration translation vector in the X, Y, and Z directions, and obtaining the translation vector difference results between the translation vector and the calibration translation vector in the X, Y, and Z directions;
[0025] S132. Based on the rotation matrix and the calibration rotation matrix, respectively, calculate the rotation difference between the rotation matrix and the calibration rotation matrix around the X, Y, and Z axes to obtain the rotation difference results between the rotation matrix and the calibration rotation matrix around the X, Y, and Z axes;
[0026] S133. If the translation vector difference result exceeds the translation vector difference threshold or the rotation difference result exceeds the rotation difference threshold, the coordinate system deviation between the standard reference matrix and the latest identified matrix is outside the coordinate system deviation standard range; if the translation vector difference result does not exceed the translation vector difference threshold or the rotation difference result does not exceed the rotation difference threshold, the coordinate system deviation between the standard reference matrix and the latest identified matrix is within the coordinate system deviation standard range.
[0027] Preferably, the preprocessing of the three-dimensional point cloud image data includes: cropping the three-dimensional point cloud image data according to the actual size of the calibration plate, and retaining the three-dimensional point cloud image data on the plane part of the calibration plate as the preprocessed three-dimensional point cloud image data.
[0028] Preferably, calculating the flatness of the preprocessed three-dimensional point cloud image data and determining whether the flatness meets a preset flatness standard include:
[0029] S31. Define a plane passing through the origin , and the normal vector is The plane is the standard plane;
[0030] S32. Calculate each point P ( x , y , z ) to the basic distance of the standard plane d as follows:
[0031]
[0032] S33. Based on the distance d , calculate the average distance as follows:
[0033]
[0034] in For point P( x , y , z )
[0035] S34. Based on the average distance , calculate the first standard deviation as follows:
[0036]
[0037] S35. If the first standard deviation Greater than the first standard deviation T1 , then the flatness does not meet the preset flatness standard; if , the flatness meets the preset flatness standard.
[0038] Preferably, counting the number of noise points in the three-dimensional point cloud image data whose flatness meets a preset flatness standard includes:
[0039] S41. Obtaining points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard , by searching for the point A point within a sphere or cube with the center as the center, determining the point The number of points in the neighborhood;
[0040] S42. Calculation point Average distance to other points in the neighborhood as follows:
[0041]
[0042] in, Indicates a point the number of points within the domain; Indicates a point and point The Euclidean distance between i Represents a specific point in the 3D point cloud image data, that is, the center point under investigation; Represents the i-th point in the 3D point cloud image data; j Indicates that this represents any other point in the 3D point cloud image data, which may be a point One of the neighbors; Represents a set consisting of all points points in the neighborhood of ;
[0043] S43. Based on the average distance , calculate the second standard deviation as follows:
[0044]
[0045] S44. Based on the second standard deviation , calculate the outlier factor as follows:
[0046]
[0047] in, represents the standard deviation ratio;
[0048] S45. Calculation point Arrive The distance between the nearest neighbor points in the neighborhood, if the distance is greater than the outlier factor , then point is identified as noise; otherwise, the point Not identified as noise;
[0049] S46. Count all points The number of noise points identified as noise .
[0050] Preferably, obtaining the plane normal vector of each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold range, and determining whether a deviation value between the plane normal vector and the preset normal vector is within a deviation range includes:
[0051] S51. Perform a dot product operation on the plane normal vector and the reference normal vector to obtain a dot product result;
[0052] S52. Based on the dot product result, calculate the angle between the plane normal vector and the reference normal vector;
[0053] S53. If the angle is not greater than the angle threshold, the deviation value between the plane normal vector and the preset normal vector is within the deviation range; otherwise, the deviation value between the plane normal vector and the preset normal vector exceeds the deviation range.
[0054] The present invention also proposes a three-dimensional point cloud image data verification system, comprising:
[0055] A coordinate system calibration module is used to perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration;
[0056] A preprocessing module, configured to preprocess the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data;
[0057] a flatness checking module, configured to calculate the flatness of the pre-processed three-dimensional point cloud image data and determine whether the flatness meets a preset flatness standard; if so, the flatness check passes; if not, the flatness check fails;
[0058] a noise point checking module, configured to count the number of noise points in the three-dimensional point cloud image data whose flatness meets a preset flatness standard, and determine whether the number of noise points is within a preset number threshold range; if so, the noise point number check passes; if not, the noise point number check fails;
[0059] a normal vector checking module, configured to obtain a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold, and determine whether a deviation value between the plane normal vector and the reference normal vector is within a deviation range; if so, the plane normal vector check passes; if not, the normal vector check fails;
[0060] The verification module is used to record the points corresponding to the plane normal vectors as abnormal points, count the number of the abnormal points, and verify the three-dimensional point cloud image data according to the number of the abnormal points to obtain the verification result of the three-dimensional point cloud image data.
[0061] The present invention also provides a computer device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0062] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the three-dimensional point cloud image data verification method.
[0063] Compared with the prior art, the beneficial effects of the technical solution of the present invention are:
[0064] The present invention proposes a method and system for calibrating 3D point cloud image data, which first performs coordinate system calibration on the 3D point cloud image data, pre-processes the 3D point cloud image data after the coordinate system calibration passes, and then calculates the flatness of the pre-processed 3D point cloud image data and checks the flatness; then checks the number of noise points in the 3D point cloud image data whose flatness meets a preset flatness standard, and then checks the plane normal vector of each point in the 3D point cloud image data whose number of noise points is within a preset number threshold range, and further checks the plane normal vector after passing the plane normal vector check, and obtains the 3D point cloud image data calibration result according to the number of abnormal points; the present invention calibrates the 3D point cloud through an automated coordinate system calibration and 3D point cloud image data quality calibration process. The image data is fully inspected to ensure the accuracy and reliability of the 3D point cloud image data detection, and prevent data deviations caused by equipment aging, environmental interference and other factors, thereby ensuring the quality and consistency of the data in subsequent applications; the 3D point cloud image data quality verification process is implemented in sequence through flatness inspection, noise number inspection, plane normal vector inspection and 3D point cloud image data verification, which effectively reduces the computational complexity of the detection process and improves the 3D point cloud image data detection speed; the present invention also significantly improves the stability and predictability of data application results through strict quality control of coordinate system calibration and 3D point cloud image data quality verification, ensuring that data changes in any field will not lead to deviations in application results, thereby providing users with a stable and reliable 3D data acquisition and processing tool. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flowchart showing a method for verifying three-dimensional point cloud image data according to an embodiment of the present invention is provided;
[0066] Figure 2 A structural diagram showing a calibration plate proposed in an embodiment of the present invention;
[0067] Figure 3 A structural diagram of a three-dimensional point cloud image data verification system proposed in an embodiment of the present invention;
[0068] Figure 4 A block diagram of a computer device proposed in an embodiment of the present invention is shown.
[0069] 401. Processor; 402. Memory; 403. Communication interface; 404. Communication bus; 405. Executable instructions. DETAILED DESCRIPTION
[0070] The accompanying drawings are for illustrative purposes only and are not to be construed as limiting this patent;
[0071] It is understandable to those skilled in the art that some well-known contents may be omitted in the drawings;
[0072] The technical solution of the present invention is further described below with reference to the accompanying drawings and embodiments.
[0073] Example 1
[0074] like Figure 1 As shown, this embodiment proposes a method for verifying three-dimensional point cloud image data, including the following steps:
[0075] S1. Perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration;
[0076] In S1, see Figure 1 and Figure 2 , the coordinate system calibration of the three-dimensional point cloud image data includes:
[0077] S11. Using a calibration plate with a pattern, align the calibration plate with the world coordinate system;
[0078] S12. Using a camera to identify the pattern of the calibration plate and calculate a standard reference matrix from the camera coordinate system of the calibration plate to the world coordinate system; wherein the camera is a 3D depth camera;
[0079] S13. Compare the latest recognition matrix obtained based on the real-time placement position recognition with the standard reference matrix saved during calibration to check whether the coordinate system deviation between the standard reference matrix and the latest recognition matrix is within the coordinate system deviation standard range. If so, the coordinate system calibration of the 3D point cloud image data passes; if not, the coordinate system calibration of the 3D point cloud image data fails.
[0080] In S13, the standard reference matrix and the latest recognition matrix are both 4x4 homogeneous matrices, representing the checked transformation matrix from the camera coordinate system to the world coordinate system represented by the calibration plate placement position. The calculation expression of the standard reference matrix is:
[0081]
[0082] in, Represents the standard reference matrix determined in a theoretical or preset calibration process, represents a 3x3 rotation matrix, Represents a 3x1 translation vector;
[0083] The latest identification matrix is obtained through an actual calibration process, and the calculation expression of the latest identification matrix is:
[0084]
[0085] in, Indicates the latest recognition matrix calculated by recognizing the calibration plate pattern in real time. represents the 3x3 calibration rotation matrix, Represents a 3x1 calibration translation vector.
[0086] The step of comparing the latest identification matrix obtained based on the real-time placement position identification with the standard reference matrix saved during calibration to check whether the coordinate system deviation between the standard reference matrix and the latest identification matrix is within the coordinate system deviation standard range includes:
[0087] S131. Based on the translation vector and the calibration translation vector, calculating the translation vector difference between the translation vector and the calibration translation vector in the X, Y, and Z directions, and obtaining the translation vector difference results between the translation vector and the calibration translation vector in the X, Y, and Z directions;
[0088] In S131, the calculation expression of the translation vector difference result is as follows:
[0089]
[0090]
[0091]
[0092] in, Represents the translation vector difference result in the X direction, Represents the translation vector difference result in the Y direction, Represents the translation vector difference result in the Z direction, Indicates the translation component along the X direction in the standard reference matrix determined in the theoretical or preset calibration process. This value is obtained and stored from the previous calibration process as a reference standard. represents the translation component of the standard reference matrix in the Y direction, represents the component of the standard reference matrix in the Z direction, Indicates the translation component in the X direction of the latest recognition matrix calculated by recognizing the calibration plate pattern in real time. This value is calculated in real time from the latest calibration process. represents the translation component of the latest identification matrix along the Y direction, represents the translation component of the latest identification matrix along the Z direction;
[0093] S132. Based on the rotation matrix and the calibration rotation matrix, respectively, calculate the rotation difference between the rotation matrix and the calibration rotation matrix around the X, Y, and Z axes to obtain the rotation difference results between the rotation matrix and the calibration rotation matrix around the X, Y, and Z axes;
[0094] In S132, the calculation expression of the rotation difference result is as follows:
[0095]
[0096]
[0097]
[0098] The angle calculation function is as follows:
[0099]
[0100] in, Represents the rotation difference result around the X axis, Represents the rotation difference result around the Y axis, Represents the rotation difference result around the Z axis, represents the rotation matrix around the X axis in the standard reference matrix, represents the rotation matrix around the Y axis in the standard reference matrix, represents the rotation matrix around the Z axis in the standard reference matrix, represents the calibration rotation matrix around the X axis in the latest identification matrix, represents the calibration rotation matrix around the Y axis in the latest recognition matrix, represents the calibration rotation matrix around the Z axis in the latest identification matrix, is the angle calculation function, Indicates the angle value converted from the rotation matrix around each axis in the standard reference matrix to the axis-angle form. Indicates the angle value converted from the rotation matrix around each axis in the latest identified matrix into the axis-angle form;
[0101] S133. If the translation vector difference result exceeds the translation vector difference threshold or the rotation difference result exceeds the rotation difference threshold, the coordinate system deviation between the standard reference matrix and the latest identified matrix is outside the coordinate system deviation standard range; if the translation vector difference result does not exceed the translation vector difference threshold or the rotation difference result does not exceed the rotation difference threshold, the coordinate system deviation between the standard reference matrix and the latest identified matrix is within the coordinate system deviation standard range.
[0102] S2. Preprocessing the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data;
[0103] In S2, the three-dimensional point cloud image data is preprocessed, including: cropping the three-dimensional point cloud image data according to the actual size of the calibration plate, and retaining the three-dimensional point cloud image data on the plane part of the calibration plate as the preprocessed three-dimensional point cloud image data.
[0104] S3. Calculate the flatness of the preprocessed three-dimensional point cloud image data and determine whether the flatness meets the preset flatness standard. If so, the flatness check passes and S4 is executed; if not, the flatness check fails; and the verification of the three-dimensional point cloud image data ends;
[0105] In S3, a smaller standard deviation value means that the point cloud is more evenly distributed on the plane and has a higher flatness. Calculating the flatness of the preprocessed three-dimensional point cloud image data and determining whether the flatness meets the preset flatness standard include:
[0106] S31. Define a plane passing through the origin , and the normal vector is The plane is the standard plane;
[0107] S32. Calculate each point P ( x , y , z ) to the basic distance of the standard plane d as follows:
[0108]
[0109] S33. Based on the distance d , calculate the average distance as follows:
[0110]
[0111] in For point P( x , y , z )
[0112] S34. Based on the average distance , calculate the first standard deviation as follows:
[0113]
[0114] S35. If the first standard deviation Greater than the first standard deviation T1 , then the flatness does not meet the preset flatness standard; if , the flatness meets the preset flatness standard.
[0115] S4. Counting the number of noise points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard, and determining whether the number of noise points is within a preset threshold range, if so, the noise point number check passes, and S5 is executed; if not, the noise point number check fails, and the verification of the three-dimensional point cloud image data ends;
[0116] In S4, local statistics are used to identify points that are far away from other points. These points are considered as noise points. The counting of the number of noise points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard includes:
[0117] S41. Obtaining points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard , by searching for the point A point within a sphere or cube with the center as the center, determining the point The number of points in the neighborhood;
[0118] S42. Calculation point Average distance to other points in the neighborhood as follows:
[0119]
[0120] in, Indicates a point the number of points within the domain; Indicates a point and point The Euclidean distance between i Represents a specific point in the 3D point cloud image data, that is, the center point under investigation; Represents the i-th point in the 3D point cloud image data; j Indicates that this represents any other point in the 3D point cloud image data, which may be a point One of the neighbors; Represents a set consisting of all points points in the neighborhood of ;
[0121] S43. Based on the average distance , calculate the second standard deviation as follows:
[0122]
[0123] S44. Based on the second standard deviation , calculate the outlier factor as follows:
[0124]
[0125] in, Expressing the ratio of standard deviations; using the ratio of standard deviations To define the outlier factor , which is usually a value greater than 1, such as 2 or 3, indicating how many standard deviations away from the mean a point is considered an anomaly:
[0126] S45. Calculation point Arrive The distance between the nearest neighbor points in the neighborhood, if the distance is greater than the outlier factor , then point is identified as noise; otherwise, the point Not identified as noise;
[0127] S46. Count all points The number of noise points identified as noise ;
[0128] when When the number of noise points is outside the preset number threshold range, When , the number of noise points is within a preset number threshold range;
[0129] S5. Obtaining a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset threshold value, and determining whether a deviation between the plane normal vector and the reference normal vector is within the deviation range; if so, the plane normal vector check passes, and S6 is executed; if not, the normal vector check fails, and the verification of the three-dimensional point cloud image data ends;
[0130] In S5, obtaining the plane normal vector of each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold range, and determining whether a deviation value between the plane normal vector and the preset normal vector is within a deviation range, includes:
[0131] S51. Perform a dot product operation on the plane normal vector and the reference normal vector to obtain a dot product result;
[0132] Each point in the three-dimensional point cloud image data described in S5 is recorded as The plane normal vector is , the reference normal vector is recorded as , dot product result The calculation expression is:
[0133] = )
[0134] S52. Based on the dot product result, calculate the angle between the plane normal vector and the reference normal vector;
[0135] Calculating the angle between the plane normal vector and the reference normal vector includes:
[0136] Using the dot product result , calculate the cosine of the angle between the plane normal vector and the reference normal vector as follows:
[0137]
[0138] is the modulus of the plane normal vector, are the modulus of the reference normal vector respectively;
[0139] Magnitude of the plane normal vector The calculation expression is as follows:
[0140]
[0141] Magnitude of the reference normal vector The calculation expression is as follows:
[0142]
[0143] The cosine value of the angle is converted into the corresponding angle as follows:
[0144]
[0145] S53. If the angle Not greater than the angle threshold , the deviation between the plane normal vector and the preset normal vector is within the deviation range; otherwise, the deviation between the plane normal vector and the preset normal vector exceeds the deviation range, and the point corresponding to the plane normal vector is regarded as an abnormal point;
[0146] S6. Record the point corresponding to the plane normal vector as an outlier point, count the number of the outlier points, and calibrate the three-dimensional point cloud image data according to the number of the outlier points to obtain a calibration result of the three-dimensional point cloud image data.
[0147] In S6, the number of abnormal points is counted ,when When , the three-dimensional point cloud image data quality check result fails; when The three-dimensional point cloud image data quality verification result passes.
[0148] In this embodiment, the coordinate system of the 3D point cloud image data is first calibrated. After the coordinate system calibration is passed, the 3D point cloud image data is preprocessed. Secondly, the flatness of the preprocessed 3D point cloud image data is calculated and the flatness is checked. Then, the number of noise points in the 3D point cloud image data whose flatness meets the preset flatness standard is checked. Then, the plane normal vector of each point in the 3D point cloud image data whose number of noise points is within the preset number threshold is checked. After the plane normal vector check is passed, the 3D point cloud image data is verified according to the number of abnormal points to obtain the 3D point cloud image data verification result. The present invention comprehensively verifies the 3D point cloud image data through the automated coordinate system calibration and 3D point cloud image data quality verification process. Detection ensures the accuracy and reliability of 3D point cloud image data detection, prevents data deviations caused by equipment aging, environmental interference and other factors, thereby ensuring the quality and consistency of data in subsequent applications; the 3D point cloud image data quality verification process is implemented in sequence through flatness inspection, noise number inspection, plane normal vector inspection and 3D point cloud image data verification, which effectively reduces the computational complexity of the detection process and improves the 3D point cloud image data detection speed; the present invention also significantly improves the stability and predictability of data application results through strict quality control of coordinate system calibration and 3D point cloud image data quality verification, ensuring that data changes in any field will not lead to deviations in application results, thereby providing users with a stable and reliable 3D data acquisition and processing tool.
[0149] Example 2
[0150] See also Figure 3 This embodiment proposes a three-dimensional point cloud image data verification system, including:
[0151] A coordinate system calibration module is used to perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration;
[0152] A preprocessing module, configured to preprocess the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data;
[0153] a flatness checking module, configured to calculate the flatness of the pre-processed three-dimensional point cloud image data and determine whether the flatness meets a preset flatness standard; if so, the flatness check passes; if not, the flatness check fails;
[0154] a noise point checking module, configured to count the number of noise points in the three-dimensional point cloud image data whose flatness meets a preset flatness standard, and determine whether the number of noise points is within a preset number threshold range; if so, the noise point number check passes; if not, the noise point number check fails;
[0155] a normal vector checking module, configured to obtain a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold, and determine whether a deviation value between the plane normal vector and the reference normal vector is within a deviation range; if so, the plane normal vector check passes; if not, the normal vector check fails;
[0156] The verification module is used to record the points corresponding to the plane normal vectors as abnormal points, count the number of the abnormal points, and verify the three-dimensional point cloud image data according to the number of the abnormal points to obtain a point cloud verification result.
[0157] Example 3
[0158] See also Figure 4 This embodiment further provides a computer device, including: a processor 401, a memory 402, a communication interface 403, and a communication bus 404, wherein the processor 401, the memory 402, and the communication interface 403 communicate with each other via the communication bus 404;
[0159] Processor 401, memory 402, and communication interface 403 communicate with each other via communication bus 404. Communication interface 403 is used for network communication with other devices, such as clients or other servers. Processor 401 is used to execute executable instructions 405, specifically, the steps described in the embodiment of the three-dimensional point cloud image data verification method.
[0160] Specifically, executable instructions 405 may include program code. Processor 401 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. A computer device includes one or more processors, which may be of the same type, such as one or more CPUs, or different types, such as one or more CPUs and one or more ASICs.
[0161] The memory 402 is used to store executable instructions 405. The memory 402 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0162] The executable instructions 405 may be specifically invoked by the processor 401 to cause the computer device to perform the following operations:
[0163] S1. Perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration;
[0164] S2. Preprocessing the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data;
[0165] S3. Calculate the flatness of the preprocessed three-dimensional point cloud image data and determine whether the flatness meets the preset flatness standard. If so, the flatness check passes and S4 is executed; if not, the flatness check fails; and the verification of the three-dimensional point cloud image data ends;
[0166] S4. Counting the number of noise points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard, and determining whether the number of noise points is within a preset threshold range, if so, the noise point number check passes, and S5 is executed; if not, the noise point number check fails, and the verification of the three-dimensional point cloud image data ends;
[0167] S5. Obtaining a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset threshold value, and determining whether a deviation between the plane normal vector and the reference normal vector is within the deviation range; if so, the plane normal vector check passes, and S6 is executed; if not, the normal vector check fails, and the verification of the three-dimensional point cloud image data ends;
[0168] S6. Record the point corresponding to the plane normal vector as an outlier point, count the number of the outlier points, and calibrate the three-dimensional point cloud image data according to the number of the outlier points to obtain a calibration result of the three-dimensional point cloud image data.
[0169] In this embodiment, the coordinate system of the 3D point cloud image data is first calibrated. After the coordinate system calibration is passed, the 3D point cloud image data is preprocessed. Secondly, the flatness of the preprocessed 3D point cloud image data is calculated and the flatness is checked. Then, the number of noise points in the 3D point cloud image data whose flatness meets the preset flatness standard is checked. Then, the plane normal vector of each point in the 3D point cloud image data whose number of noise points is within the preset number threshold is checked. After the plane normal vector check is passed, the 3D point cloud image data is verified according to the number of abnormal points to obtain the 3D point cloud image data verification result. The present invention comprehensively verifies the 3D point cloud image data through the automated coordinate system calibration and 3D point cloud image data quality verification process. Detection ensures the accuracy and reliability of 3D point cloud image data detection, prevents data deviations caused by equipment aging, environmental interference and other factors, thereby ensuring the quality and consistency of data in subsequent applications; the 3D point cloud image data quality verification process is implemented in sequence through flatness inspection, noise number inspection, plane normal vector inspection and 3D point cloud image data verification, which effectively reduces the computational complexity of the detection process and improves the 3D point cloud image data detection speed; the present invention also significantly improves the stability and predictability of data application results through strict quality control of coordinate system calibration and 3D point cloud image data quality verification, ensuring that data changes in any field will not lead to deviations in application results, thereby providing users with a stable and reliable 3D data acquisition and processing tool.
[0170] Obviously, the above embodiments of the present invention are merely examples for the purpose of clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Those skilled in the art will appreciate that other variations or modifications can be made based on the above description. It is not necessary and impossible to enumerate all embodiments here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the claims of the present invention.
Claims
1. A method for calibrating three-dimensional point cloud image data, characterized in that: The following steps are involved: S1. Perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration; S2. Preprocessing the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data; S3. Calculate the flatness of the preprocessed three-dimensional point cloud image data and determine whether the flatness meets the preset flatness standard. If so, the flatness check passes and S4 is executed; if not, the flatness check fails; S4. Counting the number of noise points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard, and determining whether the number of noise points is within a preset threshold range, if so, the noise point number check passes, and execution proceeds to S5; if not, the noise point number check fails; S5. Obtaining a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold, and determining whether a deviation between the plane normal vector and the reference normal vector is within the deviation range; if so, the plane normal vector check passes, and S6 is executed; if not, the normal vector check fails; S6. Record the point corresponding to the plane normal vector as an outlier point, count the number of the outlier points, and calibrate the three-dimensional point cloud image data according to the number of the outlier points to obtain a calibration result of the three-dimensional point cloud image data.
2. The method for calibrating three-dimensional point cloud image data according to claim 1, characterized in that: The coordinate system calibration of the three-dimensional point cloud image data includes: S11. Using a calibration plate with a pattern, align the calibration plate with the world coordinate system; S12. Using a camera to identify the pattern of the calibration plate and calculate a standard reference matrix from the camera coordinate system of the calibration plate to the world coordinate system; S13. Compare the latest identification matrix obtained based on real-time placement position identification with the standard reference matrix saved during calibration, and check whether the coordinate system deviation between the standard reference matrix and the latest identification matrix is within the coordinate system deviation standard range. If so, the coordinate system calibration of the three-dimensional point cloud image data passes; if not, the coordinate system calibration of the three-dimensional point cloud image data fails.
3. The method for calibrating three-dimensional point cloud image data according to claim 2, characterized in that: The standard reference matrix and the latest recognition matrix are both 4x4 homogeneous matrices. The calculation expression of the standard reference matrix is: in, Represents the standard reference matrix determined in a theoretical or preset calibration process, represents a 3x3 rotation matrix, Represents a 3x1 translation vector; The calculation expression of the latest recognition matrix is: in, Indicates the latest recognition matrix calculated by recognizing the calibration plate pattern in real time. represents the 3x3 calibration rotation matrix, Represents a 3x1 calibration translation vector.
4. The method for calibrating three-dimensional point cloud image data according to claim 3, wherein: The step of comparing the latest identification matrix obtained based on the real-time placement position identification with the standard reference matrix saved during calibration to check whether the coordinate system deviation between the standard reference matrix and the latest identification matrix is within the coordinate system deviation standard range includes: S131. Based on the translation vector and the calibration translation vector, calculating the translation vector difference between the translation vector and the calibration translation vector in the X, Y, and Z directions, and obtaining the translation vector difference results between the translation vector and the calibration translation vector in the X, Y, and Z directions; S132. Based on the rotation matrix and the calibration rotation matrix, respectively, calculate the rotation difference between the rotation matrix and the calibration rotation matrix around the X, Y, and Z axes to obtain the rotation difference results between the rotation matrix and the calibration rotation matrix around the X, Y, and Z axes; S133. If the translation vector difference result exceeds the translation vector difference threshold or the rotation difference result exceeds the rotation difference threshold, the coordinate system deviation between the standard reference matrix and the latest identified matrix is outside the coordinate system deviation standard range; if the translation vector difference result does not exceed the translation vector difference threshold or the rotation difference result does not exceed the rotation difference threshold, the coordinate system deviation between the standard reference matrix and the latest identified matrix is within the coordinate system deviation standard range.
5. The method for calibrating three-dimensional point cloud image data according to claim 4, characterized in that: The preprocessing of the three-dimensional point cloud image data includes: cutting the three-dimensional point cloud image data according to the actual size of the calibration plate, and retaining the three-dimensional point cloud image data on the plane part of the calibration plate as the preprocessed three-dimensional point cloud image data.
6. The method for calibrating three-dimensional point cloud image data according to claim 1, characterized in that: Calculating the flatness of the preprocessed three-dimensional point cloud image data and determining whether the flatness meets a preset flatness standard include: S31. Define a plane passing through the origin , and the normal vector is The plane is the standard plane; S32. Calculate each point P ( x , y , z ) to the basic distance of the standard plane d as follows: S33. Based on the distance d , calculate the average distance as follows: in For point P( x , y , z ) S34. Based on the average distance , calculate the first standard deviation as follows: S35. If the first standard deviation Greater than the first standard deviation T1 , then the flatness does not meet the preset flatness standard; if , the flatness meets the preset flatness standard.
7. The method for calibrating three-dimensional point cloud image data according to claim 1, characterized in that: The counting of the number of noise points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard includes: S41. Obtaining points in the three-dimensional point cloud image data whose flatness meets the preset flatness standard , by searching for the point A point within a sphere or cube with the center as the center, determining the point The number of points in the neighborhood; S42. Calculation point Average distance to other points in the neighborhood as follows: in, Indicates a point the number of points within the domain; Indicates a point and point The Euclidean distance between i Represents a specific point in the 3D point cloud image data, that is, the center point under investigation; Represents the i-th point in the 3D point cloud image data; j Indicates that this represents any other point in the 3D point cloud image data, which may be a point One of the neighbors; Represents a set consisting of all points points in the neighborhood of ; S43. Based on the average distance , calculate the second standard deviation as follows: S44. Based on the second standard deviation , calculate the outlier factor as follows: in, represents the standard deviation ratio; S45. Calculation point Arrive The distance between the nearest neighbor points in the neighborhood, if the distance is greater than the outlier factor , then point is identified as noise; otherwise, the point Not identified as noise; S46. Count all points The number of noise points identified as noise .
8. The method for calibrating three-dimensional point cloud image data according to claim 1, characterized in that: The obtaining of the plane normal vector of each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold range, and determining whether a deviation value between the plane normal vector and the preset normal vector is within a deviation range, includes: S51. Perform a dot product operation on the plane normal vector and the reference normal vector to obtain a dot product result; S52. Based on the dot product result, calculate the angle between the plane normal vector and the reference normal vector; S53. If the angle is not greater than the angle threshold, the deviation value between the plane normal vector and the preset normal vector is within the deviation range; otherwise, the deviation value between the plane normal vector and the preset normal vector exceeds the deviation range.
9. A three-dimensional point cloud image data verification system, characterized in that: include: A coordinate system calibration module is used to perform coordinate system calibration on the three-dimensional point cloud image data to obtain three-dimensional point cloud image data that has passed the coordinate system calibration; A preprocessing module, configured to preprocess the three-dimensional point cloud image data to obtain preprocessed three-dimensional point cloud image data; a flatness checking module, configured to calculate the flatness of the pre-processed three-dimensional point cloud image data and determine whether the flatness meets a preset flatness standard; if so, the flatness check passes; if not, the flatness check fails; a noise point checking module, configured to count the number of noise points in the three-dimensional point cloud image data whose flatness meets a preset flatness standard, and determine whether the number of noise points is within a preset number threshold range; if so, the noise point number check passes; if not, the noise point number check fails; a normal vector checking module, configured to obtain a plane normal vector and a reference normal vector for each point in the three-dimensional point cloud image data in which the number of noise points is within a preset number threshold, and determine whether a deviation value between the plane normal vector and the reference normal vector is within a deviation range; if so, the plane normal vector check passes; if not, the normal vector check fails; The verification module is used to record the points corresponding to the plane normal vectors as abnormal points, count the number of the abnormal points, and verify the three-dimensional point cloud image data according to the number of the abnormal points to obtain the verification result of the three-dimensional point cloud image data.
10. A computer device, characterized in that: include: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the three-dimensional point cloud image data verification method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Three-dimensional point cloud registration method and system based on single cube
CN114882085A
Point cloud data processing device, point cloud data processing system, point cloud data processing method, and point cloud data processing program
US20130121564A1