A method and system for identifying and processing denture defect repair
By calculating the flatness and abnormality in the denture point cloud, and eliminating abnormal feature points, the accuracy of denture point cloud registration is improved, the problem of low denture point cloud registration accuracy in the existing technology is solved, and more accurate defect detection is achieved Detect and fix.
Patent Information
- Application Number
- CN202410781503.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-18
AI Technical Summary
The accuracy of denture point cloud registration in the existing technology is low, resulting in inaccurate quality inspection results and affecting the accuracy of defect identification and repair.
By obtaining the point cloud of the denture to be detected and the standard denture, the SIFT algorithm is used to detect feature points, calculate the flatness and abnormality, eliminate abnormal feature points, and improve the accuracy of point cloud registration.
It improves the accuracy of point cloud registration, ensures the accuracy of defect detection and repair, reduces the risk of incorrect registration, and enhances the ability to identify denture defects.
Smart Images

Figure CN118365639B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of denture defect recognition, and in particular to a denture defect repair recognition processing method and system. Background Art
[0002] During the denture production process, defects and other quality problems may occur in the dentures due to reasons such as material properties, production processes or improper operations. When a denture has quality defects, it may not only affect the wearing comfort but also endanger the health of the gums. Therefore, in order to ensure the quality of the product, manufacturers usually conduct quality inspections or defect identification on the dentures they produce. Based on the inspection results, defective dentures can be repaired in a timely manner to prevent defective dentures from entering the market.
[0003] In the prior art, it is usually the case that the denture to be inspected is first point cloud-aligned with the standard denture, and then quality inspection or defect identification is performed based on the point cloud alignment. However, dentures have fine features and irregular surfaces. Even tiny defects may cause inaccurate alignment of the denture to be inspected with the standard denture during point cloud alignment. Inaccurate point cloud alignment will also lead to low accuracy of subsequent quality inspection results. Therefore, improving the accuracy of point cloud alignment is an issue that needs to be urgently addressed. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a method and system for identifying and processing denture defect repair, and the technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for identifying and processing a denture defect repair, comprising the following steps:
[0006] Obtaining a point cloud to be tested corresponding to the denture to be tested, each point to be tested in the point cloud to be tested, and a standard point cloud corresponding to the standard denture;
[0007] According to the distances between the various test points in the test point cloud, the target flatness corresponding to the various test points, the target flatness grade value corresponding to the various test points, and the target nearest neighbor test point sequence corresponding to the various test points are obtained;
[0008] According to the target flatness corresponding to each of the test points, the corresponding target flatness grade value and the corresponding target nearest neighbor test point sequence, the target abnormality degree corresponding to each of the test points is obtained, and the target abnormality degree can reflect the probability that the area where the test point is located belongs to a defect area;
[0009] The SIFT algorithm is used to detect feature test points on the test point cloud to obtain each feature test point in the test point cloud, and the abnormal feature test points are eliminated according to the target abnormality degree corresponding to the nearest neighbor test point of each feature test point to obtain the target point cloud corresponding to the denture to be detected; wherein the nearest neighbor test point of the feature test point refers to the test point in the target nearest neighbor test point sequence corresponding to the feature test point; the target point cloud is point cloud registered with the standard point cloud to obtain a registration result, and according to the registration result, it is judged whether the denture to be detected has defects and whether to repair the defects of the denture to be detected.
[0010] In a second aspect, the present invention provides a denture defect repair identification and processing system, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the above-mentioned denture defect repair identification and processing method.
[0011] Preferably, the method for obtaining the target flatness corresponding to each of the test points, the target flatness grade value corresponding to each of the test points, and the target nearest neighbor test point sequence corresponding to each of the test points includes:
[0012] For any point to be measured in the point cloud to be measured:
[0013] Use kd-tree to search for A1 test points that are the nearest neighbors of the test point in the K-dimensional space, and record them all as the nearest neighbor test points corresponding to the test point, and record the sequence constructed by all the nearest neighbor test points corresponding to the test point as the nearest neighbor test point sequence corresponding to the test point;
[0014] Perform PCA principal component analysis on all test points in the nearest neighbor test point sequence corresponding to the test point to obtain the eigenvectors corresponding to each eigenvalue, and record the eigenvector corresponding to the minimum eigenvalue as the normal vector of the test point;
[0015] According to the nearest neighboring test point sequence corresponding to the test point, each nearest neighboring test point subsequence corresponding to the test point is obtained;
[0016] According to the normal vector of the test point and the normal vectors of each nearest neighbor test point in each nearest neighbor test point subsequence corresponding to the test point, obtain each flatness corresponding to the test point, the characteristic nearest neighbor test point sequence corresponding to each flatness, and the level value of each flatness;
[0017] Calculate the average of all flatness values corresponding to the point to be tested, and record it as the average flatness value corresponding to the point to be tested;
[0018] Among all the flatnesses corresponding to the point to be tested, the flatnesses that are greater than or equal to the average of the flatnesses corresponding to the point to be tested are recorded as the flatness to be selected corresponding to the point to be tested;
[0019] The absolute value of the difference between each selected flatness corresponding to the point to be tested and the flatness mean value is recorded as the difference value of the corresponding flatness to be selected, the selected flatness corresponding to the minimum difference value among the difference values of each selected flatness corresponding to the point to be tested is recorded as the target flatness corresponding to the point to be tested, the grade value of the selected flatness corresponding to the minimum difference value is recorded as the grade value of the target flatness corresponding to the point to be tested, and the characteristic nearest neighbor test point sequence corresponding to the target flatness is recorded as the target nearest neighbor test point sequence corresponding to the point to be tested.
[0020] Preferably, the method for obtaining each subsequence of the nearest neighboring test points corresponding to the test point includes:
[0021] The sequence constructed by the first B1 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the first nearest neighbor point subsequence corresponding to the point to be tested, the sequence constructed by the first B2 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the second nearest neighbor point subsequence corresponding to the point to be tested, the sequence constructed by the first B3 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the third nearest neighbor point subsequence corresponding to the point to be tested, and the sequence constructed by the first B4 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the fourth nearest neighbor point subsequence corresponding to the point to be tested.
[0022] Preferably, obtaining each flatness corresponding to the point to be tested, a sequence of characteristic nearest neighbor points to be tested corresponding to each flatness, and a grade value of each flatness corresponding to each flatness includes:
[0023] For any nearest neighbor test point in the bth nearest neighbor test point subsequence corresponding to the test point, the angle between the normal vector of the test point and the normal vector of the nearest neighbor test point is recorded as the angle corresponding to the nearest neighbor test point;
[0024] The cosine value of the mean of the angles corresponding to all the nearest neighbor points to be tested in the bth nearest neighbor point to be tested subsequence is recorded as the bth flatness corresponding to the point to be tested, the bth nearest neighbor point to be tested subsequence corresponding to the point to be tested is recorded as the characteristic nearest neighbor point to be tested sequence corresponding to the bth flatness corresponding to the point to be tested, and the level value of the bth flatness corresponding to the point to be tested is recorded as b.
[0025] Preferably, the method for obtaining the target abnormality degree corresponding to each of the test points includes:
[0026] According to the target nearest neighbor test point sequence corresponding to each test point, obtain each first plane corresponding to each test point, each plane test point corresponding to each test point, and each fourth test point set corresponding to each test point;
[0027] For the cth point to be measured in the point cloud to be measured;
[0028] The set constructed by all the remaining test points in the test point cloud except the cth test point is recorded as the set of test points to be selected corresponding to the cth test point, and all the test points in the set of test points to be selected are recorded as the test points to be selected; for any test point to be selected in the set of test points to be selected, if it is determined that the cth test point exists in the fourth set of test points corresponding to the test point to be selected, the test point to be selected is recorded as the reference test point corresponding to the cth test point;
[0029] For the i-th reference test point corresponding to the c-th test point in the test point cloud:
[0030] For any first plane corresponding to the i-th reference point to be measured, if it is determined that the c-th point to be measured is located on the first plane, the first plane is recorded as the target plane corresponding to the i-th reference point to be measured;
[0031] The absolute value of the difference between the horizontal coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the horizontal coordinate value of the i-th reference test point is recorded as the first actual horizontal variation; the absolute value of the difference between the vertical coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the vertical coordinate value of the i-th reference test point is recorded as the first actual longitudinal variation; the absolute value of the difference between the vertical coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the vertical coordinate value of the i-th reference test point is recorded as the first actual vertical variation;
[0032] The absolute value of the difference between the horizontal coordinate value of the c-th point to be measured and the horizontal coordinate value corresponding to the i-th reference point to be measured is recorded as the i-th actual horizontal variation corresponding to the c-th point to be measured; the absolute value of the difference between the vertical coordinate value of the c-th point to be measured and the vertical coordinate value corresponding to the i-th reference point to be measured is recorded as the i-th actual vertical variation corresponding to the c-th point to be measured; the absolute value of the difference between the vertical coordinate value of the c-th point to be measured and the vertical coordinate value corresponding to the i-th reference point to be measured is recorded as the i-th actual vertical variation corresponding to the c-th point to be measured;
[0033] The i-th actual lateral change amount is multiplied by the first actual longitudinal change amount and then divided by the value of the first actual lateral change amount, and recorded as the i-th theoretical longitudinal change amount corresponding to the c-th point to be measured; the i-th actual lateral change amount is multiplied by the first actual vertical change amount and then divided by the value of the first actual lateral change amount, and recorded as the i-th theoretical vertical change amount corresponding to the c-th point to be measured;
[0034] The absolute value of the difference between the i-th theoretical longitudinal variation and the i-th actual longitudinal variation is recorded as the i-th theoretical actual longitudinal difference value corresponding to the c-th point to be tested; the absolute value of the difference between the i-th theoretical vertical variation and the i-th actual vertical variation is recorded as the i-th theoretical actual vertical difference value corresponding to the c-th point to be tested; the sum of the i-th theoretical actual longitudinal difference value and the i-th theoretical actual vertical difference value is recorded as the i-th characteristic difference value corresponding to the c-th point to be tested; the i-th characteristic value corresponding to the c-th point to be tested is obtained according to the target flatness corresponding to the i-th reference point to be tested corresponding to the c-th point to be tested and the i-th characteristic difference value corresponding to the c-th point to be tested;
[0035] The cumulative sum of the target flatness grade values corresponding to all reference test points corresponding to the c-th test point is recorded as the comprehensive value corresponding to the c-th test point;
[0036] The ratio of the target flatness grade value corresponding to the i-th reference point to be tested to the comprehensive value is recorded as the weight value corresponding to the i-th eigenvalue, and the product of the i-th eigenvalue and the weight value corresponding to it is recorded as the i-th target eigenvalue corresponding to the c-th point to be tested;
[0037] The cumulative sum of all target feature values corresponding to the c-th point to be tested is recorded as the target abnormality degree corresponding to the c-th point to be tested.
[0038] Preferably, the method of obtaining each first plane corresponding to each of the points to be measured, each plane point to be measured corresponding to each of the first planes, and a fourth set of points to be measured corresponding to each of the points to be measured includes:
[0039] For any point to be measured in the point cloud to be measured:
[0040] The first C nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the test point are all recorded as the first test points corresponding to the test point, and the set constructed by all the first test points corresponding to the test point is recorded as the first test point set corresponding to the test point;
[0041] For any first point to be measured in the first set of points to be measured corresponding to the point to be measured, a vector constructed from the point to be measured to the first point to be measured is recorded as the first vector corresponding to the first point to be measured, a plane on which the first vector and the normal vector corresponding to the point to be measured are located is recorded as the first plane corresponding to the point to be measured, and the first point to be measured is recorded as the planar point to be measured of the first plane corresponding to the point to be measured;
[0042] All the nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the test point, except all the first test points corresponding to the test point, are recorded as the second test points corresponding to the test point; and the set constructed by all the second test points corresponding to the test point is recorded as the second test point set corresponding to the test point;
[0043] For any second measured point in the second measured point set corresponding to the measured point, determine whether the second measured point does not exist on all the first planes corresponding to the measured point; if so, record the second measured point as the third measured point; otherwise, record the second measured point as the fourth measured point; and record the set constructed by all fourth measured points in the second measured point set corresponding to the measured point as the fourth measured point set corresponding to the measured point.
[0044] Preferably, the method for obtaining the i-th eigenvalue corresponding to the c-th point to be measured includes:
[0045] When the target flatness corresponding to the i-th reference point to be tested is greater than or equal to the preset flatness threshold, the i-th characteristic difference value is negatively correlated and mapped, and the i-th characteristic difference value after the negative correlation mapping is recorded as the i-th target characteristic difference value corresponding to the c-th point to be tested, and the value obtained by subtracting the i-th target characteristic difference value from a constant 1 is recorded as the i-th characteristic value corresponding to the c-th point to be tested;
[0046] When the target flatness corresponding to the i-th reference test point is less than the preset flatness threshold, the i-th characteristic difference value is negatively correlated and mapped, and the i-th characteristic difference value after negative correlation mapping is directly recorded as the i-th characteristic value corresponding to the c-th test point.
[0047] Preferably, the method for obtaining the target point cloud corresponding to the denture to be detected includes:
[0048] Obtain the reliability corresponding to each feature test point according to the target abnormality degree corresponding to the nearest neighbor test point of each feature test point and the Euclidean distance between each feature test point and each nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the feature test point;
[0049] The feature points to be measured whose reliability is less than a preset reliability threshold are all recorded as abnormal feature points to be measured; and the point cloud constructed by all other feature points to be measured except the abnormal feature points to be measured is recorded as the target point cloud.
[0050] Preferably, the reliability of each characteristic point to be measured in the point cloud to be measured is calculated according to the following formula:
[0051] ;
[0052] in, is the reliability corresponding to the vth characteristic point to be tested in the point cloud to be tested, is the number of nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the vth feature test point, is the Euclidean distance between the vth feature test point and the jth nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the vth feature test point, is the target abnormality degree corresponding to the jth nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the vth feature test point, and exp() is an exponential function with a constant e as the base.
[0053] Beneficial effect: The present invention can eliminate some feature points to be tested generated by defective areas in the test point cloud through the target abnormality degree corresponding to each nearest neighbor test point in the target nearest neighbor test point sequence corresponding to each feature test point, and obtain the target point cloud. The subsequent point cloud alignment between the target point cloud and the standard point cloud can make the alignment more accurate, that is, the alignment accuracy is higher. Then, based on the subsequent alignment result with higher accuracy, it can more accurately determine whether the denture to be tested has defects, and can also more accurately determine whether defect repair is needed. Therefore, the present invention can improve the accuracy of defect detection or defect identification of the denture to be tested. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] 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.
[0055] Figure 1 The present invention is a flowchart of a method for identifying and processing denture defect repair. DETAILED DESCRIPTION
[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the embodiments of the present invention.
[0057] 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 pertains.
[0058] This embodiment provides a method for identifying and processing a denture defect repair, which is described in detail as follows:
[0059] like Figure 1 As shown, the denture defect repair identification and processing method comprises the following steps:
[0060] Step S001, obtaining a point cloud to be tested corresponding to the denture to be tested, each point to be tested in the point cloud to be tested, and a standard point cloud corresponding to the standard denture.
[0061] The purpose of this embodiment is to improve the precision or accuracy of point cloud registration. Subsequently, based on the registration results with higher accuracy, it can more accurately determine whether the denture to be inspected has defects. When defects do exist, the defective area can be obtained more accurately, and the defective denture can also be repaired.
[0062] This embodiment does not perform defect detection on dentures based on traditional customization, but performs defect detection on dentures mass-produced based on digital technology. The traditional customization refers to personalized production based on the oral condition of each patient, and the defects in this embodiment mainly refer to defects in the appearance of the dentures.
[0063] In addition, mass-produced dentures are not much different from traditional customized dentures in terms of use, because the doctor will examine and measure the patient's oral condition, and then select dentures suitable for the patient's oral condition for installation. These mass-produced dentures are designed and manufactured based on general oral conditions, that is, these mass-produced dentures are designed and manufactured based on common oral problems, so they can usually meet the basic needs of most patients, and after installation, the doctor will also make adjustments based on the patient's wearing conditions.
[0064] In this embodiment, the denture to be tested and the standard denture corresponding to the denture to be tested are first obtained, wherein the standard denture is a denture that has passed the quality inspection, that is, the appearance of the standard denture meets the standard; and if the denture to be tested has no appearance defects, then the denture to be tested and the standard denture are basically the same.
[0065] Then, a 3D scanner is used to scan the denture to be tested and the standard denture to obtain the point cloud corresponding to the denture to be tested and the point cloud corresponding to the standard denture; the point cloud corresponding to the denture to be tested is filtered using Gaussian filtering, and the point cloud corresponding to the denture to be tested after filtering is recorded as its corresponding point cloud to be tested, and all points in the point cloud to be tested are recorded as points to be tested; the point cloud corresponding to the standard denture is filtered using Gaussian filtering, and the point cloud corresponding to the standard denture after filtering is recorded as its corresponding standard point cloud, and all points in the standard point cloud are recorded as standard points; and filtering the point cloud can filter out noise points in the point cloud, thereby avoiding the influence of noise points on the subsequent point cloud registration process.
[0066] Therefore, this embodiment obtains the point cloud to be tested corresponding to the denture to be tested, each point to be tested in the point cloud to be tested, the standard point cloud corresponding to the standard denture and each standard point in the standard point cloud through the above process; and the point cloud is located in a three-dimensional space, that is, the dimension of the points in the point cloud is three-dimensional, that is, the standard point cloud and the point cloud to be tested are both located in the same three-dimensional space, and the three-dimensional space includes a horizontal coordinate axis, a vertical coordinate axis and a vertical coordinate axis.
[0067] Step S002, according to the distance between each test point in the test point cloud, obtain the target flatness corresponding to each test point, the target flatness grade value corresponding to each test point and the target nearest neighbor test point sequence corresponding to each test point.
[0068] Since the point cloud registration process requires the detection of the feature points to be measured in the point cloud, but when there are defects on the surface or appearance of the denture, the feature points to be measured generated by the defective area will interfere with the point cloud registration process and affect the accuracy of the point cloud registration result, that is, the feature points to be measured generated by the defective area have a low reliability during point cloud registration. Therefore, in order to improve the accuracy of point cloud registration, this embodiment will subsequently eliminate abnormal feature points to be measured, which are feature points to be measured due to defects on the surface or appearance of the denture to be detected. The point cloud composed of the remaining feature points to be measured after elimination is aligned with the standard point cloud. This method can make the registration result more accurate and reliable, that is, it can improve the registration accuracy or precision and reduce the risk of incorrect registration. In addition, the subsequent registration result based on the higher accuracy or precision can more accurately determine whether the denture to be detected has defects, that is, the subsequent registration result based on the higher accuracy or precision can more accurately detect the defects of the denture to be detected.
[0069] Therefore, in order to obtain the feature points to be tested caused by defects in the surface or appearance of the denture to be tested, this embodiment will then obtain the target flatness corresponding to each test point, the target flatness grade value corresponding to each test point, and the target nearest neighbor test point sequence corresponding to each test point according to the distance between the test points in the test point cloud. Subsequently, the target abnormality degree corresponding to each test point can be obtained based on the target flatness, the target flatness grade value and the target nearest neighbor test point sequence, and the target abnormality degree can reflect the probability that the area where the test point is located belongs to the defective area, that is, it can also reflect the probability that the test point is a defective test point. Therefore, the specific process of obtaining the target flatness corresponding to each test point, the target flatness grade value corresponding to each test point and the target nearest neighbor test point sequence corresponding to each test point in this embodiment is as follows:
[0070] For any point to be measured in the point cloud to be measured:
[0071] A kd-tree (tree data structure) is used to search for A1 nearest neighbor test points of the test point in the K-dimensional space, and all of them are recorded as the nearest neighbor test points corresponding to the test point; a sequence constructed by all the nearest neighbor test points corresponding to the test point is recorded as the nearest neighbor test point sequence corresponding to the test point, and the test points in the nearest neighbor test point sequence corresponding to the test point are arranged in order from near to far from the test point, that is, the distance from the ath nearest neighbor test point in the nearest neighbor test point sequence to the test point is less than the distance from the a+1th nearest neighbor test point in the nearest neighbor test point sequence to the test point, and the distance from the ath nearest neighbor test point in the nearest neighbor test point sequence to the test point is greater than the distance from the a-1th nearest neighbor test point in the nearest neighbor test point sequence to the test point.
[0072] Since the test point is a three-dimensional data point, the search dimension of the kd-tree is 3, that is, K is 3; and in specific applications, the implementer needs to set the value of A1 according to actual conditions. For example, in this embodiment, A1 is set to 36, that is, the number of test points in the nearest neighbor test point sequence corresponding to the test point is 36.
[0073] Then, PCA principal component analysis is performed on all test points in the sequence of nearest neighbor test points corresponding to the test point to obtain the eigenvectors corresponding to each eigenvalue, and the eigenvector corresponding to the minimum eigenvalue is recorded as the normal vector of the test point.
[0074] Therefore, this embodiment can obtain the nearest neighbor test point sequence corresponding to each test point in the test point cloud, the normal vector of each test point, and the normal vector of each nearest neighbor test point in the nearest neighbor test point sequence corresponding to each test point through the above process.
[0075] Furthermore, when the denture has appearance defects, such as crack defects in the denture due to improper sintering temperature control, the defective area is relatively uneven, that is, the flatness of the area where each test point is located can reflect the probability that the area where the corresponding test point is located is a defective area, and the normal vector direction of the test point and the normal vector direction of its corresponding nearest neighbor test point can reflect the flatness of the area where the corresponding test point is located. Therefore, this embodiment will then obtain the target flatness corresponding to each test point according to the nearest neighbor test point sequence corresponding to each test point, the normal vector of each nearest neighbor test point in the nearest neighbor test point sequence corresponding to each test point, and the normal vector of each test point. In the process of obtaining the target flatness, the target flatness grade value corresponding to each test point and the target nearest neighbor test point sequence corresponding to each test point can also be obtained. Therefore, the specific process is:
[0076] For any test point in the test point cloud: the sequence constructed by the first B1 nearest neighbor test points in the nearest neighbor test point sequence corresponding to the test point is recorded as the first nearest neighbor test point subsequence corresponding to the test point, the sequence constructed by the first B2 nearest neighbor test points in the nearest neighbor test point sequence corresponding to the test point is recorded as the second nearest neighbor test point subsequence corresponding to the test point, the sequence constructed by the first B3 nearest neighbor test points in the nearest neighbor test point sequence corresponding to the test point is recorded as the third nearest neighbor test point subsequence corresponding to the test point, and the test point is recorded as the third nearest neighbor test point subsequence corresponding to the test point. The sequence constructed by the first B4 nearest neighbor test points in the corresponding nearest neighbor test point sequence is recorded as the 4th nearest neighbor test point subsequence corresponding to the test point. The values of B1, B2, B3 and B4 are not equal and are all less than or equal to A1. In specific applications, the implementer needs to set the values of B1, B2, B3 and B4 according to actual conditions. For example, in this embodiment, the values of B1, B2, B3 and B4 are set to 9, 16, 25 and 36 respectively. The more nearest neighbor test points participating in the flatness calculation, the higher the corresponding flatness level, that is, the higher the corresponding level value.
[0077] Then, according to the normal vector of the test point and the normal vectors of each nearest neighbor test point in the bth nearest neighbor test point subsequence corresponding to the test point, the bth flatness corresponding to the test point and the characteristic nearest neighbor test point sequence corresponding to the bth flatness are obtained, and the grade value of the bth flatness corresponding to the test point is recorded as b; for example, according to the normal vector of the test point and the normal vectors of each nearest neighbor test point in the second nearest neighbor test point subsequence corresponding to the test point, the second flatness corresponding to the test point and the characteristic nearest neighbor test point sequence corresponding to the second flatness can be obtained, and the grade value of the second flatness corresponding to the test point is recorded as 2.
[0078] In this embodiment, the method for obtaining the b-th flatness corresponding to the test point and the characteristic nearest neighbor test point sequence corresponding to the b-th flatness corresponding to the test point is as follows: for any nearest neighbor test point in the b-th nearest neighbor test point subsequence corresponding to the test point, the angle between the normal vector of the test point and the normal vector of the nearest neighbor test point is recorded as the angle corresponding to the nearest neighbor test point; the cosine value of the mean of the angles corresponding to all nearest neighbor test points in the b-th nearest neighbor test point subsequence is recorded as the b-th flatness corresponding to the test point, and the b-th nearest neighbor test point subsequence corresponding to the test point is recorded as the characteristic nearest neighbor test point sequence corresponding to the b-th flatness corresponding to the test point; and when the b-th nearest neighbor test point subsequence is When the cosine value of the mean value of the included angles corresponding to all the nearest neighbor test points in the sequence is larger, that is, closer to 1, it indicates that the normal vector direction of the test point is closer to the normal vector direction of the nearest neighbor test point in its corresponding b-th nearest neighbor test point subsequence, and further indicates that the test point is flatter in the range area corresponding to the b-th nearest neighbor test point subsequence; conversely, when the cosine value of the mean value of the included angles corresponding to all the nearest neighbor test points in the b-th nearest neighbor test point subsequence is smaller, it indicates that the normal vector direction of the test point is less close to the normal vector direction of the nearest neighbor test point in its corresponding b-th nearest neighbor test point subsequence, and further indicates that the test point is less flat in the range area corresponding to the b-th nearest neighbor test point subsequence.
[0079] Therefore, through the above process, this embodiment can obtain the flatness corresponding to each test point, the corresponding grade value of each flatness and the characteristic nearest neighbor test point sequence corresponding to each flatness; and in this embodiment, the number of flatnesses corresponding to each test point is 4, namely the first flatness corresponding to the test point, the corresponding second flatness, the third flatness and the fourth flatness, and one flatness corresponds to a grade value and a characteristic nearest neighbor test point sequence.
[0080] Generally, when the flatness is greater and the corresponding level value of the flatness is greater, it indicates that the corresponding test point is relatively flat in a larger range. When the test point is relatively flat in a larger range, it indicates that the probability that the area where the corresponding test point is located is a defective area is smaller. When the flatness is greater and the corresponding level value of the flatness is smaller, it indicates that the test point is relatively flat in a smaller range. However, the fact that the test point is relatively flat in a smaller range does not represent that the probability that the area where the corresponding test point is located is smaller or larger than the defective area is smaller, because there are normal denture areas and defective areas whose surfaces are not completely planar structures, and in a very small range, uneven normal denture areas and cracked areas can be regarded as microplanes. Therefore, when a test point is in a defective area or an uneven normal denture area, the flatness calculated for the point in a smaller range will also be larger. For example, premolars and molars have multiple cusps. Even if the premolars and molars do not have defects, there are relatively uneven areas on their surfaces.
[0081] Therefore, this embodiment cannot reliably determine the probability that the area where the test point is located is a defective area based only on the flatness and the flatness grade value, and the greater the probability that the area where the test point is located is a defective area, the greater the target abnormality degree corresponding to it obtained later, and conversely, the smaller the probability that the area where the test point is located is a defective area, the smaller the target abnormality degree corresponding to it obtained later, and in order to obtain the target abnormality degree of the test point more reliably and accurately in the future, this embodiment will analyze the difference between the theoretical coordinate change and the actual coordinate change of the test point on the basis of the obtained flatness and the flatness grade value, and based on the difference between the theoretical coordinate change and the actual coordinate change, the degree of abnormality can be obtained more accurately, that is, the target abnormality degree can be determined more accurately, and in order to obtain the target abnormality degree more accurately in the future, this embodiment will try its best to select flatness with larger values among the various flatnesses corresponding to the test point and with more test points in the corresponding feature nearest neighbor test point sequence. Flatness, that is, the determined target flatness value is larger and the corresponding target nearest neighbor test point sequence has more test points, and because usually, when the flatness level value corresponding to the test point is lower, the corresponding flatness is larger, and the number of test points in the feature nearest neighbor test point sequence corresponding to the flatness is smaller, and the flatness level value corresponding to the test point is higher, the corresponding flatness is smaller, and the number of test points in the feature nearest neighbor test point sequence corresponding to the flatness is larger, so if the selected flatness value is larger and the corresponding feature nearest neighbor test point sequence has more test points, then the selected target flatness level value is also larger, so that the subsequent predicted theoretical coordinate change amount can be more accurate, and then the obtained target abnormality degree can be more reliable; therefore, this embodiment will next obtain the target flatness corresponding to each test point, the target flatness level value corresponding to each test point, and the target nearest neighbor test point sequence corresponding to each test point based on the respective flatness corresponding to each test point, and the specific process is as follows:
[0082] For any point to be measured in the point cloud to be measured:
[0083] The mean of all flatnesses corresponding to the point to be tested is calculated and recorded as the mean flatness corresponding to the point to be tested; then, among all flatnesses corresponding to the point to be tested, the flatnesses that are greater than or equal to the mean flatness corresponding to the point to be tested are recorded as the flatness to be selected corresponding to the point to be tested; the absolute value of the difference between each flatness to be selected corresponding to the point to be tested and the mean flatness corresponding to it is calculated and recorded as the difference value of the corresponding flatness to be selected, the flatness to be selected corresponding to the minimum difference value is recorded as the target flatness corresponding to the point to be tested, the flatness to be selected corresponding to the minimum difference value is recorded as the target flatness corresponding to the point to be tested, the grade value of the flatness to be selected corresponding to the minimum difference value is recorded as the grade value of the target flatness corresponding to the point to be tested, and the characteristic nearest neighbor test point sequence corresponding to the target flatness is recorded as the target nearest neighbor test point sequence corresponding to the point to be tested.
[0084] For example, if only the third flatness and the corresponding fourth flatness corresponding to the test point are greater than or equal to the average flatness corresponding to the test point, then compared with the fourth flatness, the absolute value of the difference between the third flatness corresponding to the test point and the average flatness corresponding to the test point is smaller. Therefore, the third flatness corresponding to the test point is recorded as the target flatness corresponding to the test point. Then the grade value of the third flatness is the grade value of the target flatness corresponding to the test point, and the characteristic nearest neighbor test point sequence of the third flatness is the target nearest neighbor test point sequence corresponding to the test point.
[0085] Therefore, through the above process, the target flatness corresponding to each test point, the target flatness grade value corresponding to each test point and the target nearest neighbor test point sequence corresponding to each test point can be obtained; and based on the target flatness corresponding to each test point, the corresponding target flatness grade value and the corresponding target nearest neighbor test point sequence, the abnormality degree of each target to be detected can be obtained more accurately and reliably.
[0086] Step S003, obtaining the target abnormality degree corresponding to each of the test points according to the target flatness corresponding to each of the test points, the corresponding target flatness grade value and the corresponding target nearest neighbor test point sequence.
[0087] This embodiment will then obtain the target abnormality degree corresponding to each test point based on the target flatness corresponding to each test point, the corresponding target flatness grade value and the corresponding target nearest neighbor test point sequence, and the target abnormality degree corresponding to each test point can be obtained more accurately and reliably based on the target flatness, the target flatness grade value and the target nearest neighbor test point sequence, and the target point cloud corresponding to the denture to be tested can be obtained more accurately based on the target abnormality degree. Then, when point cloud registration is performed based on the target point cloud, the point cloud registration result can be more accurate, and based on the more accurate registration result, it can also be more accurately and reliably analyzed whether the denture to be tested has defects or can more accurately determine the defects. In addition, the uneven normal denture area and the crack area can be regarded as microplanes, but when there is no appearance defect on the denture surface, whether it is flat or not, the change of its surface is continuous, which means that the coordinate change of the test point in the test point cloud is relatively gentle or has a strong trend, and when there is an appearance defect on the denture surface, such as improper sintering temperature control causing a crack defect in the denture, this situation will make the coordinate change of the test point in the defect area relatively irregular, that is, the change of the coordinate of the test point in the defect area is relatively random and does not show the characteristics of relatively gentle change or strong trend; therefore, the specific process of obtaining the target abnormality degree corresponding to each test point in this embodiment is:
[0088] For any point to be measured in the point cloud to be measured:
[0089] The first C nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the test point are all recorded as the first test points corresponding to the test point, and the set constructed by all first test points corresponding to the test point is recorded as the first test point set corresponding to the test point.
[0090] In a specific application, the value of C needs to be set according to the actual situation. In this embodiment, the value of C is set to 9. In addition, the set value of C is required to be smaller than the total number of test points in the target nearest neighbor test point sequence.
[0091] For any first measured point in the first measured point set corresponding to the measured point, the vector constructed from the measured point to the first measured point is recorded as the first vector corresponding to the first measured point, the plane on which the first vector and the normal vector corresponding to the measured point are located is recorded as the first plane corresponding to the measured point, and the first measured point is recorded as the planar measured point of the first plane corresponding to the measured point, that is, if the first plane is the plane on which the first vector corresponding to the first measured point and the normal vector corresponding to the measured point are located, then the first measured point is the planar measured point of the first plane.
[0092] Therefore, through each first test point in the first test point set corresponding to the test point, a first plane corresponding to the test point and the corresponding plane test point of the first plane can be obtained; that is, this embodiment can obtain each first plane corresponding to the test point and the corresponding plane test point of each first plane through the above process.
[0093] Then, in the target nearest neighbor test point sequence corresponding to the test point, except for all the first test points corresponding to the test point, all other nearest neighbor test points are recorded as second test points corresponding to the test point; the set constructed by all the second test points corresponding to the test point is recorded as the second test point set corresponding to the test point; for any second test point in the second test point set corresponding to the test point, for any second test point in the second test point set corresponding to the test point, it is determined whether the second test point does not exist on all the first planes corresponding to the test point; if so, the second test point is recorded as the third test point; otherwise, the second test point is recorded as the fourth test point; the set constructed by all the fourth test points in the second test point set corresponding to the test point is recorded as the fourth test point set corresponding to the test point.
[0094] Therefore, through the above process, each first plane corresponding to each point to be measured in the point cloud to be measured, the plane points to be measured corresponding to each first plane, and the fourth point set to be measured corresponding to each point to be measured can be obtained.
[0095] For the cth point to be tested in the point cloud to be tested:
[0096] The set constructed by all the remaining test points in the test point cloud except the c-th test point is recorded as the set of test points to be selected corresponding to the c-th test point, and all the test points in the set of test points to be selected corresponding to the c-th test point are recorded as the test points to be selected corresponding to the c-th test point; for any test point to be selected in the set of test points to be selected corresponding to the c-th test point, if it is determined that there is a c-th test point in the fourth set of test points corresponding to the test point to be selected, then the test point to be selected is recorded as the reference test point corresponding to the c-th test point.
[0097] Therefore, through the above process, the reference test points corresponding to the c-th test point in the test point cloud can be obtained; for the i-th reference test point corresponding to the c-th test point in the test point cloud:
[0098] Since there is a c-th test point in the fourth test point set corresponding to the i-th reference test point, and the test points in the fourth test point set corresponding to the i-th reference test point are composed of points in the second test point set corresponding to the i-th reference test point that are located on the first plane corresponding to the i-th reference test point, the c-th test point must be located on a certain first plane corresponding to the i-th reference test point; therefore, for any first plane corresponding to the i-th reference test point, if it is judged that the c-th test point is located on the first plane, then the first plane is recorded as the target plane corresponding to the i-th reference test point.
[0099] The absolute value of the difference between the horizontal coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the horizontal coordinate value of the i-th reference test point is calculated and recorded as the first actual horizontal change; the absolute value of the difference between the vertical coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the vertical coordinate value of the i-th reference test point is calculated and recorded as the first actual longitudinal change; the absolute value of the difference between the vertical coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the vertical coordinate value of the i-th reference test point is calculated and recorded as the first actual vertical change.
[0100] Then the absolute value of the difference between the horizontal coordinate value of the cth point to be measured and the horizontal coordinate value corresponding to the ith reference point to be measured is recorded as the ith actual horizontal change amount corresponding to the cth point to be measured; the absolute value of the difference between the vertical coordinate value of the cth point to be measured and the vertical coordinate value corresponding to the ith reference point to be measured is recorded as the ith actual vertical change amount corresponding to the cth point to be measured; the absolute value of the difference between the vertical coordinate value of the cth point to be measured and the vertical coordinate value corresponding to the ith reference point to be measured is recorded as the ith actual vertical change amount corresponding to the cth point to be measured.
[0101] Then, the i-th actual lateral change corresponding to the c-th point to be tested is multiplied by the first actual longitudinal change, and then divided by the value of the first actual lateral change, which is recorded as the i-th theoretical longitudinal change corresponding to the c-th point to be tested; the i-th actual lateral change corresponding to the c-th point to be tested is multiplied by the first actual vertical change, and then divided by the value of the first actual lateral change, which is recorded as the i-th theoretical vertical change corresponding to the c-th point to be tested.
[0102] Then, the absolute value of the difference between the i-th theoretical longitudinal change corresponding to the c-th test point and the i-th actual longitudinal change corresponding to it is recorded as the i-th theoretical actual longitudinal difference value corresponding to the c-th test point; the absolute value of the difference between the i-th theoretical vertical change corresponding to the c-th test point and the i-th actual vertical change corresponding to it is recorded as the i-th theoretical actual vertical difference value corresponding to the c-th test point; the sum of the i-th theoretical actual longitudinal difference value corresponding to the c-th test point and the i-th theoretical actual vertical difference value corresponding to the c-th test point is recorded as the i-th characteristic difference value corresponding to the c-th test point; and the characteristic difference value can reflect the possibility that the area where the c-th test point is located is an abnormal area or a normal denture area.
[0103] Then, the i-th characteristic value corresponding to the c-th test point is obtained based on the target flatness size and characteristic difference value of the reference test point corresponding to the c-th test point, specifically:
[0104] When the target flatness corresponding to the i-th reference test point corresponding to the c-th test point in the test point cloud is greater than or equal to the preset flatness threshold, the i-th characteristic difference value corresponding to the c-th test point is negatively correlated, and the i-th characteristic difference value after the negative correlation mapping is recorded as the i-th target characteristic difference value corresponding to the c-th test point, and the value obtained by subtracting the i-th target characteristic difference value corresponding to the c-th test point from the constant 1 is recorded as the i-th characteristic value corresponding to the c-th test point in the test point cloud. In addition, in specific applications, the implementer needs to set the preset flatness threshold according to the actual situation. For example, in this embodiment, the preset flatness threshold is set to 0.5.
[0105] And when the target flatness corresponding to the ith reference test point corresponding to the cth test point in the test point cloud is greater than or equal to the preset flatness threshold, it indicates that the target flatness corresponding to the ith reference test point is higher, and the higher the target flatness corresponding to the ith reference test point, the more accurate the obtained ith theoretical vertical change amount and the corresponding ith theoretical longitudinal change amount corresponding to the cth test point are. At this time, when the ith characteristic difference value corresponding to the cth test point is larger, it indicates that the ith characteristic value corresponding to the cth test point in the test point cloud is higher. The larger the value is, the greater the abnormality of the c-th test point is, so the probability that the area where the c-th test point is located is a defective area is relatively high; conversely, when the target flatness corresponding to the ith reference test point is higher and the ith characteristic difference value corresponding to the c-th test point is smaller, it indicates that the ith characteristic value corresponding to the c-th test point in the test point cloud is smaller, which also indicates that the abnormality of the c-th test point is smaller, so the probability that the area where the c-th test point is located is a normal denture area is relatively high.
[0106] When the target flatness corresponding to the i-th reference test point corresponding to the c-th test point in the test point cloud is less than the preset flatness threshold, the i-th feature difference value corresponding to the c-th test point is negatively correlated, and the i-th feature difference value after the negative correlation mapping is directly recorded as the i-th feature value corresponding to the c-th test point in the test point cloud.
[0107] And when the target flatness corresponding to the ith reference test point corresponding to the cth test point in the test point cloud is less than the preset flatness threshold, it indicates that the target flatness corresponding to the ith reference test point is low, and the lower the target flatness corresponding to the ith reference test point, the lower the probability that the ith reference test point and the test points around it are in the same plane. At this time, the ith theoretical vertical change amount and the corresponding ith theoretical longitudinal change amount corresponding to the cth test point obtained according to the linear relationship are less accurate. Therefore, under normal circumstances, the ith theoretical actual vertical difference value and the corresponding ith theoretical actual longitudinal difference value corresponding to the cth test point should be larger, that is, under normal circumstances, the larger the ith characteristic difference value corresponding to the cth test point, the larger the ith characteristic value corresponding to the cth test point. If the ith theoretical actual vertical difference value and the corresponding ith theoretical actual longitudinal difference value corresponding to the cth test point are smaller at this time, that is, the corresponding ith actual longitudinal change amount and the corresponding ith The closer the actual vertical variation is to an erroneous value, the larger the i-th eigenvalue corresponding to the c-th test point in the test point cloud is, and the larger the i-th eigenvalue corresponding to the c-th test point in the test point cloud is, the more abnormal the c-th test point is; that is, when the target flatness corresponding to the i-th reference test point corresponding to the c-th test point in the test point cloud is less than the preset flatness threshold, if the i-th eigenvalue corresponding to the c-th test point is smaller, it indicates that the c-th test point in the test point cloud is The larger the i-th eigenvalue is, the greater the degree of abnormality of the c-th test point is. In this case, the probability that the area where the c-th test point is located is a defective area is higher. Conversely, if the target flatness corresponding to the i-th reference test point is lower and the i-th eigenvalue corresponding to the c-th test point is larger, it indicates that the i-th eigenvalue corresponding to the c-th test point in the test point cloud is smaller, which also indicates that the degree of abnormality of the c-th test point is smaller. In this case, the probability that the area where the c-th test point is located is a normal denture area is higher.
[0108] Therefore, the above-mentioned method of obtaining the i-th eigenvalue corresponding to the c-th point to be tested in the point cloud to be tested can obtain each eigenvalue corresponding to the c-th point to be tested in the point cloud to be tested, and an eigenvalue can be calculated between the point to be tested c and each corresponding reference point to be tested, and the w-th eigenvalue corresponding to the c-th point to be tested is obtained through the w-th reference point to be tested corresponding to the c-th point to be tested; in addition, the values of c, i and w are positive integers.
[0109] Considering that there may be defects on the surface of the denture to be tested, the defects may also cause the theoretical actual vertical difference value and the theoretical actual longitudinal difference value corresponding to a certain point to be tested to be larger; and the difference between the uneven normal denture area and the uneven defect area is that the characteristic values of the points to be tested in the uneven normal denture area in different directions will be smaller, that is, the various characteristic values corresponding to the points to be tested in the uneven normal denture area will be smaller; and the uneven defect area is often performed after the grinding is completed, that is, the denture surface is relatively smooth, so when the points to be tested in the uneven defect area are evaluated for characteristic values through other points in different directions, there will always be a situation where the characteristic value corresponding to a certain direction is higher, that is, the defect area It cannot be guaranteed that all the corresponding eigenvalues of the test point are small, so the eigenvalues corresponding to each test point can be corrected according to the flatness level value; that is, for the cth test point in the test point cloud that should be the ith reference test point, when the target flatness level value corresponding to the ith reference test point is larger, it indicates that the target flatness corresponding to the ith reference test point is obtained within a larger range. Then, the ith eigenvalue corresponding to the cth test point in the test point cloud obtained at this time has a higher credibility, that is, the larger the target flatness level value corresponding to the ith reference test point is, the higher the weight value of the ith eigenvalue corresponding to the cth test point in the test point cloud is.
[0110] Therefore, in this embodiment, the cumulative sum of the target flatness grade values corresponding to all reference test points corresponding to the c-th test point is recorded as the comprehensive value corresponding to the c-th test point; for the ith reference test point corresponding to the c-th test point, the ratio of the target flatness grade value corresponding to the ith reference test point corresponding to the c-th test point to the comprehensive value corresponding to the c-th test point is recorded as the weight value corresponding to the ith eigenvalue corresponding to the c-th test point, and the product of the ith eigenvalue corresponding to the c-th test point and the corresponding weight value is recorded as the ith target eigenvalue corresponding to the c-th test point.
[0111] Therefore, through the above process, each target feature value corresponding to the cth test point in the test point cloud can be obtained; then the cumulative sum of all target feature values corresponding to the cth test point is recorded as the target abnormality degree corresponding to the cth test point; and the larger the target abnormality degree value, the greater the probability that the area where the cth test point is located is a defective area, and vice versa, the greater the probability that it is a normal denture area.
[0112] Therefore, by calculating the target abnormality degree corresponding to the cth test point in the test point cloud, the target abnormality degree corresponding to each test point in the test point cloud corresponding to the denture to be inspected can be obtained.
[0113] Step S004, using the SIFT algorithm to perform feature test point detection on the test point cloud to obtain each feature test point in the test point cloud, and according to the target abnormality degree corresponding to the nearest neighbor test point of each feature test point, the abnormal feature test points are eliminated to obtain the target point cloud corresponding to the denture to be detected; wherein the nearest neighbor test point of the feature test point refers to the test point in the target nearest neighbor test point sequence corresponding to the feature test point; the target point cloud is point cloud registered with the standard point cloud to obtain the registration result, and according to the registration result, it is judged whether the denture to be detected has defects and whether to perform defect repair on the denture to be detected.
[0114] In order to realize point cloud registration later, this embodiment uses SIFT algorithm to detect feature points in the point cloud to obtain all feature points in the point cloud; for the vth feature point in the point cloud:
[0115] For the jth nearest neighbor to be tested point in the target nearest neighbor to be tested point sequence corresponding to the vth feature to be tested point, the Euclidean distance between the vth feature to be tested point and the jth nearest neighbor to be tested point is calculated; the reliability corresponding to the vth feature to be tested point in the test point cloud is calculated according to the following formula:
[0116]
[0117] Among them, among them, is the reliability corresponding to the vth characteristic point to be tested in the point cloud to be tested, is the number of nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the vth feature test point, is the Euclidean distance between the vth feature test point and the jth nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the vth feature test point, is the target abnormality degree corresponding to the jth nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the vth feature test point, and exp() is an exponential function with a constant e as the base.
[0118] The closer the nearest neighbor to the vth feature to be tested point is, the more important the corresponding abnormality is. In addition, when The larger the The larger the value of The larger the value of , the higher the reliability of the vth feature point in the test point cloud. It also indicates that the vth feature point is less likely to be a feature point generated by the defect area. The smaller the time, the The smaller the value of The smaller the value of , the lower the reliability of the vth feature test point in the test point cloud, which also indicates that the vth feature test point is more likely to be a feature test point generated by the defect area.
[0119] Therefore, in this embodiment, the reliability corresponding to each feature point to be tested in the point cloud to be tested can be obtained through the above process, and then it is determined whether the reliability corresponding to each feature point to be tested in the point cloud to be tested is less than the preset reliability threshold. If so, the corresponding feature point to be tested is recorded as an abnormal feature point to be tested and eliminated, otherwise, it is not eliminated; the point cloud constructed by all the remaining feature points to be tested after eliminating the abnormal feature points to be tested is recorded as the target point cloud.
[0120] In a specific application, it is necessary to set a preset reliability threshold according to actual conditions. For example, in this embodiment, the preset reliability threshold can be set to 0.3.
[0121] The ICP algorithm is then used to perform point cloud registration between the target point cloud and the standard point cloud. The standard points corresponding to each point to be tested in the point cloud to be tested are then obtained based on the registration results. Subsequently, the Euclidean distance between the standard points corresponding to each point to be tested and the standard points corresponding to the standard points is used to determine whether there are defects on the surface of the denture to be tested. If there are defects, the defective area is obtained and the defects are repaired. If it is determined that there are no defects on the surface of the denture to be tested, the quality of the denture to be tested is determined to be qualified and can be put into use.
[0122] In this embodiment, the process of obtaining the standard points corresponding to each point to be tested in the point cloud to be tested, judging whether there are defects on the surface of the denture to be tested based on the Euclidean distance between the standard points corresponding to each point to be tested and the corresponding standard points, and obtaining the defective area is a well-known technology, so this embodiment will not be described in detail.
[0123] To summarize, this embodiment obtains the target flatness corresponding to each test point, the target flatness grade value corresponding to each test point and the target nearest neighbor test point sequence corresponding to each test point through the distance between each test point in the test point cloud; and obtains the target abnormality degree corresponding to each test point according to the target flatness corresponding to each test point, the corresponding target flatness grade value and the corresponding target nearest neighbor test point sequence; then uses the SIFT algorithm to perform feature test point detection on the test point cloud to obtain each feature test point in the test point cloud, and obtains the target point cloud corresponding to the test denture according to the target abnormality degree corresponding to the nearest neighbor test point of each feature test point; finally, the target point cloud is point cloud aligned with the standard point cloud to obtain the alignment result, and based on the alignment result, it is determined whether the denture to be inspected has defects and whether the defects of the denture to be inspected should be repaired. This embodiment can eliminate some feature points to be tested generated by defective areas in the test point cloud through the target abnormality degree corresponding to each nearest neighbor test point in the target nearest neighbor test point sequence corresponding to each feature test point, and obtain the target point cloud. The subsequent point cloud alignment between the target point cloud and the standard point cloud can make the alignment more accurate, that is, the alignment accuracy is higher. Then, based on the subsequent alignment result with higher accuracy, it can more accurately determine whether the denture to be inspected has defects; that is, this embodiment can improve the accuracy of defect detection of the denture to be inspected.
[0124] A denture defect repair identification and processing system of the present embodiment includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the above-mentioned denture defect repair identification and processing method.
[0125] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for identifying and treating denture defects, characterized in that: The method comprises the following steps: Obtaining a point cloud to be tested corresponding to the denture to be tested, each point to be tested in the point cloud to be tested, and a standard point cloud corresponding to the standard denture; According to the distances between the various test points in the test point cloud, the target flatness corresponding to the various test points, the target flatness grade value corresponding to the various test points, and the target nearest neighbor test point sequence corresponding to the various test points are obtained; According to the target flatness corresponding to each of the test points, the corresponding target flatness grade value and the corresponding target nearest neighbor test point sequence, the target abnormality degree corresponding to each of the test points is obtained, and the target abnormality degree can reflect the probability that the area where the test point is located belongs to a defect area; The SIFT algorithm is used to detect characteristic test points on the test point cloud to obtain each characteristic test point in the test point cloud, and the abnormal characteristic test points are eliminated according to the target abnormality degree corresponding to the nearest neighbor test point of each characteristic test point to obtain the target point cloud corresponding to the denture to be detected; wherein the nearest neighbor test point of the characteristic test point refers to the test point in the target nearest neighbor test point sequence corresponding to the characteristic test point; the target point cloud is point cloud registered with the standard point cloud to obtain the registration result, and according to the registration result, it is judged whether the denture to be detected has defects and whether to repair the defects of the denture to be detected; The method for obtaining the target abnormality degree corresponding to each of the test points includes: According to the target nearest neighbor test point sequence corresponding to each test point, obtain each first plane corresponding to each test point, each plane test point corresponding to each test point, and each fourth test point set corresponding to each test point; For the cth point to be measured in the point cloud to be measured; The set constructed by all the remaining test points in the test point cloud except the cth test point is recorded as the set of test points to be selected corresponding to the cth test point, and all the test points in the set of test points to be selected are recorded as the test points to be selected; for any test point to be selected in the set of test points to be selected, if it is determined that the cth test point exists in the fourth set of test points corresponding to the test point to be selected, the test point to be selected is recorded as the reference test point corresponding to the cth test point; For the i-th reference test point corresponding to the c-th test point in the test point cloud: For any first plane corresponding to the i-th reference point to be measured, if it is determined that the c-th point to be measured is located on the first plane, the first plane is recorded as the target plane corresponding to the i-th reference point to be measured; The absolute value of the difference between the horizontal coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the horizontal coordinate value of the i-th reference test point is recorded as the first actual horizontal variation; the absolute value of the difference between the vertical coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the vertical coordinate value of the i-th reference test point is recorded as the first actual longitudinal variation; the absolute value of the difference between the vertical coordinate value of the plane test point of the target plane corresponding to the i-th reference test point and the vertical coordinate value of the i-th reference test point is recorded as the first actual vertical variation; The absolute value of the difference between the horizontal coordinate value of the c-th point to be measured and the horizontal coordinate value corresponding to the i-th reference point to be measured is recorded as the i-th actual horizontal variation corresponding to the c-th point to be measured; the absolute value of the difference between the vertical coordinate value of the c-th point to be measured and the vertical coordinate value corresponding to the i-th reference point to be measured is recorded as the i-th actual vertical variation corresponding to the c-th point to be measured; the absolute value of the difference between the vertical coordinate value of the c-th point to be measured and the vertical coordinate value corresponding to the i-th reference point to be measured is recorded as the i-th actual vertical variation corresponding to the c-th point to be measured; The i-th actual lateral change amount is multiplied by the first actual longitudinal change amount and then divided by the value of the first actual lateral change amount, and recorded as the i-th theoretical longitudinal change amount corresponding to the c-th point to be measured; the i-th actual lateral change amount is multiplied by the first actual vertical change amount and then divided by the value of the first actual lateral change amount, and recorded as the i-th theoretical vertical change amount corresponding to the c-th point to be measured; The absolute value of the difference between the i-th theoretical longitudinal variation and the i-th actual longitudinal variation is recorded as the i-th theoretical actual longitudinal difference value corresponding to the c-th point to be tested; the absolute value of the difference between the i-th theoretical vertical variation and the i-th actual vertical variation is recorded as the i-th theoretical actual vertical difference value corresponding to the c-th point to be tested; the sum of the i-th theoretical actual longitudinal difference value and the i-th theoretical actual vertical difference value is recorded as the i-th characteristic difference value corresponding to the c-th point to be tested; the i-th characteristic value corresponding to the c-th point to be tested is obtained according to the target flatness corresponding to the i-th reference point to be tested corresponding to the c-th point to be tested and the i-th characteristic difference value corresponding to the c-th point to be tested; The cumulative sum of the target flatness grade values corresponding to all reference test points corresponding to the c-th test point is recorded as the comprehensive value corresponding to the c-th test point; The ratio of the target flatness grade value corresponding to the i-th reference point to be tested to the comprehensive value is recorded as the weight value corresponding to the i-th eigenvalue, and the product of the i-th eigenvalue and the weight value corresponding to it is recorded as the i-th target eigenvalue corresponding to the c-th point to be tested; The cumulative sum of all target feature values corresponding to the c-th point to be tested is recorded as the target abnormality degree corresponding to the c-th point to be tested.
2. A method for identifying and treating denture defects according to claim 1, characterized in that: The method for obtaining the target flatness corresponding to each of the test points, the target flatness grade value corresponding to each of the test points, and the target nearest neighbor test point sequence corresponding to each of the test points includes: For any point to be measured in the point cloud to be measured: Use kd-tree to search for A1 test points that are the nearest neighbors of the test point in the K-dimensional space, and record them all as the nearest neighbor test points corresponding to the test point, and record the sequence constructed by all the nearest neighbor test points corresponding to the test point as the nearest neighbor test point sequence corresponding to the test point; Perform PCA principal component analysis on all test points in the nearest neighbor test point sequence corresponding to the test point to obtain the eigenvectors corresponding to each eigenvalue, and record the eigenvector corresponding to the minimum eigenvalue as the normal vector of the test point; According to the nearest neighboring test point sequence corresponding to the test point, each nearest neighboring test point subsequence corresponding to the test point is obtained; According to the normal vector of the test point and the normal vectors of each nearest neighbor test point in each nearest neighbor test point subsequence corresponding to the test point, obtain each flatness corresponding to the test point, the characteristic nearest neighbor test point sequence corresponding to each flatness, and the level value of each flatness; Calculate the average of all flatness values corresponding to the point to be tested, and record it as the average flatness value corresponding to the point to be tested; Among all the flatnesses corresponding to the point to be tested, the flatnesses that are greater than or equal to the average of the flatnesses corresponding to the point to be tested are recorded as the flatness to be selected corresponding to the point to be tested; The absolute value of the difference between each selected flatness corresponding to the point to be tested and the flatness mean value is recorded as the difference value of the corresponding flatness to be selected, the selected flatness corresponding to the minimum difference value among the difference values of each selected flatness corresponding to the point to be tested is recorded as the target flatness corresponding to the point to be tested, the grade value of the selected flatness corresponding to the minimum difference value is recorded as the grade value of the target flatness corresponding to the point to be tested, and the characteristic nearest neighbor test point sequence corresponding to the target flatness is recorded as the target nearest neighbor test point sequence corresponding to the point to be tested.
3. A method for identifying and treating denture defects according to claim 2, characterized in that: The method for obtaining each subsequence of the nearest neighboring test points corresponding to the test point includes: The sequence constructed by the first B1 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the first nearest neighbor point subsequence corresponding to the point to be tested, the sequence constructed by the first B2 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the second nearest neighbor point subsequence corresponding to the point to be tested, the sequence constructed by the first B3 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the third nearest neighbor point subsequence corresponding to the point to be tested, and the sequence constructed by the first B4 nearest neighbor points to be tested in the nearest neighbor point sequence corresponding to the point to be tested is recorded as the fourth nearest neighbor point subsequence corresponding to the point to be tested.
4. A method for identifying and treating denture defects according to claim 2, characterized in that: Obtaining the flatness corresponding to the test point, the characteristic nearest neighbor test point sequence corresponding to each flatness, and the level value of each flatness, including: For any nearest neighbor test point in the bth nearest neighbor test point subsequence corresponding to the test point, the angle between the normal vector of the test point and the normal vector of the nearest neighbor test point is recorded as the angle corresponding to the nearest neighbor test point; The cosine value of the mean of the angles corresponding to all the nearest neighbor points to be tested in the bth nearest neighbor point to be tested subsequence is recorded as the bth flatness corresponding to the point to be tested, the bth nearest neighbor point to be tested subsequence corresponding to the point to be tested is recorded as the characteristic nearest neighbor point to be tested sequence corresponding to the bth flatness corresponding to the point to be tested, and the level value of the bth flatness corresponding to the point to be tested is recorded as b.
5. A method for identifying and treating denture defect repair according to claim 1, characterized in that: The method for obtaining each first plane corresponding to each of the points to be measured, each plane point to be measured corresponding to each of the first planes, and a fourth set of points to be measured corresponding to each of the points to be measured includes: For any point to be measured in the point cloud to be measured: The first C nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the test point are all recorded as the first test points corresponding to the test point, and the set constructed by all the first test points corresponding to the test point is recorded as the first test point set corresponding to the test point; For any first point to be measured in the first set of points to be measured corresponding to the point to be measured, a vector constructed from the point to be measured to the first point to be measured is recorded as the first vector corresponding to the first point to be measured, a plane on which the first vector and the normal vector corresponding to the point to be measured are located is recorded as the first plane corresponding to the point to be measured, and the first point to be measured is recorded as the planar point to be measured of the first plane corresponding to the point to be measured; All the nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the test point, except all the first test points corresponding to the test point, are recorded as the second test points corresponding to the test point; and the set constructed by all the second test points corresponding to the test point is recorded as the second test point set corresponding to the test point; For any second measured point in the second measured point set corresponding to the measured point, determine whether the second measured point does not exist on all the first planes corresponding to the measured point; if so, record the second measured point as the third measured point; otherwise, record the second measured point as the fourth measured point; and record the set constructed by all fourth measured points in the second measured point set corresponding to the measured point as the fourth measured point set corresponding to the measured point.
6. A method for identifying and treating denture defects according to claim 1, characterized in that: The method for obtaining the i-th eigenvalue corresponding to the c-th point to be measured comprises: When the target flatness corresponding to the i-th reference point to be tested is greater than or equal to the preset flatness threshold, the i-th characteristic difference value is negatively correlated and mapped, and the i-th characteristic difference value after the negative correlation mapping is recorded as the i-th target characteristic difference value corresponding to the c-th point to be tested, and the value obtained by subtracting the i-th target characteristic difference value from a constant 1 is recorded as the i-th characteristic value corresponding to the c-th point to be tested; When the target flatness corresponding to the i-th reference test point is less than the preset flatness threshold, the i-th characteristic difference value is negatively correlated and mapped, and the i-th characteristic difference value after negative correlation mapping is directly recorded as the i-th characteristic value corresponding to the c-th test point.
7. A method for identifying and treating denture defects according to claim 1, characterized in that: The method for obtaining the target point cloud corresponding to the denture to be detected comprises: Obtain the reliability corresponding to each feature test point according to the target abnormality degree corresponding to the nearest neighbor test point of each feature test point and the Euclidean distance between each feature test point and each nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the feature test point; The feature points to be measured whose reliability is less than a preset reliability threshold are all recorded as abnormal feature points to be measured; and the point cloud constructed by all other feature points to be measured except the abnormal feature points to be measured is recorded as the target point cloud.
8. A method for identifying and treating denture defects according to claim 7, characterized in that: The reliability of each characteristic point in the point cloud is calculated according to the following formula: ; in, is the reliability corresponding to the vth characteristic point to be tested in the point cloud to be tested, is the number of nearest neighbor test points in the target nearest neighbor test point sequence corresponding to the vth feature test point, is the Euclidean distance between the vth feature test point and the jth nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the vth feature test point, is the target abnormality degree corresponding to the jth nearest neighbor test point in the target nearest neighbor test point sequence corresponding to the vth feature test point, and exp() is an exponential function with a constant e as the base.
9. A denture defect repair identification and processing system, comprising a memory and a processor, characterized in that: The processor executes the computer program stored in the memory to implement a denture defect repair identification and processing method as described in any one of claims 1-8.
Citation Information
Patent Citations
Three-dimensional detection method and system for assembly defects of aero-engine parts
CN116580001A
3D model surface detection method based on machine vision
CN116977331A
