3D model surface detection method based on machine vision

By improving the point cloud registration algorithm and taking advantage of the differences in 3D structural change intensity and roughness, the accuracy of 3D model surface detection is improved and the problem of low detection accuracy in the existing technology is solved.

CN118608482APending Publication Date: 2024-09-06SUZHOU BERKLEY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410735058.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of surface detection of 3D models is low, mainly because the traditional point cloud registration algorithm ignores the defect structure and detailed features of the 3D model, resulting in the generation of erroneous point pairs, which affects the accuracy of detection.

Method used

By obtaining the 3D structural change intensity difference and roughness difference between the 3D model point cloud image to be tested and the standard 3D model point cloud image, the metric distance in the point cloud registration algorithm is improved, and the normal vector angle is similar to the model angle. degree and other features to improve the accuracy of point cloud registration.

Benefits of technology

It improves the accuracy of surface defect detection on 3D models, reduces the generation of erroneous point pairs, and enhances the ability to identify surface defects on 3D models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608482A
    Figure CN118608482A
Patent Text Reader

Abstract

The invention relates to the technical field of machine vision, and discloses a 3D model surface detection method based on machine vision, which comprises the following steps: processing a to-be-detected 3D model point cloud image and a standard 3D model point cloud image, and according to the distribution condition of normal vector included angles in an area adjacent to model point cloud data points, determining the surface of a 3D model according to the distribution condition of normal vector included angles in the area adjacent to the model point cloud data points; the model included angle similarity corresponding to the normal vector included angle is obtained, and the 3D structure change intensity of each model point cloud data point is obtained in combination with the distribution condition of the model included angle similarity; according to the influence degree of the 3D model surface rough area on the normal vector included angle of the model point cloud data points, the 3D model roughness degree is obtained; and finally, performing 3D model surface detection through a point cloud registration algorithm according to the improved measurement distance obtained by the 3D structure change intensity and the 3D model roughness degree. According to the method, the accuracy of 3D model surface flaw detection through the improved measurement distance obtained through image processing is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine vision detection, and in particular to a 3D model surface detection method based on machine vision. Background Art

[0002] With the rapid development of 3D printing technology, various 3D printed models have emerged on the market. However, the surface of the model obtained by 3D printing usually has some defects, such as high surface roughness or poor flatness. Therefore, it is usually necessary to detect the surface of the 3D model to obtain the accurate location of the defects on the surface of the model, and further process these defects to obtain a better quality 3D model.

[0003] The existing technology usually uses a point cloud registration algorithm based on image processing methods to detect the surface of a 3D model. However, the traditional point cloud registration algorithm usually obtains matching point pairs based on the Euclidean distance, ignoring the defective structure and detailed features of the 3D model, and is prone to produce a certain number of erroneous point pairs, resulting in low accuracy of point cloud registration, thereby making the accuracy of surface defect detection of the 3D model low. Summary of the invention

[0004] The purpose of the present invention is to provide a method for improving the metric distance in the point cloud registration algorithm by using the difference in 3D structure change intensity between the point cloud image of a 3D model to be tested and the corresponding standard 3D model point cloud image, as well as the difference in the roughness of the 3D model, so that the accuracy of the corresponding point cloud registration is higher, thereby making it possible to provide a 3D model surface detection method based on machine vision with higher accuracy in detecting surface defects of the 3D model.

[0005] The present invention is achieved in that:

[0006] A 3D model surface detection method based on machine vision.

[0007] It includes: obtaining a point cloud image of a 3D model to be tested and a corresponding point cloud image of a standard 3D model;

[0008] In the 3D model point cloud image, any model point cloud data point is selected as the target model point cloud data point; the target model point cloud data point and its neighboring model point cloud data points are selected as reference model point cloud data points; at least two normal vector angles are obtained according to the direction difference between the normal vectors of the reference model point cloud data point on the corresponding fitting surface of all reference model point cloud data points; the mutation angle in the normal vector angle is obtained according to the abnormal mutation of the normal vector angle and the corresponding angle value distribution; the model angle similarity between each normal vector angle and all mutation angles is obtained according to the angle difference between the normal vector angle and the mutation angle;

[0009] According to the distribution of normal vector angles and the difference distribution of corresponding model angle similarities, the 3D structural change intensity corresponding to the target model point cloud data points is obtained; according to the spatial position distribution of all reference model point cloud data points and the corresponding normal vector angle difference distribution, the 3D model roughness corresponding to the target model point cloud data points is obtained; according to the difference in 3D structural change intensity between the point cloud image of the 3D model to be tested and the corresponding standard 3D model point cloud image, as well as the difference in 3D model roughness, the metric distance in the point cloud registration algorithm is improved to obtain the improved metric distance corresponding to each metric distance; according to the improved metric distance, the 3D model surface detection is performed through the point cloud registration algorithm.

[0010] Furthermore, the method for obtaining the 3D structure change intensity includes:

[0011] All mutation angles are randomly arranged to obtain a mutation angle sequence; the model angle similarities between each normal vector angle and all mutation angles are arranged in the order of the mutation angle sequence to obtain a model angle similarity sequence for each normal vector angle; all normal vector angles are randomly arranged to obtain a normal vector angle sequence; the coefficient of variation of the angle values ​​of all normal vector angles in the normal vector angle sequence is used as the model difference feature value of the target model point cloud data point;

[0012] In the normal vector angle sequence, the last normal vector angle is taken as the previous normal vector angle of the first normal vector angle, and the model overall similarity index of each normal vector angle is obtained according to the dynamic time bending distance between each normal vector angle and the model angle similarity sequence corresponding to the previous normal vector angle; the mean of the negative correlation mapping values ​​of all model angle similarities corresponding to each normal vector angle is taken as the model average similarity index of each normal vector angle; the product of the model overall similarity index of each normal vector angle and the model average similarity index is taken as the model reference similarity index of each normal vector angle; the accumulated value of the model reference similarity index of all normal vector angles is taken as the model similarity feature value of the target model point cloud data point;

[0013] The 3D structure change intensity of the target model point cloud data is obtained according to the model difference feature value and the model similarity feature value, and both the model difference feature value and the model similarity feature value are positively correlated with the 3D structure change intensity.

[0014] Furthermore, the method for obtaining the roughness of the 3D model includes:

[0015] Perform feature point detection on the 3D model point cloud image using the SIFT algorithm to obtain all feature points in the 3D model point cloud image;

