A machining workpiece precision detection method based on three-dimensional scanning

By establishing process reference diagrams and separating workpiece pose constraints from process reference constraints, the problem of multi-view point cloud registration in the precision inspection of large castings machining was solved. This method achieves efficient separation of reference transfer deviation and machining feature deviation, thereby improving the accuracy and reliability of the inspection.

CN123128972APending Publication Date: 2026-11-20ZIBO FANGCONE MASCH MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611320839.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In the current technology for machining accuracy inspection of large castings, multi-view point cloud registration is prone to absorbing the mixture of current machining feature deviation, reference transfer deviation and machining feature deviation. Moreover, the detection judgment near the tolerance boundary is affected by scanning uncertainty, making it difficult to separate the workpiece pose constraint and process reference constraint.

Method used

By acquiring the theoretical digital model, process route, and machining datum information of large castings, a process datum diagram is established, workpiece pose constraints and process datum constraints are separated, multi-view scanning is used to decompose the closed residual, and the supplementary scanning pose is determined according to the uncertainty interval, a detection coordinate system is established, and datum transfer deviation and machining feature deviation are separated.

Benefits of technology

It enables the separation of workpiece pose and process datum constraints under the same clamping state, reduces non-targeted repeated scanning, improves the accuracy and reliability of detection, and avoids the absorption of machining feature deviations by the overall registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123128972A_ABST
    Figure CN123128972A_ABST
Patent Text Reader

Abstract

The application discloses a machining workpiece precision detection method based on three-dimensional scanning, and relates to the technical field of three-dimensional measurement and machining quality detection of large castings. The method establishes a process reference graph according to a machining reference reference relationship, scans a workpiece in a same clamping state, retains surface area to constrain the pose of the workpiece, constrains a process reference with previous sequence reference features, and excludes a to-be-detected machining feature from participating in registration. Whether to perform supplementary scanning and detection of a coordinate system is determined according to closed residual errors of the two types of constraints and uncertainty intervals of the closed residual errors, and then a cutting surface profile and hole system geometric deviation are detected, and reference transmission deviation and machining feature deviation are separated and output. The method is used for reducing the absorption of registration errors on machining deviation, and improving the interpretability of detection results near a tolerance boundary.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of three-dimensional optical measurement and machining accuracy detection technology, and in particular to a method for detecting the accuracy of machined workpieces based on three-dimensional scanning. Background Technology

[0002] Large castings typically require multiple machining processes after casting, including milling, boring, and drilling. Different processes can utilize casting surfaces, machined datum surfaces, datum holes, or a datum system composed of multiple datum features. Due to the large size of the workpiece, the wide range of feature distribution, and the limited access space after clamping, using contact gauges for item-by-item inspection is easily limited by the number of measuring points, inspection stroke, and process cycle time. Three-dimensional scanning can obtain dense point clouds of the workpiece surface from multiple perspectives, thus being suitable for forming overall geometric inspection data for cutting surfaces and hole systems.

[0003] Current point cloud inspection processes typically involve first registering the scanned point cloud with the theoretical digital model, and then calculating surface or hole feature deviations on the registered point cloud. If the overall registration allows the currently machined cutting surface or hole system to participate in the solution, the shape or positional deviation of the machining feature itself may be absorbed by the registration transformation. If the coordinate system is established solely based on the fixture position or a single preceding datum feature, it is difficult to distinguish the overall pose changes of the workpiece under clamping conditions, the changes transferred from preceding datums, and the local deviations formed by the current machining feature. For large castings formed across multiple processes, the above-mentioned error mixture will be passed to subsequent features along with the datum reference relationship.

[0004] Furthermore, the measurement quality of multi-view scanning points varies with scanning distance, beam incident angle, occlusion, and local point density. When the visible area of ​​the preceding datum feature is insufficient, the registration result may happen to be near the datum transfer tolerance boundary. Comparing only a single point estimate with the tolerance boundary cannot reflect whether the judgment is dominated by scanning uncertainty; repeatedly scanning without distinguishing specific tolerance directions may also increase the amount of data without effectively reducing the uncertainty of key closed components. Therefore, a detection method is needed that is oriented towards the process datum transfer relationship, can separate the workpiece pose constraint and process datum constraint under the same clamping state, and can selectively supplement scanning and establish a detection coordinate system based on uncertainty. Summary of the Invention

[0005] The purpose of this invention is to provide a method for detecting the accuracy of machined workpieces based on three-dimensional scanning, so as to solve the problems that multi-view point cloud registration is prone to absorbing the current machining feature deviation, the mixing of reference transfer deviation and machining feature deviation, and the influence of scanning uncertainty on the detection and judgment near the tolerance boundary.

[0006] To achieve the above objectives, this invention acquires the theoretical numerical model, process route, machining datum, and tolerance information of large castings, and establishes a process datum diagram according to the datum reference relationships between different processes. After the current process is completed, multi-view scanning is performed while the workpiece remains in its current clamping state. From the obtained point cloud, the remaining surface area that did not participate in the material removal of the current process, the previous datum features referenced by the current process, and the cutting surface and hole system to be inspected are extracted respectively.

[0007] Workpiece pose constraints are formed using the retained surface area to describe the overall six-degree-of-freedom pose of the workpiece. Process datum constraints, consistent with process reference relationships, are formed using prior datum features. During the solution of both types of constraints, the cutting surface and hole system to be inspected are not allowed to provide registration weights. The two types of constraints are transformed to the same node along the process datum diagram, and their relative transformations are decomposed to obtain closed residuals. Combining the scanning equipment calibration status, the density of each viewing point, the incident angle, and the feature fitting residuals, the uncertainty interval of the closed residuals in the corresponding tolerance directions is formed.

