Noise point screening method based on hole group constraint
By reducing the dimensionality of the hole group of the bridge orifice workpiece and establishing a hole group constraint model, the problems of low efficiency and inaccurate removal of noise points are solved, and more efficient and accurate noise point screening and relative position measurement of hole group are achieved.
Patent Information
- Application Number
- CN202510312635.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-03-17
AI Technical Summary
In the prior art, manual noise removal is inefficient and inaccurate, resulting in inaccurate measurement of relative position of the hole group on the bridge orifice workpiece.
By projecting the three-dimensional point set of hole groups on the bridge orifice workpiece onto the plane for dimensionality reduction, a two-dimensional point set is formed, and a hole group constraint model is established based on this, and noise points are eliminated using statistical probability theory.
The efficiency and accuracy of noise point screening are improved, and the parameters are optimized to achieve noise removal and data classification, ensuring the accuracy of relative position measurement of hole groups.
Smart Images

Figure CN119810457A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of noise screening, and in particular to a noise point screening method based on hole group constraints. Background Art
[0002] The bridge orifice plate workpiece has many hole-shaped structures, such as bolt holes, through holes, etc. Each hole is used for bolting positioning and plays an important role in the structural positioning of the workpiece. Therefore, it is necessary to measure the relative position of each hole.
[0003] The holes on the bridge orifice plate workpiece form a hole group, which is regularly distributed in an array. If photographic recognition is performed on them, a point cloud representing the three-dimensional coordinates of each hole can be obtained, but there are many noise points caused by misidentification. When determining the relative positions between the holes, the noise points must be removed, and then the relative positions between the remaining valid points are extracted. In the related art, noise points are generally removed manually, which is inefficient and not accurate enough. Summary of the invention
[0004] The present application provides a noise point screening method based on hole group constraints, which solves the technical problems of low efficiency and inaccuracy caused by manual removal of noise points in related technologies.
[0005] The embodiment of the present application provides a noise point screening method based on hole group constraints, which includes the following steps: Projecting a three-dimensional point set of a hole group on a bridge orifice plate workpiece onto a plane for dimensionality reduction to form a two-dimensional point set of the hole group; Establishing a hole group constraint model based on the two-dimensional point set of the hole group; Eliminate noise points according to the hole group constraint model; Wherein, establishing the hole group constraint model based on the two-dimensional point set includes: The hole group distribution forms a parallelogram unit, which is defined as a grid unit, and the prior probability distribution of the parameters of the grid unit is set; Under the condition of setting the prior probability distribution of the parameters, calculating the corresponding probability between each point in the two-dimensional point set of the hole group and the nearest corner point in the grid unit, which is defined as a likelihood function; The parameters of the maximized posterior probability and the corresponding grid unit are determined based on the prior probability distribution and the likelihood function to obtain the hole group constraint model.
[0006] In one embodiment, by PCA Method The three-dimensional point set of the hole group on the bridge hole plate workpiece is projected onto a plane for dimensionality reduction.
[0007] In one embodiment, projecting the three-dimensional point set of the hole group on the bridge orifice plate workpiece onto a plane for dimensionality reduction to form the two-dimensional point set of the hole group includes: The three-dimensional point set of the hole group is set as: ,in, is a three-dimensional point in the hole group, X is a set of three-dimensional points; The three-dimensional point set of the hole group is centralized. The calculation formula is: ; ; Determine the covariance matrix C , the calculation formula is:
[0008] in is the data matrix after data centering, ; Covariance matrix C Perform eigendecomposition and determine the corresponding eigenvalues and eigenvectors; The eigenvectors corresponding to the two largest eigenvalues and Defined as the principal plane, each three-dimensional point is projected onto the principal plane to form a two-dimensional point set of the hole cluster S ; The calculation formula is:
[0009] in, are the coordinates of a 3D point on the 2D principal plane, is a two-dimensional real vector space.
[0010] In one embodiment, the hole cluster distribution forms a parallelogram unit, which is defined as a grid unit, and the prior probability distribution of the parameters of the grid unit is set to include: The hole groups are distributed in triangular units. AOB Continuously repeating to form parallelogram units AOBC , the parallelogram unit AOBC is defined as said grid cell; The grid cell parameters are set to length a ,width b , Angle θ and angle , where the length a Main axis OA Length and width b Main axis OB Length, angle θ = ∠BOA , angle Main axis OB With coordinate axis x The angle of the axis; Set the parameters of the grid cells a , b , θ and The prior probability distribution of for: .
[0011] In one embodiment, the prior probability distribution of the parameters is set according to the machining accuracy and measurement accuracy of the bridge hole plate workpiece.
[0012] In one embodiment, under the condition of setting the prior probability distribution of the parameters, the corresponding probability of each point in the two-dimensional point set of the hole group and the nearest corner point in the grid unit is calculated, which is defined as the likelihood function including: The two-dimensional point set of the hole group S Each point in Convert to O In the local grid coordinate system with point as the origin, the calculation formula is:
[0013] in, and are the two-dimensional point sets of the hole group S The point in O Point on the main axis OA and spindle OB The projection distance in the direction, MOD For modular operation, and It is the coordinate of the point after the projection distance in two directions is localized to a grid unit; In setting the prior probability distribution of the parameters In the case of S Each point in The Euclidean distance to the corner of the grid cell , The calculation formula is: ; in, Yes i The corresponding j The coordinates of the corner points, j=1,2,3,4 , corresponding to ; Evaluate the point by the Gaussian function i Belongs to the corresponding j The probability of a corner point , The calculation formula is: ; in, is the standard deviation of the prior probability distribution; The maximum probability corner point is selected as its corresponding grid point, and its Gaussian function value is the degree of conformity of the point with respect to the grid unit determined by the current parameters, expressed as: ; The sum of the Gaussian function values of all points relative to the grid cells determined by the current parameters is defined as the likelihood function, which is expressed as: .
[0014] In one embodiment, the determining the parameters of the maximized posterior probability and the corresponding grid unit based on the prior probability distribution and the likelihood function to obtain the hole group constraint model includes: Determine the posterior probability based on the prior probability distribution and the likelihood function , The calculation formula is: ; Determine the maximum posterior probability, the calculation formula is: , to obtain the parameters of the grid unit corresponding to the maximum posterior probability, generate the overall grid unit, and obtain the hole group constraint model.
[0015] In one embodiment, when generating the overall grid unit, the two-dimensional hole set of the hole group is determined. S Each point The grid cell index to which it belongs and ,in round is the nearest rounding function, which represents its position in the grid unit.
[0016] In one embodiment, removing noise points according to the hole group constraint model includes: Based on the hole group constraint model, a two-dimensional point set of the hole group is set S Points in Satisfies the normal distribution with mean 0 and standard deviation σ; Its Euclidean distance to the corner point of the grid cell The minimum value does not exceed 3 , it is the true point; Its Euclidean distance to the corner point of the grid cell Minimum value exceeds 3 When , it is a noise point; The calculation formula is: ; .
[0017] In one embodiment, the noise point screening method based on hole group constraints further includes: automatically measuring the relative positions between adjacent points according to the parameters of the grid unit.
[0018] The beneficial effects brought by the technical solution provided in the embodiments of the present application include: The present application provides a noise point screening method based on hole group constraints. It uses the hole group distribution law on the bridge orifice plate workpiece to first reduce the dimension to simplify the processing, and then establishes a hole group constraint model based on statistical probability theory, which is applied to noise point screening, and optimizes the parameters to achieve noise removal and data classification at the same time. When establishing the hole group constraint model, first set the prior probability distribution for the parameters of the grid unit to provide a statistically based starting point, ensure that the parameter search process starts from a reasonable range, and increase the possibility of finding the global optimal solution; then combine the likelihood function to determine the maximum a posteriori probability to optimize the parameters of the grid unit, which is not only based on the minimization of geometric errors, but also uses statistical probability theory to guide the search process, and more comprehensively considers the probability characteristics and uncertainty of the data, thereby combining the noise point screening process with the data classification and grid construction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 The figure is a flow chart of a noise point screening method based on hole group constraints in one embodiment of the present invention.
[0021] Figure 2 It is a schematic diagram of a bridge hole plate workpiece in one embodiment of the present invention.
[0022] Figure 3 for Figure 2 Schematic diagram of the three-dimensional point cloud of the hole cluster on the bridge orifice plate workpiece shown.
[0023] Figure 4 for Figure 3 Schematic diagram of the two-dimensional point set of the hole cluster on the bridge orifice plate workpiece shown.
[0024] Figure 5 FIG. 4 is a schematic diagram of a grid unit in an embodiment of the present invention.
[0025] Figure 6 It is the calculation result of maximizing the posterior probability in one embodiment of the present invention.
[0026] Figure 7 FIG. 1 is a schematic diagram of removing noise points in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The embodiment of the present application provides a noise point screening method based on hole group constraints, which can solve the technical problems of low efficiency and inaccuracy caused by manual removal of noise points in related technologies.
[0029] like Figure 1 As shown, Figure 1 The figure is a flow chart of a noise point screening method based on hole group constraints in one embodiment of the present invention.
[0030] This embodiment provides a noise point screening method based on hole group constraints, which includes the following steps: Step S1, projecting a three-dimensional point set of a hole group on a bridge orifice plate workpiece onto a plane for dimensionality reduction to form a two-dimensional point set of the hole group; Step S2, establishing a hole group constraint model based on the two-dimensional point set of the hole group; Step S3, removing noise points according to the hole group constraint model; Wherein, step S2, establishing a hole group constraint model based on a two-dimensional point set comprises: Step S21, the hole clusters are distributed to form parallelogram units, which are defined as grid units, and the prior probability distribution of the parameters of the grid units is set; Step S22, under the condition of setting the prior probability distribution of the parameters, calculating the corresponding probability of each point in the two-dimensional point set of the hole group and the nearest corner point in the grid unit, which is defined as a likelihood function; Step S23: Determine the parameters of the maximized posterior probability and its corresponding grid unit based on the prior probability distribution and the likelihood function to obtain a hole group constraint model.
[0031] This embodiment provides a noise point screening method based on hole group constraints. It uses the hole group distribution law on the bridge hole plate workpiece to first reduce the dimension to simplify the processing, and then establishes a hole group constraint model based on statistical probability theory, which is applied to noise point screening, and optimizes the parameters to achieve noise removal and data classification at the same time. When establishing the hole group constraint model, first set the prior probability distribution for the parameters of the grid unit to provide a statistical starting point, ensure that the parameter search process starts from a reasonable range, and increase the possibility of finding the global optimal solution; then combine the likelihood function to determine the maximum a posteriori probability to optimize the parameters of the grid unit, not only based on the minimization of geometric errors, and use statistical probability theory to guide the search process, but also more comprehensively consider the probability characteristics and uncertainty of the data, thereby combining the noise point screening process with the data classification and grid construction process.
[0032] Each step is described and explained in detail below.
[0033] like Figure 2 As shown, Figure 2 It is a schematic diagram of a bridge hole plate workpiece in one embodiment of the present invention.
[0034] Taking a bridge orifice plate workpiece as an example, the holes on the workpiece are divided into two hole groups, an upper and a lower hole group. Every four adjacent points in the hole group can form a rectangle with a certain length and width.
[0035] In one embodiment, by PCA Methods The three-dimensional point set of the hole group on the bridge orifice plate workpiece was projected onto the plane for dimensionality reduction.
[0036] In practice, if the workpiece is flat, each hole group is distributed on the same plane (i.e., the workpiece surface). Therefore, projecting the three-dimensional point set of all holes onto the plane for dimensionality reduction can simplify the calculation process. For the case where most points are on the same plane, use PCA It is more convenient to perform dimensionality reduction using a method called principal component analysis (Principal Component Analysis). Its purpose is to reduce the dimensionality of the data by retaining the main features in the data while minimizing the loss of information. PCA Through orthogonal transformation, a set of variables that may be correlated is transformed into a set of linearly uncorrelated variables. These new variables are called principal components. Each principal component is a linear combination of the original data, but the weight of each combination is different, so that the first principal component contains the most variance, the second principal component contains the second most variance, and so on.
[0037] like Figure 3 and Figure 4 As shown, Figure 3 for Figure 2 Schematic diagram of the three-dimensional point cloud of the hole cluster on the bridge orifice plate workpiece shown. Figure 4 for Figure 3 Schematic diagram of the two-dimensional point set of the hole cluster on the bridge orifice plate workpiece shown. Figure 4 The mesopore group is divided into two groups, upper and lower. The lower group is taken as an example as the two-dimensional point set to be analyzed.
[0038] In one embodiment, step S1, projecting a three-dimensional point set of a hole group on a bridge orifice plate workpiece onto a plane for dimensionality reduction to form a two-dimensional point set of the hole group includes: Step S11: The three-dimensional point set of the hole group is set as: ,in, is a 3D point in the hole group, X is a set of three-dimensional points.
[0039] Step S12, centralize the three-dimensional point set of the hole group, that is, subtract the average value of each dimension so that the mean value of the data in each dimension is 0, and the result is more accurate; The calculation formula is: ; ; Step S13: Determine the covariance matrix C , the calculation formula is: ; in is the data matrix after data centering, .
[0040] Step S14: covariance matrix C Perform eigendecomposition and determine the corresponding eigenvalues and eigenvectors; Specifically, these eigenvectors represent the principal component directions of the data, while the eigenvalues represent the variance of the data in each direction.
[0041] Step S15: The eigenvectors corresponding to the two largest eigenvalues and Defined as the principal plane, each 3D point is projected onto the principal plane to form a 2D point set of the hole cluster S ; The calculation formula is:
[0042] in, are the coordinates of a 3D point on the 2D principal plane, is a two-dimensional real vector space.
[0043] The main plane is the plane with the largest data variance, that is, the plane of the workpiece where the hole is located. For points that obviously deviate from the main plane, the distance between them and the plane is calculated, and the threshold distance is set, and those with too large distance are filtered out.
[0044] Through the above scheme, PCAThe method is used to reduce the dimension, compress the data space, and intuitively represent the characteristics of multivariate data in the low-dimensional space. If there are more noise points with more chaotic distribution, you can use RANSAC Method to fit a plane.
[0045] like Figure 5 As shown, Figure 5 FIG. 4 is a schematic diagram of a grid unit in an embodiment of the present invention.
[0046] In one embodiment, in step S21, the hole clusters are distributed to form parallelogram units, which are defined as grid units. The prior probability distribution of the parameters of the grid units is set to include: Step S211: hole cluster distribution in triangular units AOB Continuously repeating to form parallelogram units AOBC , the parallelogram element AOBC Defined as a grid cell.
[0047] Specifically, Figure 2 The bridge hole plate workpiece shown in the figure has a center position of four adjacent holes forming a length of , width is According to the hole group distribution law, it is regarded as a rectangle composed of a triangular unit. AOB Continuously repeating to form parallelogram units AOBC , the parallelogram element AOBC Defined as a grid unit, each real data point, i.e., a hole, should fall on a grid point (or corner point) of the grid unit.
[0048] Step S212: The parameter of the grid unit is set to length a ,width b , Angle θ and angle , where the length a Main axis OA Length and width b Main axis OB Length, angle θ = ∠BOA , angle Main axis OB With coordinate axis x The angle of the axis.
[0049] Specifically, the shape of the grid cell involves two side lengths a , b and angle θ Three parameters, whose positions involve the coordinates of the vertex O and one of its sides and the coordinate axis x Axis Angle Parameters, the angle is not fixed here θ It is a right angle to accommodate more complex distribution situations.
[0050] Step S213: Setting the parameters of the grid unit a , b , θ and The prior probability distribution of for: .
[0051] in, is the uniform distribution function, It obeys normal distribution, with mean u and standard deviation σ.
[0052] Through the above scheme, the parameter initialization of the grid cells is guided by the probability distribution (uniform and normal distribution), and the set prior probability distribution is used as the starting point of the statistical basis. Describes beliefs about various parameters of the grid cell shape before observing the data.
[0053] In one embodiment, the prior probability distribution of the parameters is set according to the machining accuracy and measurement accuracy of the bridge hole plate workpiece.
[0054] Specifically, the prior probability distribution of the set parameters needs to be determined based on the actual situation, that is, it is related to the horizontal and vertical spacing of the actual holes. For example, the design size distribution of the hole group is a positive grid, and the horizontal and vertical hole spacings are both 100 mm. However, the processing error is large, and the actual hole spacing may fluctuate within 100±3 mm. In this case, the expected distribution of the actual hole spacing can be set as: a and b All have a mean of 100 and σ =1 Gaussian distribution, that is, N(100,1); because 3 σ =3, or it can be set to be a uniform distribution of 97~103, that is U [97,103]. The same is true for measurement accuracy. If the actual hole spacing is 100 mm, but the measurement is inaccurate, it may be measured as 100 ± 3 mm. Then, assuming that the actual hole distribution is N (100,1) or U [97,103].
[0055] In one embodiment, step S22, under the condition of setting the prior probability distribution of the parameters, calculate the corresponding probability of each point in the two-dimensional point set of the hole group and the nearest corner point in the grid unit, which is defined as the likelihood function including: Step S221: The two-dimensional point set of the hole group S Each point in Convert to O In the local grid coordinate system with point as the origin, the calculation formula is:
[0056] in, and are the two-dimensional point sets of the hole group S The point in O Point on the main axis OA and spindle OB The projection distance in the direction, MOD For modular operation, and It is the coordinate of the point after localizing the projected distance in both directions to a grid cell.
[0057] Put all points in a local cell and measure the contribution of each point to the shape of the grid cell. Specifically, ; in, ; ; .
[0058] Compute the cell index of a point in a grid cell: and ,in round It is a nearest rounding function, which represents its position in the grid unit. The nearest rounding function avoids positioning grid errors caused by small errors.
[0059] Step S222: setting the prior probability distribution of the parameters In the case of , calculate the two-dimensional point set of the hole group S Each point in Euclidean distance to the corner of the grid cell , The calculation formula is: ; in, Yes i The corresponding j The coordinates of the corner points, j=1,2,3,4 , corresponding to .
[0060] Specifically, for each grid cell, the parallelogram cell There are four corner points: O,A,B,C . O is the origin, A yes O Point edge a The apex of the axis, B yes O Point edge b The vertices of the axis, the remaining corner points are C .
[0061] Step S223: Evaluate the point by Gaussian function i Belongs to the corresponding j The probability of a corner point ,
[0062] in, is the standard deviation of the prior probability distribution; Step S224: select the maximum probability corner point as its corresponding grid point, and use its Gaussian function value as the degree of conformity of the point with respect to the grid unit determined by the current parameters. It is expressed as: .
[0063] Specifically, the two-dimensional point set of the hole group S Each point in The likelihood contribution of is determined by its probability to the nearest corner point, so the probability of the four corner points is , select the largest point as its corresponding grid point, and use its Gaussian function value as the degree of conformity of the point to the grid unit determined by the current parameters. Selecting the maximum value means that each point is most likely to belong to the nearest corner point, which is an assumption that simplifies the actual situation, but is widely used in practical applications because of its simple calculation and intuitive rationality.
[0064] Step S225: The sum of the Gaussian function values of all points relative to the grid unit determined by the current parameters is defined as the likelihood function, which is expressed as: .
[0065] Specifically, the likelihood function quantifies the probability distribution given the model parameters, i.e., the prior probability distribution In the case of , the current data set is observed to be a two-dimensional point set S probability.
[0066] according to , we get the likelihood function, It is expressed as: .
[0067] In one embodiment, step S23, determining the parameters of the maximized posterior probability and the corresponding grid unit based on the prior probability distribution and the likelihood function, and obtaining the hole group constraint model includes: Step S231: Determine the posterior probability based on the prior probability distribution and the likelihood function , The calculation formula is: .
[0068] Specifically, the posterior probability is the probability of parameter update after given observed data. The prior belief (prior probability, i.e., the distribution law of the hole group) and the actually observed data (i.e., the position of each hole in the two-dimensional point set) are combined through the likelihood function to update the understanding of the parameters.
[0069] According to Bayes' formula, the posterior probability It is given by the product of the prior and the likelihood function: .
[0070] Step S232: determine the maximum posterior probability, the calculation formula is: , in order to obtain the parameters of the grid unit corresponding to the maximum posterior probability, generate the overall grid unit, and obtain the hole group constraint model.
[0071] Specifically, the process of maximizing the posterior probability is regarded as a minimum optimization problem of the negative natural logarithm of the posterior probability. The goal of parameter optimization is to find the parameter value that maximizes the posterior probability, which is equivalent to the most likely parameter setting after considering the data information to seek the best statistical estimate of the parameter.
[0072] In one embodiment, when generating the overall grid unit, the two-dimensional hole set of the hole group is determined. S Each point The grid cell index to which it belongs and ,in round is the nearest rounding function, which represents its position in the grid unit.
[0073] Specifically, after obtaining the grid parameters corresponding to the maximum a posteriori probability, according to the ellipse parameter value corresponding to the maximum a posteriori probability, that is, , and initial values (estimated values are set manually according to the working conditions) to generate the overall grid unit; the two-dimensional hole set of the hole group S Each point The grid cell index to which it belongs and , as the position representation of each point in the grid cell, is used to determine whether the point is in an adjacent grid cell, and index adjacent points as adjacent grid points, so that the subsequent calculation of the spacing between adjacent grid points is the side length of the grid cell.
[0074] like Figure 6 As shown, Figure 6 It is the calculation result of maximizing the posterior probability in one embodiment of the present invention.
[0075] Depend on Figure 6 It can be seen that the × in the legend represents Figure 4 The grid unit shape calculated from the points in the figure, the real hole should appear at the position of ×, Figure 6The corresponding grid unit obtained by calculating the parameters of the grid unit according to the above steps is shown as a basis for subsequent removal of noise points.
[0076] In one embodiment, step S3, removing noise points according to the hole group constraint model, comprises: Based on the hole group constraint model, set the two-dimensional point set of the hole group S Points in Satisfies the normal distribution with mean 0 and standard deviation σ; Its Euclidean distance to the corner point of the grid cell When the minimum value does not exceed 3σ, it is the true point; Its Euclidean distance to the corner point of the grid cell When the minimum value exceeds 3σ, it is a noise point; The calculation formula is: ; .
[0077] Specifically, after determining the grid cell to which each point belongs, the grid point to which it belongs is the vertex closest to the point among the four vertices of the cell to which it belongs. S Points in The normal distribution satisfies the mean of 0 and the standard deviation of σ. Since the probability outside 3σ is very small, the points outside 3σ are directly regarded as noise points for filtering, not real points. OABC If the smallest value among the distances of these four points is less than 3σ, it is considered to be a real point, not a noise point.
[0078] Through the above scheme, the parameters are optimized while dynamically eliminating noise and classifying data, providing a mathematically rigorous and practical model optimization framework. At the same time, for each grid point, if there are multiple points corresponding to it, the points that are closer to the grid point should be selected.
[0079] like Figure 7 As shown, Figure 7 FIG. 1 is a schematic diagram of removing noise points in an embodiment of the present invention.
[0080] Depend on Figure 7 It can be seen that after the noise points are removed by the method provided in the present application, points representing real holes are left, the noise points are filtered out, and the screening efficiency is higher and more accurate.
[0081] In one embodiment, the noise point screening method based on hole group constraints further includes: step S4, automatically measuring the relative positions between adjacent points according to the parameters of the grid unit.
[0082] The position and shape of the grid unit are obtained through the above steps, and the two-dimensional point set of the hole group corresponding to each grid point is retained. SBy calculating the side length of each grid unit composed of the remaining points, the relative position of each hole can be obtained intuitively.
[0083] Depend on Figure 7 It can be seen that the figure shows the spacing between adjacent holes, that is, the relative hole positions are automatically measured.
[0084] It should be noted that the above-mentioned serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The terms "including" and "having" in the specification and claims of the present application and the above-mentioned drawings and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" and the like are described to distinguish different objects, etc., and do not represent the order of precedence, nor do they limit that "first", "second" and "third" are different types.
[0085] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0086] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0087] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish between different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0088] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A noise point screening method based on hole group constraints, characterized in that: It includes the following steps: Projecting a three-dimensional point set of a hole group on a bridge orifice plate workpiece onto a plane for dimensionality reduction to form a two-dimensional point set of the hole group; Establishing a hole group constraint model based on the two-dimensional point set of the hole group; Eliminate noise points according to the hole group constraint model; Wherein, establishing the hole group constraint model based on the two-dimensional point set includes: The hole group distribution forms a parallelogram unit, which is defined as a grid unit, and the prior probability distribution of the parameters of the grid unit is set; Under the condition of setting the prior probability distribution of the parameters, calculating the corresponding probability between each point in the two-dimensional point set of the hole group and the nearest corner point in the grid unit, which is defined as a likelihood function; The parameters of the maximized posterior probability and the corresponding grid unit are determined based on the prior probability distribution and the likelihood function to obtain the hole group constraint model.
2. The noise point screening method based on hole group constraint according to claim 1, characterized in that: The three-dimensional point set of the hole group on the bridge hole plate workpiece is projected onto a plane for dimensionality reduction by using the PCA method.
3. The noise point screening method based on hole group constraint according to claim 2, characterized in that: The projecting of the three-dimensional point set of the hole group on the bridge orifice plate workpiece onto a plane for dimensionality reduction to form the two-dimensional point set of the hole group includes: The three-dimensional point set of the hole group is set as: ,in, is a three-dimensional point in the hole group, X is a set of three-dimensional points; The three-dimensional point set of the hole group is centralized. The calculation formula is: ; ; Determine the covariance matrix C , the calculation formula is: ; in is the data matrix after data centering, ; Covariance matrix C Perform eigendecomposition and determine the corresponding eigenvalues and eigenvectors; The eigenvectors corresponding to the two largest eigenvalues and Defined as the principal plane, each three-dimensional point is projected onto the principal plane to form a two-dimensional point set of the hole cluster S ; The calculation formula is: ; in, are the coordinates of a 3D point on the 2D principal plane, is a two-dimensional real vector space.
4. The noise point screening method based on hole group constraint according to claim 1, characterized in that: The hole group distribution forms a parallelogram unit, which is defined as a grid unit. The prior probability distribution of the parameters of the grid unit is set to include: The hole groups are distributed in triangular units. AOB Continuously repeating to form parallelogram units AOBC , the parallelogram unit AOBC is defined as said grid cell; The grid cell parameters are set to length a ,width b , Angle θ and angle , where the length a Main axis OA Length and width b Main axis OB Length, angle θ = ∠BOA , angle Main axis OB With coordinate axis x The angle of the axes; Set the parameters of the grid cells a , b , θ and The prior probability distribution of for: 。 5. The noise point screening method based on hole group constraint according to claim 4, characterized in that: The prior probability distribution of the parameters is set according to the machining accuracy and measurement accuracy of the bridge hole plate workpiece.
6. The noise point screening method based on hole group constraint according to claim 4, characterized in that: Under the condition of setting the prior probability distribution of the parameters, the corresponding probability of each point in the two-dimensional point set of the hole group and the nearest corner point in the grid unit is calculated, which is defined as the likelihood function including: The two-dimensional point set of the hole group S Each point in Convert to O In the local grid coordinate system with point as the origin, the calculation formula is: ; in, and are the two-dimensional point sets of the hole group S The point in O Point on the main axis OA and spindle OB The projection distance in the direction, MOD is a modular operation, and It is the coordinate of the point after the projection distance in two directions is localized to a grid unit; In setting the prior probability distribution of the parameters In the case of S Each point in The Euclidean distance to the corner of the grid cell , The calculation formula is: ; in, Yes i The corresponding j The coordinates of the corner points, j=1,2,3,4 , corresponding to ; Evaluate the points by the Gaussian function i Belongs to the corresponding j The probability of a corner point , The calculation formula is: ; in, is the standard deviation of the prior probability distribution; The maximum probability corner point is selected as its corresponding grid point, and its Gaussian function value is the degree of conformity of the point with respect to the grid unit determined by the current parameters, expressed as: ; The sum of the Gaussian function values of all points relative to the grid cells determined by the current parameters is defined as the likelihood function, which is expressed as: .
7. The noise point screening method based on hole group constraint according to claim 6, characterized in that: The method of determining the parameters of the maximized posterior probability and the corresponding grid unit based on the prior probability distribution and the likelihood function to obtain the hole group constraint model includes: Determine the posterior probability based on the prior probability distribution and the likelihood function , The calculation formula is: ; Determine the maximum posterior probability, the calculation formula is: , to obtain the parameters of the grid unit corresponding to the maximum posterior probability, generate the overall grid unit, and obtain the hole group constraint model.
8. The noise point screening method based on hole group constraint according to claim 7, characterized in that: When generating the overall mesh unit, determine the two-dimensional hole set of the hole group S Each point The grid cell index to which it belongs and ,in round is the nearest rounding function, which represents its position in the grid unit.
9. The noise point screening method based on hole group constraint according to claim 8, characterized in that: The removing of noise points according to the hole group constraint model comprises: Based on the hole group constraint model, a two-dimensional point set of the hole group is set S Points in Satisfies the normal distribution with mean 0 and standard deviation σ; Its Euclidean distance to the corner point of the grid cell When the minimum value does not exceed 3σ, it is the true point; Its Euclidean distance to the corner point of the grid cell When the minimum value exceeds 3σ, it is a noise point; The calculation formula is: ; 。 10. The noise point screening method based on hole group constraint according to claim 1, characterized in that: The noise point screening method based on hole group constraints also includes: automatically measuring the relative positions between adjacent points according to the parameters of the grid unit.
Citation Information
Patent Citations
Principal component analysis method of two-dimensional probability
CN104700117A
Gaussian mixture model point cloud filtering method based on multistage curvature constraint
CN112308966A
Three-dimensional model construction method, neural network training method and device
CN115147564A
Stacked workpiece pose estimation method based on combination of two-dimensional image and three-dimensional point cloud
CN116309847A
Method and system for extracting laser welding penetration curve according to OCT point cloud
CN117422713A