[0016] If the number of feature points in the reference model point cloud data points is less than two, the feature point angle sequence of the target model point cloud data points is formed according to the normal vector angle with the smallest angle value and the normal vector angle with the largest angle value; if the number of feature points in the reference model point cloud data points is greater than or equal to two, the feature point angle sequence of the target model point cloud data points is formed according to the normal vector angles of all the feature points therein;

[0017] A differential sequence of the feature point angle sequence is obtained, and the data entropy of all data in the differential sequence is used as the local disorder degree of the target model point cloud data point; data with equal values ​​in the differential sequence are regarded as one kind of data, and the cumulative value of the negative correlation mapping values ​​of the data quantity corresponding to all types of data is used as the discrete degree of the target model point cloud data point; the 3D model roughness of the target model point cloud data point is obtained according to the discrete degree and the local disorder degree, and the discrete degree and the local disorder degree are both positively correlated with the 3D model roughness.

[0018] Furthermore, the method for obtaining the improved metric distance includes:

[0019] In the point cloud image of the 3D model to be tested, any model point cloud data point is selected as a reference point cloud data point of the model to be tested; in the point cloud image of the standard 3D model, any model point cloud data point is selected as a reference standard model point cloud data point;

[0020] The metric distance between the reference model point cloud data points to be tested and the reference standard model point cloud data points obtained according to the point cloud registration algorithm is used as the reference metric distance; the difference in 3D structure change intensity between the reference model point cloud data points to be tested and the reference standard model point cloud data points is used as the reference 3D structure change intensity difference; the difference in 3D model roughness between the reference model point cloud data points to be tested and the reference standard model point cloud data points is used as the reference 3D model roughness difference; the sum of the product of the reference 3D structure change intensity difference and the reference 3D model roughness difference and the reference metric distance is used as the improved metric distance corresponding to the reference metric distance.

[0021] Furthermore, the method for performing 3D model surface detection by using a point cloud registration algorithm according to the improved metric distance includes:

[0022] The improved metric distance is used as the metric distance in the ICP point cloud registration algorithm to continue point cloud registration and obtain a point cloud registration result; the 3D model surface detection is performed based on the model point cloud data points that fail to be registered in the point cloud registration result.

[0023] Furthermore, the method for obtaining the model angle similarity includes:

[0024] The negative correlation mapping value of the angle difference between each normal vector angle and each mutation angle is used as the model angle similarity between each normal vector angle and each mutation angle.

[0025] Furthermore, the method for obtaining the normal vector angle includes:

[0026] The normal vector of each reference model point cloud data point on the corresponding fitting surface is used as the reference normal vector corresponding to each reference model point cloud data point; the angle between any two reference normal vectors is used as the normal vector angle.

[0027] Furthermore, the method for obtaining the sudden change angle includes:

[0028] Randomly arrange all normal vector angles to obtain a normal vector angle sequence;

[0029] A mutation point detection is performed on the normal vector angle sequence. If a mutation point exists in the mutation point detection result, the normal vector angle corresponding to the mutation point in the normal vector angle sequence is used as the mutation angle; if no mutation point exists in the mutation point detection result, the normal vector angle with the largest angle value in the normal vector angle sequence is used as the mutation angle.

[0030] Furthermore, the method for obtaining the 3D structure change intensity of the target model point cloud data according to the model difference feature value and the model similarity feature value includes:

[0031] The product of the model difference eigenvalue and the model similarity eigenvalue is rounded down to obtain the 3D structure change intensity of the target model point cloud data.

[0032] Furthermore, the method for obtaining the 3D model roughness of the target model point cloud data points according to the discrete degree and the local disorder degree includes:

[0033] The normalized value of the product of the discrete degree and the local disorder degree is used as the 3D model roughness of the target model point cloud data point.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] Taking into account that the structure corresponding to the area where defects appear on the surface of the 3D model usually changes, such as the bulge caused by excessive local material, the similarity between the normal vector angles corresponding to the model point cloud data in the corresponding area will be weakened due to the structural change, and the normal vector angles of the corresponding area will change greatly. Therefore, the present invention obtains the 3D structural change intensity corresponding to each model point cloud data point according to the distribution of the normal vector angles and the difference distribution of the corresponding model angle similarities, and further improves the metric distance in the point cloud registration algorithm according to the difference in 3D structural change intensity between the standard 3D model point cloud image and the 3D model point cloud image to be tested, thereby further improving the accuracy of point cloud registration. Furthermore, considering that the area where defects appear on the surface of the 3D model is usually rough, the spatial position of the model point cloud data points in the corresponding area and the distribution of the normal vector angle are usually chaotic. Therefore, the present invention obtains the 3D model roughness corresponding to each model point cloud data point based on the spatial position distribution of the reference model point cloud data points and the corresponding normal vector angle difference distribution, and further improves the metric distance in the point cloud registration algorithm based on the difference in 3D model roughness between the standard 3D model point cloud image and the 3D model point cloud image to be tested, thereby further improving the accuracy of the point cloud registration. In summary, the present invention improves the metric distance in the point cloud registration algorithm based on the difference in 3D structural change intensity between the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, as well as the difference in 3D model roughness, so that the accuracy of the corresponding point cloud registration is higher, thereby making the accuracy of 3D model surface defect detection higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 is a flow chart of the method of the present invention;

[0038] Figure 2 It is a flow chart of the improved method of the point cloud registration algorithm of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] See also Figure 1 , a 3D model surface detection method based on machine vision, the method comprising:

[0041] Step S1: Obtain a point cloud image of a 3D model to be tested and a corresponding point cloud image of a standard 3D model.

[0042] The embodiment of the present invention aims to provide a 3D model surface detection method based on machine vision, based on an image processing method, which improves the metric distance in a point cloud registration algorithm according to the difference in 3D structure change intensity between a point cloud image of a 3D model to be tested and a point cloud image of a standard 3D model, as well as the difference in 3D model roughness, and performs 3D model surface detection through a point cloud registration algorithm based on the improved metric distance. Therefore, it is first necessary to obtain an object for image processing.