[0008] When the uncertainty interval crosses the corresponding reference transfer tolerance boundary, based on the sensitivity of the closed residual to the scanning line of sight, the supplementary scanning pose is determined from the candidate poses that meet the equipment range, field of view, and collision avoidance conditions, and only the preceding reference feature point cloud that contributes to the cross-boundary closed component is updated. Based on the updated closed residual and its uncertainty state, a path for establishing the detection coordinate system is selected between the workpiece pose constraint and the process reference constraint; in the detection coordinate system, the direction, flatness, or contour of the cutting surface is detected, and the hole diameter, axial direction, and position of the hole system are detected, respectively forming the reference transfer deviation result and the machining feature deviation result.

[0009] The process reference diagram can be constructed as a directed graph. Nodes record the theoretical geometry, reference order, allowable transfer tolerance, and coordinate transformation corresponding to the most recent qualified process of the reference feature; connecting edges represent the reference of subsequent machining features to previous reference features, and the allowable translation and rotation on the edges are projected onto the tolerance direction of the subsequent machining feature. The retained surface area is selected from surfaces that have never participated in the material removal of the current process and are not within the influence range of fixture contact, and is filtered through visibility and geometric observability to form full-rank constraints on the six-degree-of-freedom pose.

[0010] After the two types of coordinate transformations are converted to the same node along the process reference diagram, their relative transformations are decomposed into translational closed components and rotational closed components. The coordinate covariance of the scanning point is determined by the equipment calibration covariance, as well as the incident angle, ranging residual, and neighborhood point density. Then, the characteristic parameter covariance is obtained by fitting the Jacobian matrix of the plane, cylindrical surface, and hole axis, and propagated along the process reference diagram to each closed component, thereby obtaining the uncertainty interval oriented towards the specific tolerance direction.

[0011] When the updated uncertainty interval is entirely within the datum transfer tolerance boundary, a detection coordinate system is established using process datum constraints. When the interval is entirely outside the datum transfer tolerance boundary, a detection coordinate system is established using workpiece pose constraints and the coordinate transformation of the most recent qualified process in the process datum diagram, and abnormal preceding datum features are prohibited from participating in refitting. For the cutting surface, the planar region and the contour region are distinguished according to the tolerance markings in the theoretical model, and the directional component and the shape component are separated using the signed distance field along the theoretical normal. For the hole system, multiple sections are constructed along the theoretical hole axis direction, and the hole boundary and the cylinder axis are jointly fitted to obtain the hole diameter, direction, and position deviations.

[0012] In one embodiment, point clouds containing the same retained surface area can be obtained before and after the current process. The retained surface area is used to transform the two point clouds to the same coordinate system. The differential removal amount is calculated along the theoretical material removal direction and correlated with the theoretical removal amount. This helps to distinguish the processing feature deviation caused by material removal and the reference transfer deviation caused by clamping or reference change.

[0013] Compared with existing technologies, this invention decouples the establishment of the detection coordinate system from the measured deviation by prohibiting the processing features under inspection from participating in registration, thus preventing the geometric deviation of the current processing feature from being absorbed by the overall registration. By mapping the workpiece pose constraints formed by the retained surface and the process reference constraints formed by the previous reference features to the same process reference node, it can identify reference transmission changes according to the process reference relationship and output them separately from the local deviation of the current processing feature. By propagating the viewpoint quality and feature fitting quality to the uncertainty range of the closed residual, and selecting the supplementary scanning line of sight for closed components that cross tolerance boundaries, the newly added point cloud can directly act on the weak direction of judgment, reducing untargeted repeated scanning. Attached Figure Description

[0014] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the specific implementation are briefly described below:

[0015] Figure 1 This is a schematic diagram of the overall process for precision inspection of machined workpieces provided in an embodiment of the present invention;

[0016] Figure 2 The process reference diagram and coordinate transformation transfer diagram provided for embodiments of the present invention. Detailed Implementation

[0017] The technical solution of the present invention will be further described below with reference to the accompanying drawings. The large casting refers to a cast blank or semi-finished product that sequentially forms cutting surfaces, holes, grooves, or combinations thereof in one or more clamping states. The three-dimensional scanning device can be a structured light scanning device, a laser line scanning device, or other optical three-dimensional measurement device capable of outputting acquired pose and quality information. The scanning device can be installed on a mobile measuring support, a robot end effector, or at an external measuring position on a machine tool; these deployment methods are only used to obtain different scanning lines of sight and do not constitute a limitation on the mechanical structure of the present invention.

[0018] In this embodiment, the coordinate system of the theoretical digital model is called the digital model coordinate system, the coordinate system of the original point cloud in a single scan is called the scan coordinate system, the overall workpiece pose obtained from the retained surface area is called the workpiece pose transformation, and the datum pose obtained from the preceding datum features is called the process datum transformation. The preceding datum features are datum surfaces, datum holes, datum axes, or datum systems composed of multiple features that are actually used in the current process and have been formed or confirmed as qualified in the process route. The retained surface area is the surface region that retains solid material before and after the current process and is not directly affected by fixture contact deformation.

[0019] like Figure 1 As shown, the detection process in this embodiment begins when the current process is completed and the workpiece remains in its current clamping state. The detection end first loads the theoretical digital model associated with the unique identifier of the workpiece, the current version of the process route, the datum reference relationship, and the geometric tolerance; then, it establishes or updates the process datum diagram, performs multi-view scanning and point cloud quality checks, and solves the workpiece pose constraints and process datum constraints respectively; then, it calculates the closed residual and its uncertainty interval, and determines whether to perform supplementary scanning and which path to use to establish the detection coordinate system based on the relationship between the interval and the datum transfer tolerance boundary; finally, it forms the cutting surface detection results, hole system detection results, and deviation separation results within the detection coordinate system.

[0020] In addition to storing the theoretical surface of the workpiece, the theoretical digital model also stores a unique feature identifier, geometric type, theoretical parameters, process to which it belongs, theoretical normal or theoretical axis, and corresponding tolerance direction for each detectable feature. The process route stores the sequence of processes, the reference features referenced by each process, and the machining features formed by that process. The scanning data includes at least three-dimensional coordinates, viewpoint identifiers, and validity markers; when the equipment can provide the scanning beam direction, distance residual, or pixel confidence level, these are included as point-level quality fields; fields that cannot be provided are obtained from the equipment calibration results and neighborhood geometry estimation.

[0021] Reference Figure 2 As shown, the process baseline diagram includes a set of nodes. Sum of edges , where the set of nodes The nodes in the model correspond to the preceding datum features, the cutting surface to be inspected, or the hole system to be inspected, and the edge set. The directed edges in the graph point from the referenced datum node to the subsequent feature node that uses the datum. The datum feature node records its theoretical geometry, primary and secondary datum order, allowable transfer tolerances, and coordinate transformation of the most recent acceptable operation; the directed edges record the theoretical coordinate transformations and the allowable translation and rotation amounts corresponding to the tolerance directions of the subsequent features. Thus, a closed component can trace back along the path defined in the graph to the preceding datum feature that actually generated the constraint.

[0022] When a subsequent feature references multiple datum features, the effective order of the constraint degrees of freedom recording edges is determined by the primary, secondary, and tertiary datums. The primary datum prioritizes restricting the translational and rotational degrees of freedom related to its normal, the secondary datum supplements the restriction of unconstrained degrees of freedom, and the tertiary datum restricts the remaining degrees of freedom. If the process document uses a combination of datums without distinguishing the order, the constraints are represented by the joint Jacobian matrix of the combined features. The allowable transfer tolerance in the figure is not directly equivalent to the finished product tolerance of the current machining feature, but rather the datum transfer allowable amount given in the process document is read first. If the process document does not list this allowable amount separately, an error budget is established along the tolerance direction corresponding to the connecting edge. The positive and negative boundaries of the subsequent feature tolerance interval are deducted from the same-direction allowable amounts already allocated to the current machining deviation and measurement uncertainty in the process document, and the remaining positive and negative allowable amounts are used as the datum transfer boundaries in that direction. The rotational allowable amount is first converted into linear displacement based on the effective distance from the datum feature to the evaluation position of the subsequent feature, and then included in the error budget in the same direction. If the required allowable amount is missing or the remaining allowable amount obtained in any direction is not greater than zero, the connection edge will not be deemed qualified, and the corresponding direction will be marked as a state where the process tolerance is pending.

[0023] Before scanning the current process, the inspection end verifies that the scanning equipment is within the valid calibration period and establishes an initial calibration covariance based on the equipment calibration results. During multi-view acquisition, each viewpoint covers at least one candidate area of ​​the retained surface and, as far as possible, covers the preceding reference features involved in the current process positioning. The point clouds of each viewpoint can be initially stitched together using the equipment pose, common invariant surfaces, or verified common reference features; the initial stitching is only used to place the viewpoints in a common approximate position, and the final detection coordinate system is still determined by the dual-constraint process described later.

[0024] After completing the common approximate positioning from various perspectives, the detection end generates feature templates based on the boundaries and unique feature identifiers of each theoretical surface in the theoretical model. The point-surface association search zone is then determined by the initial stitching error and the current equipment measurement uncertainty. For scan points within the search zone, the normal distance to the candidate theoretical surface and the local normal angle are first calculated. Points whose distance and angle both satisfy the corresponding uncertainty constraints are then assigned the candidate feature identifier. When a point falls into multiple search zones of adjacent cutting surfaces, hole openings, or remaining surface areas, it is assigned to the feature with the smallest internal projection position and normalized normal distance based on the model topology. Points that still cannot be uniquely associated, as well as points located within theoretical edges or hole transition zones, do not participate in constraint fitting. This results in a set of points that are separated from the remaining surface area, the preceding reference feature, the cutting surface to be inspected, and the hole system to be inspected. Subsequent scans only update the set of points with the same feature identifier.

[0025] The candidate range for the remaining surface area is first obtained based on the difference between the theoretical numerical model and the material removal area of ​​the process, and then the fixture contact area and its stress-affected neighborhood are excluded. Points within the candidate range are checked for reflective saturation, line-of-sight occlusion, local point density, and local geometric fit status by viewing angle. Reflective saturation can be identified by the validity markers output by the equipment or the echo intensity cutoff status; occlusion can be identified by calculating the visibility of the theoretical surface and the scanning line of sight; local fitting instability is identified by the degree of anomaly in the distribution of neighborhood residuals relative to the calibrated residuals at the same viewing angle. Points that do not meet the quality conditions are not included in the constraint solution.