[0043] The embodiment of the present invention first obtains a point cloud image of the 3D model to be tested and a corresponding point cloud image of the standard 3D model. In the embodiment of the present invention, the 3D model to be tested and the corresponding standard 3D model are scanned and imaged at the same angle by a three-dimensional laser line scanning device to generate an initial point cloud image of the 3D model to be tested with the same three-dimensional effect, and an initial point cloud image of the standard 3D model of the corresponding standard 3D model. In order to reduce the influence of external interference and noise during the scanning and imaging process, the embodiment of the present invention pre-processes the point cloud data in the initial point cloud image of the 3D model to be tested and the initial point cloud image of the standard 3D model by an outlier detection algorithm to obtain the point cloud image of the 3D model to be tested and the corresponding point cloud image of the standard 3D model required by the embodiment of the present invention. It should be noted that the outlier detection algorithm is a prior art well known to those skilled in the art, and is not further limited or elaborated here. It should be further noted that the implementer can also obtain the 3D model to be tested and the corresponding standard 3D model by other methods according to the specific implementation environment, and the standard 3D model is the same as the model corresponding to the 3D model to be tested, but there is no defect on the surface of the 3D model, which is not further elaborated here.

[0044] Step S2: In the 3D model point cloud image, select any model point cloud data point as the target model point cloud data point; use the target model point cloud data point and its neighboring model point cloud data points as reference model point cloud data points; obtain at least two normal vector angles based on the direction difference between the normal vectors of the reference model point cloud data point on the corresponding fitting surface of all reference model point cloud data points; obtain the sudden change angle in the normal vector angle based on the abnormal sudden change of the normal vector angle and the corresponding angle value distribution; obtain the model angle similarity between each normal vector angle and all the sudden change angles based on the angle difference between the normal vector angle and the sudden change angle.

[0045] Considering that when defects appear on the surface of a 3D model point cloud image, the corresponding defects are usually manifested as changes in the structure of the model point cloud data points in a local area on the 3D model point cloud image. And the subsequently improved metric distance is analyzed on two model point cloud data points between the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, so the embodiment of the present invention analyzes the local area of ​​each model point cloud data point, and considering that the analysis methods for the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image are the same, the embodiment of the present invention selects any one model point cloud data point in the 3D model point cloud image as the target model point cloud data point; and uses the target model point cloud data point and its neighboring model point cloud data points as reference model point cloud data points.

[0046] The 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image are both 3D model point cloud images. Therefore, the process of analyzing the 3D model point cloud image in the embodiment of the present invention is also the process of analyzing the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image. And because the reference model point cloud data point and the target model point cloud data point are neighbors, the local area corresponding to the target model point cloud data point is characterized by the area corresponding to the reference model point cloud data point, so that when each model point cloud data point is analyzed later, the analysis of the local area is introduced. The embodiment of the present invention uses the preset number of nearest neighbor model point cloud data points of the target model point cloud data point and its nearest neighbors as the reference model point cloud data point. In the embodiment of the present invention, the preset number is set to 100. It should be noted that the implementer can adjust the size of the preset number according to the specific implementation environment, which will not be further elaborated here.

[0047] Since most areas of the 3D model surface without defects are relatively flat, if the model point cloud data points in the local area are analyzed, the normal vectors corresponding to the model point cloud data points are usually parallel or have a small angle, that is, the angles between the two normal vectors have a strong similarity. When defects appear in the local area of ​​the model surface, the corresponding flatness will be destroyed, and the similarity of the angles between the normal vectors will be weakened. Therefore, the structural characteristics of the corresponding local area can be further characterized according to the angle between the normal vectors. First, it is necessary to obtain the normal vector angle. In an embodiment of the present invention, at least two normal vector angles are obtained based on the directional difference between the normal vectors of the reference model point cloud data points on the corresponding fitting surface of all reference model point cloud data points. In an embodiment of the present invention, the fitting surface corresponding to all reference model point cloud data is obtained by a surface fitting algorithm. It should be noted that the surface fitting algorithm is a prior art well known to those skilled in the art, and is not further limited or elaborated here.

[0048] Preferably, the method for obtaining the normal vector angle includes:

[0049] The normal vector of each reference model point cloud data point on the corresponding fitting surface is used as the reference normal vector corresponding to each reference model point cloud data point; the angle between any two reference normal vectors is used as the normal vector angle. Since it is a fitting surface, when defects appear in the local area corresponding to the target model point cloud data point, the direction corresponding to the reference normal vector of the corresponding part of the reference model point cloud data point on the fitting surface will usually be significantly different from other reference normal vectors, and since the normal vector has a direction, the angle value of the normal vector angle ranges from 0 to 180. It should be noted that in the embodiment of the present invention, the directions corresponding to all reference normal vectors are toward the outside of the 3D model. The implementer may also use the direction toward the inside of the 3D model as the direction corresponding to the reference normal vector according to the specific implementation environment. No further elaboration will be given here.

[0050] Since most areas of the 3D model surface without defects are relatively flat, all the corresponding normal vector angles are relatively similar. However, when defects appear in the local area corresponding to the target model point cloud data point, some normal vector angles will be greatly different from other normal vector angles, thereby affecting the similarity of the overall normal vector angle. In order to better reflect the defect characteristics of the local area, the embodiment of the present invention obtains the sudden change angle in the normal vector angle based on the abnormal sudden change of the normal vector angle and the corresponding angle value distribution. The sudden change angle is used to further reflect the structural changes or defects in the local area corresponding to the target model point cloud data point.

[0051] Preferably, the method for obtaining the mutation angle includes:

[0052] All normal vector angles are randomly arranged to obtain a normal vector angle sequence; mutation point detection is performed on the normal vector angle sequence. Considering that mutation point detection may not necessarily result in a mutation point, when the target model point cloud data point corresponds to all

[0053] When the local area composed of the reference model point cloud data points is too flat, there may be a situation where there is no mutation point. Therefore, in order to facilitate subsequent analysis, each target model point cloud data point can obtain the corresponding mutation angle. The embodiment of the present invention analyzes whether there is a mutation point in the mutation point detection result separately. If there is a mutation point in the mutation point detection result, the normal vector angle corresponding to the mutation point in the normal vector angle sequence is used as the mutation angle. Since the most prominent feature of the mutation angle is that the corresponding angle is relatively large, if there is no mutation point in the mutation point detection result, the normal vector angle with the largest angle value in the normal vector angle sequence is used as the mutation angle. It should be noted that in order to avoid the influence of randomness of the sorting in the normal vector angle sequence, the implementer can obtain multiple normal vector angle sequences so that the obtained mutation point result is more accurate, and the mutation point detection is a prior art well known to those skilled in the art, and is not further limited or elaborated here.