[0026] For the selected candidate areas of the remaining surface, a pose observation matrix is ​​established at the detection end. The row vectors of the planar area are formed by the normal of the area and the lever arm of the centroid relative to the reference point, while those of the curved surface area are formed by the local normal and the centroid position. To eliminate the dimensional difference between the translation column and the rotation column, the effective spatial span of the selected area relative to the reference point is first used as the characteristic length. The rotation column is then converted into an equivalent linear displacement before rank and singular value analysis is performed. Candidate areas that are spatially separated are selected until the rank of the normalized observation matrix reaches six, and the minimum singular value is not lower than the observability threshold. The observability threshold is jointly determined by the repeatability of the scanning equipment calibration and the minimum effective reference transfer tolerance in the current task, ensuring that the pose standard uncertainty after the condition number of the observation matrix is ​​amplified does not exceed the allowable measurement uncertainty in the corresponding tolerance direction. If this condition is not met, candidate areas of the remaining surface with different normal or centroid distributions are added. If no usable candidate areas exist, the workpiece pose constraint is marked as insufficient, and the degrees of freedom are not supplemented using the processing features to be inspected. This judgment causes the selected region to jointly restrict the workpiece's three translational degrees of freedom and three rotational degrees of freedom, avoiding pose drift caused by multiple approximately parallel and concentrated surfaces.

[0027] When determining the workpiece pose transformation, only the point-to-surface residual between the selected retained surface area and the corresponding area of ​​the theoretical model is used as the objective function. The weight of each point is the reciprocal of the projected variance of its point coordinate covariance on the corresponding theoretical normal direction, and the lower limit of the projected variance is determined by the equipment calibration resolution to avoid near-zero variance from generating infinite or abnormal weights. For overlapping points obtained from multiple viewpoints on the same solid surface, independent quality records are first retained according to the viewpoint, and then the consistency of the overlapping area is checked after iterative convergence. Even if the cutting surface and hole system to be inspected have a large overlap with the theoretical model, they are excluded by the feature identification mask and therefore will not change the workpiece pose transformation.

[0028] The solution object for process datum transformation is the preceding datum feature actually referenced in the current process. For datum surfaces, the plane normal and datum surface position are fitted based on effective points; for datum holes or datum cylindrical surfaces, the cross-sectional boundaries are fitted layer by layer along the theoretical axis and then the axis is jointly determined; for combined datums, the degree of freedom constraints provided by each feature are merged according to the datum order. If a preceding datum feature has a large area of ​​occlusion, its visible part is used first to form the initial parameters and covariance, without using the feature to be inspected to supplement the constraint.

[0029] After obtaining the workpiece pose transformation and the process datum transformation respectively, both are converted along the theoretical transformation path in the process datum diagram to the same datum feature node referenced by the current process. For ease of explanation, the two converted transformations are denoted as follows: and Its relative transformation and closed residual are determined by the following formula:

[0030] ,

[0031] In the formula, This represents the first coordinate transformation obtained from the retained surface area and converted to the common node. This represents the second coordinate transformation obtained from the preceding datum features and converted to the common node. This represents a relative transformation between two constraints. This represents a logarithmic mapping of rigid body transformations to six-dimensional local pose components arranged with translation components first and rotation components last, with closed residuals. By translation of closed vector and rotational closed vector composition; Use length units. Use radians and fix the coordinate axis order and left and right multiplication transformation conventions within the same test batch; For the transpose, the solution is iteratively solved on the rigid body transformation group and re-linearized at the current estimate in each iteration to avoid bias caused by a small angle approximation.

[0032] In the process reference drawing, the allowable translation and rotation of each edge are projected onto the tolerance direction of the subsequent feature. For planar position tolerances, the projection direction can be the theoretical normal; for hole position tolerances, two directions perpendicular to the theoretical hole axis are used; for directional tolerances, the rotation component relative to the theoretical axial direction or theoretical normal is used. The six-dimensional projection vector of the translational tolerance direction only takes the corresponding unit direction in the first three translational components and zero in the last three components; the projection vector of the rotational tolerance direction only takes the corresponding unit direction in the last three rotational components and zero in the first three components, thus avoiding the direct addition of length and angle quantities in the same scalar closed component. When it is necessary to include rotational deviation in the linear displacement error budget, it is first converted according to the effective distance from the reference feature to the evaluation position of the subsequent feature. The detection end also saves the unprojected six-dimensional closed residual for subsequent positioning of anomalies.

[0033] The uncertainty of point coordinates is determined based on the scanning equipment calibration status and current acquisition conditions. The coordinates and covariance of each point are uniformly expressed in the coordinate system used for actual feature fitting; when the equipment calibration covariance is initially located in the scanning coordinate system, the rotation part of the coordinate transformation is used to convert it to the fitting coordinate system, while the translation part does not change the covariance. For points... Its covariance Established as follows:

[0034] ,

[0035] In the formula, This indicates the device calibration coordinate covariance that has been transformed to the current fitted coordinate system. This represents the unit line-of-sight vector pointing from the scan center to the measurement point within the same coordinate system. Represents a third-order identity matrix. This represents the standard uncertainty along the line of sight. This represents the standard uncertainty perpendicular to the line of sight. and The calibration functions are obtained by the equipment calibration function based on the distance residual, beam incident angle, and neighborhood point density, respectively. The calibration function is established through repeated measurement records of equipment verification or calibration samples, and measurement points that exceed the calibration working distance, incident angle, or point density range are marked as unusable for qualification judgment.

[0036] For planes, cylindrical surfaces, and hole axes, weighted least squares or robust fitting methods with equivalent covariance outputs are used. Let the feature parameter vector be... The Jacobian matrix of the geometric residual with respect to the characteristic parameters is: Covariance of point coordinates involved in the fitting First, use the linearized matrix of the distance from the point coordinates to the corresponding point-plane distance, the radial distance of the cross section, or the axial distance. Projection is performed by sequentially multiplying the linearized matrix, the point coordinate covariance, and the transpose of the linearized matrix to form the residual covariance. For multiple points, the point coordinate covariance and linearization matrix are arranged into block matrices in the order of valid points. When the errors of each point are independent, a diagonal block structure is used. If the pose, calibration parameters, or initial stitching variables of the same device introduce common errors, cross-covariance terms are retained between the corresponding blocks. Characteristic parameter covariance. Then determine the first-order propagation relation according to the following formula:

[0037] ,

[0038] In the formula, The final estimate is calculated using the actual point coordinates of the current feature and the geometric residual model used. This represents the geometric residual covariance obtained by projecting the final effective point coordinates covariance. This represents the covariance between the planar position and the normal, and between the cylinder diameter and the axis or hole axis parameters. The above formula is used when the final effective point set is fixed. Fully ranked and Reversible linearization state; if the robust fit retains non-uniform weights, the final weights are incorporated into the effective residual covariance, or the equivalent covariance output corresponding to the robust fit method is used. If the robust fit removes outliers, only the final effective points are used for recalculation. , , and When the normal matrix is ​​not full rank, the residual covariance is not invertible, or the condition number causes the parameter uncertainty to exceed the allowable amount of the corresponding measurement uncertainty, this feature will not output fitting parameters that can be used for qualification judgment.

[0039] As the characteristic parameter covariance propagates along the process datum diagram, the upstream parameters are mapped to common nodes using the Jacobian matrix of each coordinate transformation at the current estimate, while preserving the units of the translation and rotation components respectively; the covariances from the workpiece pose constraints and process datum constraints propagate together to the closed residual covariance. When both types of constraints use completely separate point sets with no common calibration variables, they are added as independent terms. If the common invariant surface is only used for initial viewpoint stitching, causing both types of transformations to share initial pose variables, this shared variable is retained in the joint linearized normal equations, and the cross-covariance between the two types of transformations is extracted from the inverse matrix of the normal equations. Alternatively, after initial stitching, the two types of constraints can be resolved using mutually separate final point sets, so that the final propagation no longer reuses common points. For tolerance directions... The uncertainty interval of the closed component is determined by the following formula:

[0040] ,

[0041] In the formula, This is a six-dimensional projection vector constructed according to the aforementioned translation or rotation components. For six-dimensional closed residuals, To close the residual covariance, Coverage factor and These represent the lower and upper limits of the uncertainty interval in the tolerance direction, respectively; the interval in the translation direction is expressed in length units, and the interval in the rotation direction is expressed in radians. Coverage factor The measurement uncertainty assessment procedure and target coverage probability adopted by the testing organization shall be used, and the same determination rule shall be used for the same batch of tests, without adjustment. Change the qualification judgment. The above formula is applicable to the case where first-order propagation is effective and the target component distribution can be represented by a symmetrical coverage interval; when the linearization error or distribution skewness is not negligible, repeat linearization or numerical propagation based on the same measurement model, and replace the symmetrical interval with the quantile interval corresponding to the target coverage probability.

[0042] like Figure 2 As shown, the detection end compares the uncertainty interval with the negative and positive reference transfer boundaries in that direction on the process reference diagram. When the lower limit of the interval is not lower than the negative boundary and the upper limit of the interval is not higher than the positive boundary, the closed component is in the boundary state; when the lower limit of the interval is higher than the positive boundary, or the upper limit of the interval is lower than the negative boundary, the closed component is in the boundary state; the rest, including cases that intersect with any boundary or simultaneously cover both boundaries, are considered cross-boundary states. A cross-boundary state indicates that the current point cloud is insufficient to stably distinguish whether the closed component is inside or outside the boundary, thus triggering a supplementary scan for that component instead of directly outputting a pass or fail conclusion.

[0043] Before generating the supplementary scan pose, the detection end establishes a set of candidate poses based on the workpiece's theoretical digital model, the currently clamped visible area, and the scanning equipment's working distance. Each candidate pose must ensure that the target's preceding reference features are within the measurement range and field of view, and collision or occlusion poses are eliminated by checking the intersection of the scanning line of sight with the workpiece's outer surface and the fixture's restricted area. Candidate poses can be generated from discretized viewing directions or from continuous pose optimization; both methods are represented by the final executable scan center, viewing direction, and coverage area.

[0044] For candidate pose The detection end obtains the predicted line-of-sight vectors pointing from the scanning center to each visible sampling position of the preceding reference feature of the target, and applies a differential perturbation to the coordinates of the predicted points along the normalized line-of-sight direction, forming a local derivative by the ratio of the change in the closed component to the perturbation amplitude; the derivative is successively passed through the geometric fitting Jacobian of the target feature, the coordinate transformation Jacobian from the feature to the common reference node, and the tolerance direction. The projection relationship is transferred to the scalar closed component in the tolerance direction. The resulting local derivative constitutes the sensitivity of the candidate pose to the scanning line of sight in the cross-boundary direction, avoiding changes in the sensitivity value with arbitrary perturbation amplitude. If the sensitivity of the visible sampling position to the target closed component is zero or only falls in the fitting degradation direction, the candidate pose is eliminated; the remaining candidate poses are then evaluated in conjunction with the expected point covariance to assess the target direction variance that can be reduced.

[0045] For each candidate pose, the covariance of the new points and its increment to the target feature Jacobian matrix are predicted based on the expected incident angle, visible area, and point density. The covariances of the new points and existing points are retained according to whether they share device pose or calibration variables, and then the closed residual covariance after the scan is predicted. Candidate pose For cross-border directions Information gain Determine by the following formula:

[0046] ,

[0047] In the formula, To compensate for the covariance of the closed residuals before sweeping, To adopt candidate poses The expected covariance of the closed residuals after the sweep is obtained. This refers to the cross-boundary tolerance direction. This indicates the degree to which the pose is expected to reduce the target orientation variance. This is only true if the prediction covariance remains symmetric and positive semi-definite. Candidate poses are sorted only when the value is greater than zero; the detection end selects from valid candidate poses that meet the device range, field of view, and collision avoidance constraints. Perform a supplementary scan on the largest pose. If multiple poses have the same information gain, prioritize the pose with the larger angle to the existing line of sight and the lower motion cost.

[0048] After the supplementary scan data arrives, only the preceding reference feature point cloud and its parameter covariance that contribute to the cross-boundary closure component are updated. The cutting surface or hole system to be inspected is not reintroduced, nor are irrelevant reference nodes rewritten. The contribution relationship is determined by the process reference map path and the Jacobian of the closure component with respect to each feature parameter. After the update, the process reference transformation, closure residual, and uncertainty interval are recalculated. If the cross-boundary condition still exists and a feasible pose with positive information gain exists, supplementary scanning can continue. If no feasible pose exists, or the reduction in predicted variance is not higher than the minimum resolvable reduction determined by the repeatability of equipment calibration and the resolution capability of numerical calculation, supplementary scanning is stopped. This direction is marked as an uncertain detection state, and the original point cloud, candidate pose, and calculation record are retained to avoid the process having no termination condition or forcibly judging insufficient data as qualified or abnormal.

[0049] When all updated closed components are within the corresponding datum transfer tolerance boundary, a detection coordinate system is established using the process datum constraint. At this point, the actual geometry of the preceding datum feature is used to determine the detection origin, axis, and direction, so that the current machining feature deviation is expressed relative to the actual process datum. When at least one updated uncertainty interval is completely outside the corresponding boundary, the corresponding preceding datum feature is marked as an anomaly, and this feature is not allowed to participate in coordinate system fitting again. The detection coordinate system is jointly established by the workpiece pose constraint formed by the retained surface and the coordinate transformation of the most recent qualified process in the process datum diagram.

[0050] The coordinate transformation of the most recent qualified process refers to the transformation saved by the most recent process where all necessary closed components are within the boundary when tracing back upstream from the current node. This transformation maintains consistent positioning with the theoretical model after the abnormal preceding reference features are isolated. The reference transfer deviation output under this path includes the abnormal closed components and their directions, while the current machining feature deviation is calculated in the detection coordinate system unaffected by abnormal reference refitting. If no most recent qualified transformation is available, the detection uncertainty is retained, and no alternative qualification judgment is generated.

[0051] Reference Figure 2 As shown, the cutting surface to be inspected is divided into planar and contour regions according to the tolerance markings in the theoretical model. For each region, the signed distance from the measured point to the theoretical surface is calculated along the theoretical normal in the inspection coordinate system, forming a signed distance field. The planar region is fitted with affine first-order components in two mutually orthogonal in-plane coordinate directions; the direction of the gradient of the first-order component represents the tilt direction of the actual plane relative to the theoretical plane, and the arctangent value of its gradient magnitude represents the direction angle deviation. The distance residual after removing the first-order component is used to calculate the minimum envelope width according to the corresponding tolerance definition to represent the flatness, avoiding the repeated inclusion of the overall tilt in the shape deviation.

[0052] For the contour region, instead of replacing the theoretical surface with a single best-fit surface, the correspondence between measured points is established along the local normal of the theoretical surface, and the upper and lower envelopes of the signed distance are calculated within the tolerance evaluation region to determine the contour deviation. When the theoretical surface has discontinuous normals, multiple projection values, or overlapping adjacent tolerance evaluation regions, the points are restricted to the parameter domain corresponding to their feature identifiers according to the digital model topology. Points that cannot obtain a unique normal projection within this parameter domain are not included in the envelope calculation. For overlapping areas across adjacent scanning perspectives, paired consistent points are retained: if the distance difference between two perspectives at the same theoretical position exceeds the consistency limit jointly determined by the covariance of the two points, the weight of the corresponding point is reduced or a local check is triggered; only points that meet the consistency condition are included in the final deviation evaluation.

[0053] For each hole in the inspection system, the effective hole wall points are first projected onto multiple spaced sections along the theoretical hole axis. Each section independently fits the hole boundary center and diameter, and the centers of each section are used as input for fitting the combined cylindrical axis. The lateral deviation of the center of each depth section relative to the combined axis forms the axis center trajectory, and the axis straightness is determined according to the corresponding tolerance definition, using the minimum cylinder diameter or equivalent radial envelope width that encompasses this center trajectory. The effective combination of diameters of each section is used to determine the hole diameter; the angle between the combined axis and the theoretical axis of the inspection coordinate system is used to determine the directional deviation; and the vertical distance of the combined axis relative to the theoretical hole position within the specified evaluation section is used to determine the positional deviation.

[0054] The number and spacing of cross sections are determined based on the effective depth of the hole, point density, and occlusion status, rather than using fixed values ​​independent of the hole size. Points near the chamfer, burrs, or reflective instability areas of the hole opening are excluded using the theoretical hole opening range and local fitting residuals. If the effective cross section in a certain depth range is insufficient to constrain the axis, the hole axis and position results are marked as insufficient detection, and the hole diameter results are only output within the depth range with effective cross section, avoiding the substitution of complete hole axis detection with local hole opening data.