[0054] Taking into account that the more obvious the defect features in the local area corresponding to the target model point cloud data point are, the greater the difference between the corresponding mutation angle and the normal vector, that is, the less similar the corresponding angles are, in order to further characterize the defect features in the local area corresponding to the target model point cloud data point according to the similarity, an embodiment of the present invention obtains the model angle similarity between each normal vector angle and all mutation angles based on the angle difference between the normal vector angle and the mutation angle.

[0055] Preferably, the method for obtaining the model angle similarity includes:

[0056] The negative correlation mapping value of the angle difference between each normal vector angle and each mutation angle is used as the model angle similarity between each normal vector angle and each mutation angle. Since the smaller the angle difference between the normal vector angle and the mutation angle, the more similar the normal vector angle and the mutation angle are, the negative correlation mapping value of the angle difference is used as the model angle similarity.

[0057] In the embodiment of the present invention, the method for obtaining the model angle similarity between the th normal vector angle and the th mutation angle is expressed in the formula as follows:

[0058]

[0059] Among them, for the A i,j The model angle similarity between the normal vector angle and the i-th mutation angle, l i is the angle value corresponding to the angle of the i-th normal vector, f j is the angle value corresponding to the jth mutation angle, || is the absolute value sign, ln() is the logarithmic function with the natural constant e as the base, and floor() is the floor function; ∈ is the preset first adjustment parameter, which is used to prevent the similarity of the model angle from being infinite. In the embodiment of the present invention, the preset first adjustment parameter is set to 0.0001. The implementer can adjust the size of the preset first adjustment parameter according to the specific implementation environment, which will not be further elaborated here.

[0060] In addition, implementers can also obtain the model angle similarity between the th normal vector angle and the th mutation angle through other forms of formulas, for example:

[0061]

[0062] Among them, a is a preset second adjustment parameter used to prevent the denominator from being 0; the meanings of the remaining parameters are the same as the formula corresponding to the method for obtaining the model angle similarity between the i-th normal vector angle and the j-th mutation angle in the embodiment of the present invention; in the embodiment of the present invention, the preset second adjustment parameter is set to 0.01, and the implementer can adjust the size of the preset second adjustment parameter according to the specific implementation environment, which will not be further elaborated here.

[0063] Step S3: According to the distribution of normal vector angles and the difference distribution of corresponding model angle similarities, the 3D structure change intensity corresponding to the target model point cloud data points is obtained; according to the spatial position distribution of all reference model point cloud data points and the corresponding normal vector angle difference distribution, the 3D model roughness corresponding to the target model point cloud data points is obtained; according to the difference in 3D structure change intensity between the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, and the difference in 3D model roughness, the metric distance in the point cloud registration algorithm is improved to obtain the improved metric distance corresponding to each metric distance.

[0064] At this point, all normal vector angles corresponding to the target model point cloud data points, as well as the model angle similarities corresponding to each normal vector angle and all mutation angles, are obtained. Considering that for the target model point cloud data points, if the local area is relatively smooth and the corresponding defect features are not obvious, the corresponding normal vector angles are relatively similar, that is, the angle values ​​corresponding to the normal vector angles are not much different, the distribution is relatively concentrated, and the model angle similarities corresponding to the normal vector angles also have a certain similarity; if there are obvious defect features in the local area, the similarity between the corresponding normal vector angles will be affected, the concentration of the corresponding angle value distribution will be reduced, and the similarity between the model angle similarities corresponding to the normal vector angles will also be affected. The embodiment of the present invention obtains the 3D structure change intensity corresponding to the target model point cloud data points based on the distribution of the normal vector angles and the difference distribution of the corresponding model angle similarities. The intensity of 3D structural change refers to the degree to which the corresponding surface structure changes after the local area corresponding to the target model point cloud data point is affected by the defect. That is, the greater the impact of the defect on the target model point cloud data point, the more obvious the defect characteristics of the corresponding local area are, and the greater the corresponding 3D structural change intensity.

[0065] Preferably, the method for obtaining the 3D structure change intensity includes:

[0066] All mutation angles are randomly arranged to obtain a mutation angle sequence; the model angle similarity between each normal vector angle and all mutation angles is arranged in the order of the mutation angle sequence to obtain the model angle similarity sequence of each normal vector angle; all normal vector angles are randomly arranged to obtain a normal vector angle sequence; the coefficient of variation of the angle values ​​of all normal vector angles in the normal vector angle sequence is used as the model difference characteristic value of the target model point cloud data point. According to the definition of the coefficient of variation, the coefficient of variation of the angle values ​​of all normal vector angles can characterize the degree of discreteness of the angle values ​​of all normal vector angles. The larger the corresponding coefficient of variation, the more discrete the corresponding angle value. And for the normal vector angle, if the corresponding all angle values ​​are more discrete, it means that the similarity of the overall normal vector angle is worse, that is, the defect characteristics of the local area corresponding to the target model point cloud data point are more obvious; that is, the larger the model difference characteristic value, the greater the corresponding 3D structure change intensity. It should be noted that the coefficient of variation is the ratio of the standard deviation to the mean, which will not be further elaborated here.

[0067] In the normal vector angle sequence, the last normal vector angle is used as the previous normal vector angle of the first normal vector angle, and the overall model similarity index of each normal vector angle is obtained according to the dynamic time warping distance between each normal vector angle and the model angle similarity sequence corresponding to the previous normal vector angle. The purpose of using the last normal vector angle as the previous normal vector angle of the first normal vector angle is to prevent the problem that the first normal vector angle cannot be included in the calculation due to the non-existence of the previous normal vector angle when the dynamic time warping distance between each normal vector angle and the model angle similarity sequence corresponding to the previous normal vector angle is calculated later. It should be noted that the calculation method of the dynamic time warping distance is a prior art well known to those skilled in the art and will not be further limited or elaborated here.

[0068] Since the model angle similarity sequence is obtained according to the order of the corresponding mutation angle sequence, the sequence length of the model angle similarity sequence of each normal vector angle is the same, and the order of each model angle similarity also corresponds to each other, so for each normal vector angle, if the difference between it and the previous normal vector angle is not large, the sequence similarity between the normal vector angle and the model angle similarity sequence corresponding to the previous normal vector angle is usually large, that is, the dynamic bending distance is small, that is, the corresponding model overall similarity index is usually small. That is, the more similar the normal vector angles corresponding to the target model point cloud data points are, the smaller the corresponding dynamic bending distance is, the smaller the corresponding model overall similarity index is, and the less obvious the defect features in the corresponding local area are.