[0055] The test results are divided into two groups based on their source. The first group is the reference transfer deviation, including the translational closed component, rotational closed component, corresponding uncertainty interval, boundary state, and abnormal reference feature identifier at common nodes. The second group is the machining feature deviation, including the directional deviation, flatness or contour deviation of each cutting surface, and the hole diameter, axis straightness, directional deviation, and positional deviation of each hole. The two groups of results are correlated through process identifier, feature identifier, and test coordinate system version, but the reference transfer deviation values ​​are not added back or amortized into the machining feature deviation.

[0056] Reference Figure 2 As shown, in embodiments where further differentiation between material removal and clamping changes is required, a first point cloud is acquired before the current process, and a second point cloud is acquired after the current process is completed and the objects are still in the same clamping state. Both point clouds contain the same set of retained surface areas. Reflective, obstructive, and fixture-affected points are first removed, and then the first point cloud is transformed to the common coordinate system of the second point cloud using only the shared retained surface. This transformation does not use areas that have already been cut or drilled in the current process.

[0057] For the cutting surface, a ray or local normal correspondence is established between the pre-machining and post-machining surfaces along the theoretical material removal direction, and the distance between the two forms the differential removal amount. For the hole, the radial removal amount is formed by comparing the pre-machining solid boundary and the post-machining hole wall boundary on the theoretical hole axis perpendicular section. The differential removal amount is matched with the theoretical removal amount given by the theoretical model at the same position to obtain the removal amount residual. At the same time, the common rigid body change and its uncertainty of the point clouds before and after machining are obtained using the common retained surface. Before determining the common rigid body change, the same fixed reference feature, equipment pose record, or calibration datum is used to eliminate the drift of the scanning coordinate system itself; when the drift of the scanning coordinate system and the common rigid body change of the workpiece cannot be distinguished, the detection uncertainty state is retained. When the uncertainty intervals of the common rigid body variation in all relevant translational and rotational directions include zero, and the residual of the material removal exceeds its combined uncertainty in the material removal area, the corresponding residual is classified as a processing feature deviation. When the common rigid body variation is consistent in direction on the remaining surface and multiple subsequent features, the corresponding uncertainty interval does not include zero, and it can be traced back to the previous reference node along the process reference diagram, the common component is classified as a reference transfer deviation. When both states exist simultaneously, the common rigid body component is first separated from the post-processing point cloud, and then the remaining local residuals in the material removal area are classified as processing feature deviations. The two sets of results are output separately. When either component is still dominated by cross-boundary uncertainty, the detection uncertainty state is retained.

[0058] In a continuous inspection process, the inspection end establishes a task for the current process and reads the workpiece identifier to confirm that the workpiece is still in the clamping state it was in after machining. After loading the digital model and process reference map, it first scans the candidate areas of the retained surfaces distributed on different sides of the workpiece, as well as the currently referenced reference planes and reference holes. Quality screening yields the retained surface areas that satisfy six degrees of freedom observability, thus forming the workpiece pose transformation; the preceding reference planes and reference holes form the process reference transformation. After both are passed to the common node, if the closure uncertainty interval of a certain hole position direction crosses the boundary, the system selects a candidate pose that can increase the effective coverage of the reference hole sidewall and is different from the existing line of sight for supplementary scanning.

[0059] After the scan, if the uncertainty interval of the closed component is within the boundary, a detection coordinate system is established based on the actual preceding reference, and the orientation and shape deviations of the current milled surface, as well as the hole diameter, axis, and position deviations of the hole system, are calculated respectively. If the interval is outside the boundary, the abnormal preceding reference features are isolated, and a detection coordinate system is established by combining the retained surface and the most recent qualified transformation. The abnormal closed component is then used as the reference to transfer the deviation output. The detection end retains the viewpoint used, effective point set, covariance version, and coordinate system version for each result, so as to subsequently verify the process chain of the same workpiece.

[0060] In alternative implementations, multi-view point clouds can be acquired sequentially by a scanning device along with a mobile platform, or simultaneously by multiple mutually calibrated scanning units; the process reference map can be stored locally on the inspection terminal, or it can be sent to the inspection terminal by the manufacturing execution system. As long as the final result still uses the retained surface area and the preceding reference features to form independent constraints, transfers the two types of constraints to the same process reference node, and determines the supplementary scanning and inspection coordinate system according to the uncertainty cross-boundary state, the changes in the above-mentioned deployment location, communication path, or task triggering method do not affect the core technical relationship of the present invention.

[0061] In this embodiment, point cloud screening, geometric fitting, covariance propagation, candidate pose evaluation, and bias calculation can be implemented by the processor executing programs stored in memory. The scan pose output by the processor is converted by the scanning device control terminal into motion commands executable by the device or manually reproducible measurement positions; the target feature point cloud is only updated after a scan completion confirmation signal is returned to the detection terminal. In case of communication failure, the previous valid version is retained and coordinate system updates are stopped to avoid mixing of some point clouds with old transformations. After the results are archived, the current task exits or enters the next detection cycle.

[0062] The above embodiments are used to illustrate the technical principles of the present invention, and not to limit the scope of protection. Without changing the dual-constraint separation, process baseline map closure, uncertainty-driven sweep, and deviation separation relationships, those skilled in the art can make equivalent substitutions for the initial point cloud stitching method, robust fitting algorithm, candidate pose generation method, and data deployment location.

Claims