[0069] The mean of the negative correlation mapping values ​​of all model angle similarities corresponding to each normal vector angle is taken as the model average similarity index of each normal vector angle. For all model angle similarities corresponding to each normal vector angle, the mean of the corresponding negative correlation mapping values ​​is usually related to the overall size of the mutation angle. The larger the corresponding mutation angle is as a whole, that is, the larger the mean of the overall negative correlation mapping value is, the more obvious the defect features in the local area corresponding to the target model point cloud data point are, the worse the corresponding local flatness is, the greater the corresponding structural change is, that is, the greater the intensity of 3D structural change is.

[0070] Since the target model point cloud data point usually corresponds to multiple normal vector angles, and each normal vector angle can correspond to a model overall similarity index and a model average similarity index, in order to combine all the overall similarity indices and the model average similarity indices, the embodiment of the present invention uses the product of the model overall similarity index and the model average similarity index of each normal vector angle as the model reference similarity index of each normal vector angle; and uses the cumulative value of the model reference similarity index of all normal vector angles as the model similarity eigenvalue of the target model point cloud data point. Since the larger the overall similarity index and the larger the model average similarity index, the greater the corresponding 3D structure change intensity, the model similarity eigenvalue is positively correlated with the 3D structure change intensity.

[0071] After obtaining the model difference eigenvalue and the model similarity eigenindex of the target model point cloud data point, the 3D structural change intensity of the target model point cloud data is further obtained based on the model difference eigenvalue and the model similarity eigenvalue, and both the model difference eigenvalue and the model similarity eigenvalue are positively correlated with the 3D structural change intensity. Preferably, the embodiment of the present invention rounds down the product of the model difference eigenvalue and the model similarity eigenvalue to obtain the 3D structural change intensity of the target model point cloud data. It should be noted that the implementer can also obtain the corresponding 3D structural change intensity based on the model difference eigenvalue and the model similarity eigenvalue by other methods according to the specific implementation environment, but it is necessary to ensure that the model difference eigenvalue and the model similarity eigenvalue are positively correlated with the 3D structural change intensity, which will not be further elaborated here.

[0072] In an embodiment of the present invention, the method for obtaining the 3D structure change intensity of the target model point cloud data point is expressed in the formula as follows:

[0073]

[0074] Among them, D h is the 3D structure change intensity of the target model point cloud data point; σ h(l) is the model difference characteristic value of the target model point cloud data point, that is, the coefficient of variation of the angle values ​​of all normal vector angles corresponding to the target model point cloud data point; n is the number of normal vector angles corresponding to the target model point cloud data point; is the dynamic time bending distance between the model angle similarity sequence corresponding to the a-th normal vector angle in the normal vector angle sequence and the previous normal vector angle, that is, the overall model similarity index of the a-th normal vector angle in the normal vector angle sequence; t is the number of mutation angles corresponding to the target model point cloud data points, that is, the length of the mutation angle sequence, that is, the length of each model angle similarity sequence; A a,q is the qth model angle similarity in the model angle similarity sequence corresponding to the ath normal vector angle in the normal vector angle sequence; exp() is an exponential function with the natural constant e as the base, floor() is a floor rounding function, is the model average similarity index of the ath normal vector angle in the normal vector angle sequence, is the model reference similarity index of the normal vector angle in the normal vector angle sequence, is the model similarity feature value of the target model point cloud data point.

[0075] At this point, the 3D structural change intensity corresponding to the target model point cloud data point is obtained. Considering that the defects on the 3D model surface will not only affect the 3D structural change intensity corresponding to the 3D model, but also affect the roughness of the corresponding surface, that is, it is necessary to analyze the roughness characteristics of the local area corresponding to the target model point cloud data point. Considering that the rougher the local area of ​​the target model point cloud data point is, the corresponding surface will usually be uneven, the spatial position distribution of the corresponding reference model point cloud data will be different from the situation when there is no roughness, and the angle value distribution of the corresponding normal vector angle is usually chaotic. The embodiment of the present invention obtains the 3D model roughness corresponding to the target model point cloud data point based on the spatial position distribution of all reference model point cloud data points and the corresponding normal vector angle difference distribution.

[0076] Preferably, the method for obtaining the roughness of the 3D model includes:

[0077] The 3D model point cloud image is subjected to feature point detection through the Scale-Invariant Feature Transform (SIFT) algorithm to obtain all feature points in the 3D model point cloud image. Since when the surface of the 3D model point cloud image is relatively rough, the corresponding surface is usually uneven, so when the feature point detection is performed through the SIFT algorithm, more feature points are usually obtained. It should be noted that the SIFT algorithm is a prior art well known to those skilled in the art and is not further limited or elaborated herein.

[0078] However, it is necessary to consider that there may be areas that are not rough, resulting in the sampling SIFT algorithm failing to obtain feature points when performing feature point detection. Therefore, in order to facilitate subsequent analysis and enable each target model point cloud data point to obtain a feature point angle sequence with sufficient data, the embodiment of the present invention performs separate analysis based on the feature point detection results of the SIFT algorithm: Since the differential sequence of the feature point angle sequence needs to be analyzed later, it is necessary to ensure that the number of data in the feature point angle sequence is at least two. Therefore, if the number of feature points in the reference model point cloud data point is greater than or equal to two, the feature point angle sequence of the target model point cloud data point is constructed based on the normal vector angles of all the feature points. Since the purpose of obtaining the differential sequence of the feature point angle sequence is to analyze the differences between the normal vector angles of the feature points, the differences in the normal vector angles corresponding to the feature points in the feature point angle sequence are usually large. Therefore, if the number of feature points in the reference model point cloud data point is less than two, the feature point angle sequence of the target model point cloud data point is constructed based on the normal vector angle with the smallest angle value and the normal vector angle with the largest angle value.

[0079] At this point, the feature point angle sequence corresponding to the target model point cloud data point is obtained. In order to more accurately characterize the roughness of the local area corresponding to the target model point cloud data point according to the feature point angle sequence, the embodiment of the present invention quantifies the difference between the normal vector angles corresponding to the feature points by differential means, that is, the embodiment of the present invention obtains the differential sequence of the feature point angle sequence. It should be noted that the method for obtaining the differential sequence is a technical means well known to those skilled in the art, and will not be further limited or elaborated here.

[0080] The data entropy of all data in the differential sequence is taken as the local disorder degree of the target model point cloud data point; the data with equal values ​​in the differential sequence is taken as one kind of data, and the cumulative value of the negative correlation mapping values ​​corresponding to the data quantity of all types of data is taken as the discrete degree of the target model point cloud data point. When the local area of ​​the target model point cloud data point is rougher, the angle value of the normal vector angle in the corresponding feature point angle sequence is usually more chaotic, that is, the corresponding data in the differential sequence is more chaotic, so the embodiment of the present invention characterizes the local disorder degree of the target model point cloud data through the data entropy of all data in the differential sequence. And considering that the rougher the corresponding local area, the worse the density of the corresponding differential value is usually, the embodiment of the present invention further characterizes the roughness of the local area corresponding to the target model point cloud data point by calculating the corresponding discrete degree. It should be noted that the calculation method of data entropy is a prior art well known to those skilled in the art, and is not further limited or elaborated here.

[0081] Since the greater the discreteness and local chaos corresponding to the target model point cloud data points, the rougher the corresponding local area, the embodiment of the present invention obtains the 3D model roughness of the target model point cloud data points according to the discreteness and local chaos, and both the discreteness and local chaos are positively correlated with the 3D model roughness. Preferably, the embodiment of the present invention uses the normalized value of the product of the discreteness and the local chaos as the 3D model roughness of the target model point cloud data points. It should be noted that the implementer can also obtain the corresponding 3D model roughness according to the discreteness and local chaos by other methods, such as using the normalized value of the sum of the discreteness and the local chaos as the corresponding 3D model roughness, which will not be further elaborated here.

[0082] In the embodiment of the present invention, the method for obtaining the 3D model roughness of the target model point cloud data point is expressed in the formula as follows:

[0083]

[0084] Among them, M h is the 3D model roughness of the target model point cloud data point; P(Q h ) is the local disorder degree of the target model point cloud data point, that is, the data entropy of all data in the corresponding differential sequence of the target model point cloud data point; T u is the number of data of the uth type in the differential sequence of the target model point cloud data points, R is the number of data types in the differential sequence of the target model point cloud data points, is the degree of discreteness of the target model point cloud data points.

[0085] Since the target model point cloud data point is any model point cloud data point in the 3D model point cloud image, the 3D structural change intensity and the 3D model roughness corresponding to each model point cloud data point in the 3D model point cloud image have been obtained. Since the analysis method of the 3D model point cloud image to be tested is the same as that of the corresponding standard 3D model point cloud image, and both are 3D model point cloud images, the 3D structural change intensity and the 3D model roughness of each model point cloud data point in the 3D model point cloud image to be tested, as well as the 3D structural change intensity and the 3D model roughness of each model point cloud data point in the corresponding standard 3D model point cloud image can be obtained. Considering that the traditional point cloud registration algorithm usually calculates the corresponding point pairs based on the Euclidean distance between the model point cloud data points, resulting in a large loss of local feature information, so that the accuracy of point cloud registration is low. Therefore, based on the 3D structure change intensity and the 3D model roughness, the embodiment of the present invention improves the metric distance in the point cloud registration algorithm according to the difference in 3D structure change intensity between the point cloud image of the 3D model to be tested and the corresponding standard 3D model point cloud image, as well as the difference in 3D model roughness, to obtain an improved metric distance corresponding to each metric distance. In the embodiment of the present invention, the point cloud registration algorithm adopts the ICP point cloud registration algorithm. It should be noted that the ICP point cloud registration algorithm is a technical means well known to those skilled in the art, and is not further limited or elaborated here.

[0086] Preferably, the method for obtaining the improved metric distance includes:

[0087] In the point cloud image of the 3D model to be tested, any model point cloud data point is selected as the reference point cloud data point of the model to be tested; in the point cloud image of the standard 3D model, any model point cloud data point is selected as the reference standard model point cloud data point; the metric distance between the reference point cloud data point of the model to be tested and the reference standard model point cloud data point obtained according to the point cloud registration algorithm is used as the reference metric distance. The reference metric distance is the metric distance obtained on the basis of the traditional point cloud registration algorithm, that is, the metric distance before improvement. It should be noted that the method for obtaining the metric distance in the point cloud registration algorithm is a prior art well known to those skilled in the art, and is not further limited or elaborated herein.

[0088] The difference in 3D structural change intensity between the reference to-be-tested model point cloud data points and the reference to-standard model point cloud data points is used as the reference 3D structural change intensity difference; the difference in 3D model roughness between the reference to-be-tested model point cloud data points and the reference to-standard model point cloud data points is used as the reference 3D model roughness difference; the sum of the product between the reference 3D structural change intensity difference and the reference 3D model roughness difference and the reference metric distance is used as the improved metric distance corresponding to the reference metric distance. The metric distance is the degree of proximity between the reference to-be-tested model point cloud data points and the standard model point cloud data points in spatial distance, and the 3D model roughness and 3D structural change intensity can characterize the local feature information of the 3D model surface. Therefore, the embodiment of the present invention characterizes the degree of proximity between the reference to-be-tested model point cloud data points and the standard model point cloud data points in local feature information by using the reference 3D model roughness difference and the reference 3D structural change intensity difference. The degree of proximity in spatial distance and the degree of proximity in local feature information are further combined to obtain the improved metric distance.

[0089] In an embodiment of the present invention, the method for obtaining the improved metric distance between the reference to-be-tested model point cloud data points and the reference to the standard model point cloud data points is expressed in the formula as follows:

[0090] W(h,h′)=dist(h,h′)+|D h -D h ′|×M h -M h ′|

[0091] Where W(h, h′) is the improved metric distance between the reference to-be-tested model point cloud data point h and the reference to-standard model point cloud data point h′; dist(h, h′) is the reference metric distance between the reference to-be-tested model point cloud data point h and the reference to-standard model point cloud data point h′, i.e., the metric distance before improvement; D h is the 3D structure change intensity of the reference point cloud data point h of the model to be tested, D h′ is the 3D structure change intensity of the reference standard model point cloud data point h′, M h is the roughness of the 3D model of the reference point cloud data point h of the model to be tested, M h′ is the 3D model roughness of the reference standard model point cloud data point h′; |D h -D h′ | is the difference in 3D structure change intensity between the reference point cloud data point h of the model to be tested and the reference point cloud data point h′ of the standard model, that is, the reference 3D structure change intensity difference; |M h -M h′| is the difference in 3D model roughness between the reference test model point cloud data point h and the reference standard model point cloud data point h′, that is, the reference 3D model roughness difference.