1. A method for detecting the accuracy of machined workpieces based on three-dimensional scanning, characterized in that, include: Obtain the theoretical numerical model, process route, machining datum and tolerance of large castings, and establish a process datum diagram according to the datum reference relationship. The nodes in the diagram include the previous datum features, the cutting surface to be inspected and the hole system to be inspected. After the current process is completed, the workpiece is scanned from multiple perspectives under the same clamping state, and the remaining surface area, previous reference features, cutting surface to be inspected and hole system to be inspected are extracted respectively, which were not processed in the current process. Workpiece pose constraints are established using the retained surface area, and process datum constraints are established using the preceding datum features. The participation of the cutting surface and hole system to be inspected in the registration is excluded. The closure residuals when the two constraints are transferred to the same node of the process datum diagram are calculated. The uncertainty range of the closure residuals is determined by the point density, incident angle and feature fitting residuals of each viewpoint. If the range crosses the corresponding datum transfer tolerance boundary, the supplementary scan pose of the preceding datum features is generated according to the sensitivity of the closure residuals to the scanning line of sight, and the point cloud is updated. Based on the updated closed residual, the detection coordinate system is determined in the workpiece pose constraint and process datum constraint. Within this coordinate system, the contour deviation of the cutting surface and the hole diameter, axis and position deviation of the hole system are obtained, and the datum transfer deviation and machining feature deviation are separated and output.

2. The method according to claim 1, characterized in that, The process reference diagram is a directed graph connected according to the processing sequence. Each reference feature node records the corresponding theoretical geometry, reference order, allowable transfer tolerance, and coordinate transformation of the most recent qualified process. The connecting edges represent the reference relationship between the subsequent processing feature and the preceding reference feature, and the translational allowable amount and rotational allowable amount of each connecting edge are projected onto the tolerance direction of the subsequent processing feature.

3. The method according to claim 1, characterized in that, The retained surface area is selected from surfaces that have never participated in the material removal of the current process and are not within the contact range of the fixture, and areas that have experienced reflective saturation, point cloud occlusion, or local fitting instability are excluded. The selected retained surface areas are spatially separated from each other, and their normal vectors and centroid positions form a full-rank constraint on the six-degree-of-freedom pose of the workpiece.

4. The method according to claim 2, characterized in that, The first coordinate transformation obtained from the retained surface area and the second coordinate transformation obtained from the preceding reference feature are obtained respectively. The first coordinate transformation and the second coordinate transformation are converted to the same reference feature node along the process reference diagram. The translational closed component and the rotational closed component are obtained by decomposing the relative transformation of the two to form the closed residual.

5. The method according to claim 4, characterized in that, The point coordinate covariance is determined based on the calibration covariance of the 3D scanning equipment, the incident angle of each scanning point, the distance measurement residual, and the neighborhood point density. The parameter covariance of each reference feature is obtained by fitting the Jacobian matrix of the plane, cylindrical surface, and hole axis. Then, it is propagated along the process reference diagram to the translational closed component and the rotational closed component to form the uncertainty interval facing each tolerance direction.

6. The method according to claim 5, characterized in that, Among the candidate scanning poses that satisfy the range, field of view, and collision-free operation with the workpiece and fixture of the 3D scanning equipment, the information gain of each candidate scanning pose on the feature parameters corresponding to the closed component that crosses the datum transfer tolerance boundary is calculated. The candidate scanning pose with the largest information gain is selected for supplementary scanning, and only the preceding datum feature point cloud that contributes to the closed component is updated.

7. The method according to claim 5, characterized in that, When the updated uncertainty range is completely within the datum transfer tolerance boundary, the inspection coordinate system is established with process datum constraints. When the updated uncertainty range is completely outside the datum transfer tolerance boundary, the detection coordinate system is established by the workpiece pose constraint and the coordinate transformation of the most recent qualified process in the process datum diagram, and abnormal preceding datum features are prohibited from participating in the refitting of the detection coordinate system. When the updated uncertainty interval still crosses the reference transfer tolerance boundary and there is no feasible scan pose that can further reduce the uncertainty of the interval, stop updating the detection coordinate system and mark the corresponding direction as the detection uncertainty state.

8. The method according to claim 1, characterized in that, The cutting surface to be inspected is divided into planar region and contour region according to the tolerance marking in the theoretical model. The signed distance field is obtained along the theoretical normal of each region in the inspection coordinate system. The directional deviation is determined based on the first-order component of the distance field within the planar region, and the flatness or contour is determined based on the distance field after removing the first-order component. Consistent points across the overlapping areas of adjacent scanning viewpoints are retained as constraints on the validity of the deviation.

9. The method according to claim 1, characterized in that, Multiple cross sections are constructed along the theoretical hole axis direction for the point cloud of each hole in the hole system to be inspected. The hole boundary is fitted in each cross section and the cylinder axis is obtained jointly. The straightness of the axis is determined according to the center drift of the cross section at different depths. The hole diameter deviation, direction deviation and position deviation are determined according to the cylinder diameter, the direction of the axis relative to the detection coordinate system and the distance between the axis and the theoretical hole position.

10. The method according to claim 3, characterized in that, Under the condition that the workpiece is kept in the same clamping state, the workpiece point cloud containing the same retained surface area is obtained before and after the current process. The point cloud before processing and the point cloud after processing are transformed to the same coordinate system using the retained surface area. The difference removal amount of the point cloud before and after processing is calculated along the theoretical material removal direction. The differential removal amount is correlated with the theoretical removal amount of the current process to distinguish between the machining feature deviation caused by material removal and the reference transfer deviation caused by clamping or reference changes.