[0092] In addition, the implementer may also obtain the improved metric distance between the reference to-be-tested model point cloud data point h and the reference standard model point cloud data point h′ through other forms of formulas, for example:

[0093] W(h, h′)=dist(h, h′)+|D h -D h′ |+|M h -M h′ |

[0094] The meanings of all parameters in the formula are the same as those of the formula corresponding to the improved method for obtaining the metric distance in the embodiment of the present invention, and will not be further elaborated here.

[0095] Step S4: Perform 3D model surface detection through a point cloud registration algorithm according to the improved metric distance.

[0096] Thus, the method for obtaining the metric distance in the point cloud registration algorithm is improved to obtain the improved metric distance. It is further necessary to continue point cloud registration based on the improved metric distance, that is, the embodiment of the present invention performs 3D model surface detection through the point cloud registration algorithm according to the improved metric distance.

[0097] Preferably, the method for performing 3D model surface detection by using a point cloud registration algorithm according to an improved metric distance comprises:

[0098] The improved metric distance is used as the metric distance in the ICP point cloud registration algorithm to continue point cloud registration and obtain the point cloud registration result; the 3D model surface detection is performed based on the model point cloud data points that failed to be registered in the point cloud registration result. Since the point cloud registration process combines the local feature information of the 3D model surface, the local information corresponding to the model point cloud data that failed to be registered usually changes greatly, and the 3D model surface detection is further performed based on the model point cloud data that failed to be registered with large local information changes.

[0099] In summary, the method analyzes the 3D model point cloud image to be tested and the standard 3D model point cloud image, obtains the model angle similarity corresponding to each normal vector angle according to the distribution of the normal vector angle in the area adjacent to each model point cloud data point, and obtains the 3D structural change intensity of each model point cloud data point in combination with the distribution of the model angle similarity; further obtains the 3D model roughness according to the influence of the rough area of ​​the 3D model surface on the normal vector angle of the model point cloud data point; finally, the 3D model surface detection is performed through the point cloud registration algorithm according to the improved metric distance obtained based on the 3D structural change intensity and the 3D model roughness. The present invention has a higher accuracy in detecting 3D model surface defects by using the improved metric distance obtained through image processing.

[0100] Embodiment of an improved method for 3D model surface point cloud registration algorithm based on machine vision:

[0101] The existing point cloud registration algorithm for 3D model surface point cloud registration usually obtains matching point pairs based on the Euclidean distance between the point cloud data points of the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, ignoring the defective structure and detailed features of the 3D model, and easily generates a certain number of erroneous point pairs, resulting in low accuracy of the point cloud registration algorithm. In order to solve the problem of low accuracy of the point cloud registration algorithm for 3D model surfaces in the prior art, an embodiment of the present invention provides an improved method for the point cloud registration algorithm for 3D model surfaces based on machine vision. Please refer to Figure 2 , which shows a flow chart of an improved method for a 3D model surface point cloud registration algorithm based on machine vision, the method comprising:

[0102] Step S1: obtaining a point cloud image of a 3D model to be tested and a corresponding point cloud image of a standard 3D model;

[0103] Step S2: In the 3D model point cloud image, any model point cloud data point is selected as the target model point cloud data point; the target model point cloud data point and its neighboring model point cloud data points are selected as reference model point cloud data points; at least two normal vector angles are obtained according to the direction difference between the normal vectors of the reference model point cloud data point on the corresponding fitting surface of all reference model point cloud data points; the mutation angle in the normal vector angle is obtained according to the abnormal mutation of the normal vector angle and the corresponding angle value distribution; the model angle similarity between each normal vector angle and all mutation angles is obtained according to the angle difference between the normal vector angle and the mutation angle;

[0104] Step S3: According to the distribution of normal vector angles and the difference distribution of corresponding model angle similarities, the 3D structure change intensity corresponding to the target model point cloud data points is obtained; according to the spatial position distribution of all reference model point cloud data points and the corresponding normal vector angle difference distribution, the 3D model roughness corresponding to the target model point cloud data points is obtained; according to the difference in 3D structure change intensity between the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, and the difference in 3D model roughness, the metric distance in the point cloud registration algorithm is improved to obtain the improved metric distance corresponding to each metric distance.

[0105] Among them, step S1, step S2 and step S3 have been described in detail in the above-mentioned embodiment of the 3D model surface detection method based on machine vision, and will not be further described.

[0106] Taking into account that the structure corresponding to the area where defects appear on the surface of the 3D model usually changes, such as the bulge caused by excessive local material, the similarity between the normal vector angles corresponding to the model point cloud data in the corresponding area will be weakened due to the structural change, and the normal vector angles of the corresponding area will change greatly. Therefore, the present invention obtains the 3D structural change intensity corresponding to each model point cloud data point according to the distribution of the normal vector angles and the difference distribution of the corresponding model angle similarities, and further improves the metric distance in the point cloud registration algorithm according to the difference in 3D structural change intensity between the standard 3D model point cloud image and the 3D model point cloud image to be tested, thereby further improving the accuracy of point cloud registration. Furthermore, considering that the area where defects appear on the surface of the 3D model is usually rougher, the spatial position of the model point cloud data points and the normal vector angle distribution of the corresponding area are usually chaotic. Therefore, the present invention obtains the 3D model roughness corresponding to each model point cloud data point based on the spatial position distribution of the reference model point cloud data points and the corresponding normal vector angle difference distribution, and further improves the metric distance in the point cloud registration algorithm based on the 3D model roughness difference between the standard 3D model point cloud image and the 3D model point cloud image to be tested, thereby further improving the accuracy of the point cloud registration. In summary, the present invention improves the metric distance in the point cloud registration algorithm by using the difference in 3D structural change intensity between the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, as well as the 3D model roughness difference, and the point cloud registration accuracy of the corresponding point cloud registration algorithm is higher.

[0107] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A 3D model surface detection method based on machine vision, characterized in that: Methods include: Obtaining a point cloud image of the 3D model to be tested and a corresponding point cloud image of a standard 3D model; In the 3D model point cloud image, any model point cloud data point is selected as the target model point cloud data point; the target model point cloud data point and its neighboring model point cloud data points are selected as reference model point cloud data points; According to the direction difference between the normal vectors of the reference model point cloud data points on the corresponding fitting surfaces of all the reference model point cloud data points, at least two normal vector angles are obtained; according to the abnormal mutation of the normal vector angle and the corresponding angle value distribution, the mutation angle in the normal vector angle is obtained; according to the angle difference between the normal vector angle and the mutation angle, the model angle similarity between each normal vector angle and all the mutation angles is obtained; According to the distribution of normal vector angles and the distribution of the difference in the corresponding model angle similarity, the 3D structural change intensity corresponding to the target model point cloud data point is obtained; according to the spatial position distribution of all reference model point cloud data points and the corresponding normal vector angle difference distribution, the 3D model roughness corresponding to the target model point cloud data point is obtained; according to the difference in 3D structural change intensity between the 3D model point cloud image to be tested and the corresponding standard 3D model point cloud image, and the difference in 3D model roughness, the metric distance in the point cloud registration algorithm is improved to obtain the improved metric distance corresponding to each metric distance; 3D model surface detection is performed through point cloud registration algorithm based on improved metric distance.

2. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: The method for obtaining the 3D structure change intensity includes: All mutation angles are randomly arranged to obtain a mutation angle sequence; the model angle similarities between each normal vector angle and all mutation angles are arranged in the order of the mutation angle sequence to obtain a model angle similarity sequence for each normal vector angle; all normal vector angles are randomly arranged to obtain a normal vector angle sequence; the coefficient of variation of the angle values ​​of all normal vector angles in the normal vector angle sequence is used as the model difference eigenvalue of the target model point cloud data point; in the normal vector angle sequence, the last normal vector angle is used as the previous normal vector angle of the first normal vector angle, and the model angle similarity sequence corresponding to each normal vector angle and the previous normal vector angle is obtained according to the dynamic time bending distance between each normal vector angle and the previous normal vector angle. The invention discloses a method for obtaining a model overall similarity index of a normal vector angle; taking the mean of the negative correlation mapping values ​​of all model angle similarities corresponding to each normal vector angle as the model average similarity index of each normal vector angle; taking the product of the model overall similarity index of each normal vector angle and the model average similarity index as the model reference similarity index of each normal vector angle; taking the accumulated value of the model reference similarity index of all normal vector angles as the model similarity eigenvalue of the target model point cloud data point; obtaining the 3D structure change intensity of the target model point cloud data according to the model difference eigenvalue and the model similarity eigenvalue, and both the model difference eigenvalue and the model similarity eigenvalue are positively correlated with the 3D structure change intensity.

3. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: The method for obtaining the roughness of the 3D model includes: Perform feature point detection on the 3D model point cloud image using the SIFT algorithm to obtain all feature points in the 3D model point cloud image; If the number of feature points in the reference model point cloud data points is less than two, the feature point angle sequence of the target model point cloud data points is formed according to the normal vector angle with the smallest angle value and the normal vector angle with the largest angle value; if the number of feature points in the reference model point cloud data points is greater than or equal to two, the feature point angle sequence of the target model point cloud data points is formed according to the normal vector angles of all the feature points therein; Obtain the differential sequence of the feature point angle sequence, and use the data entropy of all data in the differential sequence as the local disorder degree of the target model point cloud data points; use the data with equal values ​​in the differential sequence as one kind of data, and use the accumulated value of the negative correlation mapping values ​​of the data quantity corresponding to all types of data as the discrete degree of the target model point cloud data points; The 3D model roughness of the target model point cloud data point is obtained according to the discrete degree and the local chaos degree, and the discrete degree and the local chaos degree are both positively correlated with the 3D model roughness.

4. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: Improved methods for obtaining metric distances include: In the point cloud image of the 3D model to be tested, any model point cloud data point is selected as a reference point cloud data point of the model to be tested; in the point cloud image of the standard 3D model, any model point cloud data point is selected as a reference standard model point cloud data point; The metric distance between the reference model point cloud data points to be tested and the reference standard model point cloud data points obtained according to the point cloud registration algorithm is used as the reference metric distance; the difference in 3D structure change intensity between the reference model point cloud data points to be tested and the reference standard model point cloud data points is used as the reference 3D structure change intensity difference; the difference in 3D model roughness between the reference model point cloud data points to be tested and the reference standard model point cloud data points is used as the reference 3D model roughness difference; the sum of the product of the reference 3D structure change intensity difference and the reference 3D model roughness difference and the reference metric distance is used as the improved metric distance corresponding to the reference metric distance.

5. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: Methods for detecting 3D model surfaces by point cloud registration algorithms based on improved metric distances include: The improved metric distance is used as the metric distance in the ICP point cloud registration algorithm to continue point cloud registration and obtain a point cloud registration result; the 3D model surface detection is performed based on the model point cloud data points that fail to be registered in the point cloud registration result.

6. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: The method for obtaining the model angle similarity includes: The negative correlation mapping value of the angle difference between each normal vector angle and each mutation angle is used as the model angle similarity between each normal vector angle and each mutation angle.

7. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: The method for obtaining the normal vector angle includes: The normal vector of each reference model point cloud data point on the corresponding fitting surface is used as the reference normal vector corresponding to each reference model point cloud data point; the angle between any two reference normal vectors is used as the normal vector angle.

8. The 3D model surface detection method based on machine vision according to claim 1, characterized in that: The method for obtaining the mutation angle comprises: Randomly arrange all normal vector angles to obtain a normal vector angle sequence; A mutation point detection is performed on the normal vector angle sequence. If a mutation point exists in the mutation point detection result, the normal vector angle corresponding to the mutation point in the normal vector angle sequence is used as the mutation angle; if no mutation point exists in the mutation point detection result, the normal vector angle with the largest angle value in the normal vector angle sequence is used as the mutation angle.

9. The method for detecting a 3D model surface based on machine vision according to claim 2, characterized in that: The method of obtaining the 3D structural change intensity of the target model point cloud data by using the model difference feature value and the model similarity feature value includes: The product of the model difference eigenvalue and the model similarity eigenvalue is rounded down to obtain the 3D structure change intensity of the target model point cloud data.

10. The 3D model surface detection method based on machine vision according to claim 3, characterized in that: The method for obtaining the 3D model roughness of the target model point cloud data point by using the discrete degree and the local disorder degree includes: The normalized value of the product of the discrete degree and the local disorder degree is used as the 3D model roughness of the target model point cloud data point.