Binocular vision space position compensation calibration method based on spatial residual state migration

By adopting a binocular vision spatial position compensation calibration method based on spatial residual state transfer, the problem of residual position deviation changing with position in binocular vision measurement system is solved, achieving more efficient and accurate spatial position compensation, and improving measurement accuracy and the reliability of compensation calibration.

CN123181594APending Publication Date: 2026-11-27LIMING VOCATIONAL UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611683704.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing binocular vision measurement systems suffer from inaccurate measurements due to residual position deviations changing with the target's position during spatial position compensation calibration. Furthermore, existing compensation calibration methods struggle to effectively identify and compensate for changes in residual measurement deviations in local areas.

Method used

A binocular vision spatial position compensation calibration method based on spatial residual state transfer is adopted. By setting initial compensation calibration nodes, spatial residual state transfer discrimination is performed, a node spatial adjacency graph is constructed, boundary anchor points are set, and local spatial residual prediction model is verified to ensure the reliability and accuracy of compensation calibration data.

Benefits of technology

This improves the accuracy and reliability of spatial position compensation calibration in binocular vision measurement systems, reduces redundant calibration data, enhances measurement accuracy for local areas, and improves the applicability and accuracy of compensation calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181594A_ABST
    Figure CN123181594A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of machine vision, binocular vision measurement and space measurement error compensation, and particularly relates to a binocular vision space position compensation calibration method based on space residual state migration, S1, an initial compensation calibration node is set, and its three-dimensional space position residual is obtained; S2, a node space adjacency graph is constructed, and space residual state migration discrimination is performed; S3, residual state continuous regions and candidate state migration sections are divided; S4, boundary anchoring is performed; S5, a local space residual prediction model is established, and an independent witness position is selected; S6, independent witness checking is performed, and node identity conversion is performed when the checking fails; S7, according to the newly added formal compensation calibration node, space residual state migration discrimination is performed again, and the compensation calibration structure is updated; S8, according to the residual state continuous regions that complete compensation calibration, a space position compensation relationship is established, and is used for correcting the space measurement position output by a binocular vision measurement system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of machine vision, binocular vision measurement, and spatial measurement error compensation technology, specifically to a binocular vision spatial position compensation calibration method based on spatial residual state transfer. Background Technology

[0002] Binocular vision measurement systems typically use two cameras with known relative geometric relationships to acquire images of the target to be measured, and obtain the spatial position of the target to be measured through camera intrinsic and extrinsic parameter calibration, establishment of correspondence between left and right images, triangulation, or target pose solving.

[0003] Due to limited calibration accuracy, residual optical distortion, image feature localization errors, camera setup errors, and the coupling effect of multiple error factors, a residual positional deviation may still exist between the spatial measurement position output by a binocular vision system and its corresponding reference position. For a three-dimensional workspace with a certain range, this residual positional deviation is usually not a single fixed offset, but may change with the spatial position of the target being measured.

[0004] A common approach is to set up multiple compensation calibration locations within the workspace, acquire visual measurement positions and corresponding reference positions at each location, and then establish a spatial position compensation model based on the residual measurement deviations at these multiple locations. For ease of implementation, the compensation calibration locations typically employ a regular grid, fixed intervals, or a pre-defined node distribution.

[0005] However, the degree of variation in residual measurement bias may differ across different spatial regions. In some regions, the residual measurement biases at adjacent spatial locations may have similar directions, amplitudes, and coordinate component states; if a large number of compensation calibration locations are still arranged at uniformly small intervals, duplicate calibration data is likely to occur. Conversely, in other local regions, there may be changes in the main residual direction, a coordinate component changing from positive to negative bias, or significant changes in the residual amplitude between adjacent locations. If the same calibration interval as other stable regions is still used, the existing calibration locations may be insufficient to determine the spatial segment where the local changes occur.

[0006] Furthermore, evaluating the adequacy of the compensation model solely based on the fit of existing modeling nodes cannot guarantee sufficient residual prediction accuracy for locations not involved in the modeling among existing nodes. If the decision to stop supplementing calibration data is made directly based on the fit results of the modeling samples, situations may arise where the modeling samples fit well, but the predicted residuals for unmeasured locations within the region still deviate significantly from the actual residuals. Summary of the Invention

[0007] The purpose of this invention is to provide a binocular vision spatial position compensation calibration method based on spatial residual state transfer to improve the reliability of compensation.

[0008] To achieve the above objectives, the present invention adopts the following technical solution: A binocular vision spatial position compensation calibration method based on spatial residual state transfer is characterized by the following steps: S1, set up multiple initial compensation calibration nodes in the preset spatial position compensation calibration area of ​​the binocular vision measurement system, place the target to be measured in each of the initial compensation calibration nodes in sequence, obtain the measurement position of the target to be measured at each of the initial compensation calibration nodes through the binocular vision measurement system, obtain the corresponding reference position through the reference position acquisition device, and calculate the three-dimensional spatial position residual of each of the initial compensation calibration nodes. S2, determine the initial compensation calibration nodes of the measurement position, the reference position, and the three-dimensional spatial position residual as formal compensation calibration nodes, construct a node spatial adjacency graph based on the spatial position of each formal compensation calibration node, and perform spatial residual state transition discrimination for mutually adjacent formal compensation calibration nodes. The spatial residual state transition discrimination includes defining the residual direction difference, the residual amplitude relative difference, and the residual component state difference, and constructing a comprehensive spatial residual state transition discrimination quantity. When the comprehensive spatial residual state transition discrimination quantity is less than or equal to the preset state transition threshold, the adjacency connection between two formal compensation calibration nodes is recorded as a continuous spatial residual state connection; otherwise, it is recorded as a spatial residual state transition connection. S3, a set of formal compensation calibration nodes and the local spatial range they support, which are continuously connected through the spatial residual state, are divided into a continuous residual state region, and the spatial connection between two formal compensation calibration nodes connected through the spatial residual state migration is divided into a candidate state migration segment. S4. For the candidate state transition section, the target to be tested is set at the boundary anchor point of the candidate state transition section, the three-dimensional spatial position residual of the boundary anchor point is obtained, the connection of the original candidate state transition section is deleted, and new spatial adjacency connections are established between the boundary anchor point and the two endpoints of the original candidate state transition section respectively. It is determined whether the two new spatial adjacency connections satisfy the continuous connection of the spatial residual state. If they satisfy the condition, the boundary anchor point is retained and the setting of the boundary anchor point is stopped. Otherwise, new anchor points are set and the continuous connection judgment of the spatial residual state is re-executed until the preset candidate state transition section termination condition is met. S5. After completing the boundary anchoring of the candidate state migration segment in step S4, a local spatial residual prediction model is established based on the formal compensation calibration nodes in the continuous residual state region and the boundary anchor points adjacent to the continuous residual state region and determined to belong to the continuous residual state region through the continuous connection of the spatial residual states. At least one independent witness position that did not participate in the establishment of the local spatial residual prediction model in this round is selected within the local spatial range supported by the continuous connection of the spatial residual states. S6, following the same data acquisition method as step S1, determine the reference position corresponding to the independent witness position, and set the target to be measured at the reference position corresponding to the independent witness position. Obtain the measurement position of the independent witness position through the binocular vision measurement system, and obtain the corresponding reference position through the reference position acquisition device. Calculate the three-dimensional spatial position residual of the independent witness position. Use the measurement position of the independent witness position as the query input of the aforementioned local spatial residual prediction model corresponding to the continuous region of the current residual state. Obtain the predicted spatial residual of the independent witness position according to the aforementioned local spatial residual prediction model. Perform independent witness verification based on the difference between the three-dimensional spatial position residual and the predicted spatial residual. When the independent witness verification meets the preset conditions, retain the data of the independent witness position as an independent witness verification record. Do not convert it into a formal compensation calibration node in the current round. Otherwise, convert the independent witness position into a formal compensation calibration node. Add the measurement position, reference position, and three-dimensional spatial position residual obtained at the independent witness position to the formal compensation calibration node set, and update the spatial adjacency graph of the node to obtain a temporary node spatial adjacency graph. S7. Re-execute the spatial residual state transition judgment on the spatial adjacency graph of the temporary node. If the newly added formal compensation calibration node and its adjacent compensation calibration node both satisfy the spatial residual state continuity judgment condition, then maintain the connection structure of the residual state continuity region and update the local spatial residual prediction model using the newly added formal compensation calibration node. Otherwise, update the spatial residual state continuity connection and the spatial residual state transition connection, re-form the residual state continuity region and candidate state transition segment, and re-execute step S4 on the newly added candidate state transition segment. Only when the residual state continuity region simultaneously satisfies the spatial residual state continuity condition of the adjacent connection and the preset independent witness verification condition, the region is determined as the completed compensation calibration. When the preset forced stop condition is reached, stop adding formal compensation calibration nodes and mark the corresponding region as the incomplete compensation calibration region. S8 establishes a spatial position compensation relationship based on the formal compensation calibration nodes, boundary anchor points, and corresponding spatial position residuals in the continuous regions of each residual state after compensation calibration, and uses it to correct the spatial measurement position output by the binocular vision measurement system.

[0009] Preferably, in step S1, the three-dimensional spatial position residuals of each of the initial compensation calibration nodes are calculated using the following formula. : ; in, Indicates the first An initial compensation calibration node. For the first Measurement positions of the initial compensation calibration nodes For the first The reference position of each initial compensation calibration node; Three-dimensional spatial position residual Transforming to a coordinate system, it can be expressed using the following formula: ; in, , ,and The first The spatial position residual components of the initial compensation calibration nodes along the three coordinate directions of x, y, and z in the unified reference coordinate system, where T represents the vector transpose.

[0010] Preferably, in step S2, the construction of the node spatial adjacency graph is as follows: each formal compensation calibration node corresponds to an actual calibration position and its three-dimensional spatial position residual. A spatial adjacency connection is established between two formal compensation calibration nodes that meet the preset spatial adjacency conditions. Each spatial adjacency connection is associated with two formal compensation calibration nodes and the corresponding two sets of three-dimensional spatial position residuals.

[0011] Preferably, the spatial residual state transition discrimination step in step S2 is as follows: Define the residual direction difference between adjacent formal compensation calibration nodes i and j: ; in, For the three-dimensional spatial position residual of the i-th formally compensated calibration node, For the j-th formally compensated calibration node, the three-dimensional spatial position residual is... Describing the L2 norm of a vector, A positive number is set to prevent the denominator from being zero or close to zero; The residual direction difference The larger the value, the more significant the difference in the residual direction between two adjacent formal compensation calibration nodes; Define the relative difference in residual magnitude between adjacent formal compensation calibration nodes i and j: ; The greater the relative difference in residual amplitude, the more significant the relative change in residual amplitude between two adjacent formal compensation calibration nodes. Definition of the first Each formal compensation calibration node is located at coordinates The state of the residual components in the direction is as follows: ; in, Indicates the first The spatial position residual components of each formally compensated calibration node in the q-axis direction. , , These represent the positive residual state, the near-zero residual state, and the negative residual state, respectively. coordinates The zero residual threshold corresponding to the direction, coordinates The zero residual determination threshold corresponding to the direction is a positive number; Define the residual component state difference between adjacent formal compensation calibration nodes i and j: ; in, This indicates that the j-th formal compensation calibration node is located at coordinates... State of residual components in the direction, It is an indicator function; The larger the value of the residual component state difference, the higher the proportion of residual state change in the three coordinate directions; Construct a comprehensive spatial residual state transition discriminant: ; in, and , , ; A preset state transition threshold is set. When the comprehensive spatial residual state transition discrimination value is less than or equal to the preset state transition threshold, the adjacency connection between the formal compensation calibration node i and the formal compensation calibration node j is recorded as a continuous spatial residual state connection. Otherwise, it is recorded as a spatial residual state transition connection. Here, spatial residual state transition does not require there to be a mathematically significant discontinuous change between two adjacent nodes. Rather, it indicates that under the current calibration resolution and preset discrimination conditions, the combination of residual direction, amplitude, or component state of two adjacent nodes is no longer sufficient to be regarded as the same local residual state.

[0012] Preferably, in step S5, the local spatial residual prediction model is constructed as follows: at least one independent witness position that has not participated in the establishment of the local spatial residual prediction model in this round is selected within the local spatial range supported by the state continuity connection. The local spatial residual prediction model is expressed by the following formula: ; in, This indicates the continuous region of the g-th residual state at the measurement location. The output is the predicted 3D spatial position residual. This represents the local spatial residual prediction model corresponding to the g-th region. The modeling dataset used to establish the g-th local spatial residual prediction model, where g represents the sequence number of the continuous region of the residual state; Preferably, the three-dimensional overall verification deviation of this independent witness location is defined as: ; in, The actual three-dimensional spatial position residual of the independent witness location, Measure the coordinates of the local spatial residual prediction model for the g-th region at the independent witness location. The prediction space residual, Let M represent the vector L2 norm, w represent the overall vector check value, and w represent the independent witness position number. For coordinate direction Define the component verification deviation of the independent witness position w in the coordinate direction q. : ; in, To independently witness the components of the actual spatial position residual in the coordinate direction q, The component of the predicted spatial residual in the coordinate direction q is the output of the local spatial residual prediction model for the g-th region. The conditions for passing the witness verification can be expressed as follows: , ; in, The threshold for three-dimensional overall witness verification. The threshold for witness verification of the component corresponding to coordinate direction q. The set of coordinate directions for which component verification needs to be performed includes one or more of the x, y, and z directions.

[0013] By adopting the aforementioned design scheme, the beneficial effects of the present invention are: This invention classifies the spatial residuals of adjacent spatial compensation calibration nodes by performing state discrimination on the three-dimensional spatial position residuals. It comprehensively considers the residual direction, residual amplitude, and residual component state, and divides the spatial adjacency connection between nodes into spatial residual state continuous connection and spatial residual state migration connection. This enables the identification of local spatial segments that need further supplementation of calibration data based on the actual changes in the spatial residual state, reducing the situation of indiscriminately adding compensation calibration nodes in relatively continuous residual state areas.

[0014] For candidate state migration segments where spatial residual state migration is detected, this invention sets boundary anchors and re-discriminates spatial residual states by adding boundary anchors to the new spatial adjacency connections formed after the boundary anchors are added. New boundary anchors are only set for sub-segments that are still determined to be spatial residual state migration connections, thereby gradually narrowing down the state migration segments that need further supplementary measurements, so that the newly added compensation calibration data is concentrated in the local spatial range where the residual state changes are more obvious.

[0015] For local spatial regions formed by continuous connections of spatial residual states, this invention further sets up independent witness positions that did not participate in the establishment of the local spatial residual prediction model in this round for verification. When the independent witness verification fails, the corresponding independent witness position is converted into a formal compensation calibration node, and the node spatial adjacency relationship is re-established and spatial residual state migration discrimination is performed. This allows for further determination of whether the verification failure is due to insufficient data support of the current local spatial residual prediction model or because there is a previously undiscovered spatial residual state migration within the original continuous residual state region. Based on this, the local spatial residual prediction model is updated or a new candidate state migration segment is formed. This forms a closed-loop compensation calibration process consisting of spatial residual state migration discrimination, boundary anchoring, independent witness verification, and node identity conversion and spatial structure update after verification failure, improving the applicability and reliability of the compensation calibration results for locations in the local space that did not participate in the modeling. Attached Figure Description

[0016] Figure 1 This is a flowchart of the overall process for the binocular vision spatial position compensation calibration method of the present invention; Figure 2 This is a schematic diagram illustrating the spatial adjacency relationship of the compensation calibration nodes and the spatial residual state migration discrimination of the present invention; Figure 3 This is a schematic diagram illustrating the present invention of setting boundary anchor points within the candidate state migration section and gradually narrowing the migration section; Figure 4 This is a schematic diagram of the independent witness position verification and node identity conversion within a continuous region of residual state according to the present invention; Figure 5This is a closed-loop flowchart of the process of updating the spatial adjacency relationship of nodes, the continuous region of residual state, and the candidate state transition section after the independent witness verification fails, according to the present invention. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0018] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0019] Binocular vision spatial position compensation calibration method based on spatial residual state transfer, such as Figure 1 As shown, it includes the following steps: S1, set up multiple initial compensation calibration nodes in the preset spatial position compensation calibration area of ​​the binocular vision measurement system, place the target to be measured in each initial compensation calibration node in sequence, obtain the measurement position of the target to be measured at each initial compensation calibration node through the binocular vision measurement system, obtain the corresponding reference position through the reference position acquisition device, and calculate the three-dimensional spatial position residual of each initial compensation calibration node. In this embodiment, the spatial position compensation calibration area can be jointly defined by the effective measurement range of the binocular vision measurement system, the actual working range of the target being measured, and the effective working range of the reference position acquisition device; when multiple spatial constraints exist, the intersection of the corresponding effective spatial ranges can be used as the spatial position compensation calibration area.

[0020] A binocular vision measurement system includes two cameras that jointly acquire images of the target object and determine its measurement position based on the binocular vision measurement results. The reference position is obtained using an external reference measurement device, a calibration motion device with a known spatial position, or other devices capable of providing a reference spatial position. When the visual measurement position and the reference position are represented in different coordinate systems, they are pre-converted to the same reference coordinate system.

[0021] The three-dimensional spatial position residuals of each of the initial compensation calibration nodes are calculated using the following formula. : ; in, Indicates the first An initial compensation calibration node. For the first Measurement positions of the initial compensation calibration nodes For the first The reference position of each initial compensation calibration node; Three-dimensional spatial position residual Transforming to a coordinate system, it can be expressed using the following formula: ; in, , ,and The first The spatial position residual components of the initial compensation calibration nodes along the three coordinate directions of x, y, and z in the unified reference coordinate system, where T represents the vector transpose.

[0022] During the offline compensation calibration phase, the reference position is used to determine the actual calibration position of the target and assist in establishing the spatial adjacency relationship between compensation calibration nodes. When establishing the local residual prediction relationship for online compensation, the measurement position that can be directly output by the binocular vision measurement system is preferred. This serves as a location input, ensuring consistency between offline modeling input and online query input.

[0023] S2, the initial compensation calibration nodes of the measurement position, the reference position, and the three-dimensional spatial position residual are determined as formal compensation calibration nodes. A node spatial adjacency graph is constructed based on the spatial position of each formal compensation calibration node. Spatial residual state transition discrimination is performed on mutually adjacent formal compensation calibration nodes. In this embodiment, the construction of the node spatial adjacency graph is as follows: each formal compensation calibration node corresponds to an actual calibration position and its three-dimensional spatial position residual. A spatial adjacency connection is established between two formal compensation calibration nodes that meet the preset spatial adjacency conditions. Each spatial adjacency connection is associated with two formal compensation calibration nodes and the corresponding two sets of three-dimensional spatial position residuals.

[0024] like Figure 2 As shown, spatial adjacency relationships are established based on the spatial locations of multiple formal compensation calibration nodes. These adjacency relationships are used to limit the evaluation of spatial residual state continuity only between spatially adjacent compensation calibration nodes, avoiding direct state comparison between nodes that are far apart.

[0025] Let the set of adjacent nodes of the i-th formal compensation calibration node be: ; in, Let j be the set of neighboring node indices of the i-th formal compensation calibration node, where j is the node number that forms a spatial adjacency relationship with the i-th formal compensation calibration node. This is the set of spatially adjacent connections of the currently compensated and calibrated nodes. This represents a spatial adjacency formed by the i-th formal compensation calibration node and the j-th formal compensation calibration node.

[0026] The spatial residual state transition determination steps in step S2 are as follows: Define the residual direction difference between adjacent formal compensation calibration nodes i and j: ; in, For the three-dimensional spatial position residual of the i-th formally compensated calibration node, For the j-th formally compensated calibration node, the three-dimensional spatial position residual is... Describing the L2 norm of a vector, A positive number is set to prevent the denominator from being zero or close to zero; The residual direction difference The larger the value, the more significant the difference in residual direction between two adjacent formal compensation calibration nodes; the residual direction difference is a component of the directional relationship of the comprehensive spatial residual state transition discrimination quantity, and is not used as a separate condition for the final state transition discrimination.

[0027] Define the relative difference in residual magnitude between adjacent formal compensation calibration nodes i and j: ; The larger the relative difference in residual amplitude, the more obvious the relative change in residual amplitude between two adjacent formal compensation calibration nodes; the relative difference in residual amplitude serves as a component of the amplitude relationship of the comprehensive spatial residual state migration discrimination quantity.

[0028] Definition of the first Each formal compensation calibration node is located at coordinates The state of the residual components in the direction is as follows: ; in, Indicates the first The spatial position residual components of each formally compensated calibration node in the q-axis direction. , , These represent the positive residual state, the near-zero residual state, and the negative residual state, respectively. coordinates The zero residual threshold corresponding to the direction, coordinates The zero residual determination threshold corresponding to the direction is a positive number.

[0029] Define the residual component state difference between adjacent formal compensation calibration nodes i and j: ; in, This indicates that the j-th formal compensation calibration node is located at coordinates... State of residual components in the direction, This is an indicator function; its value is [value] when the condition within the parentheses is true. Otherwise, the value is ; The residual component state difference value ranges from 0 to 1. The larger the value, the higher the proportion of residual state changes in the three coordinate directions. The residual component state difference value serves as a component state component of the comprehensive spatial residual state migration discrimination quantity.

[0030] Construct a comprehensive spatial residual state transition discriminant: ; in, and , , ; A preset state transition threshold is set. When the comprehensive spatial residual state transition discrimination value is less than or equal to the preset state transition threshold, the adjacency connection between the formal compensation calibration node i and the formal compensation calibration node j is recorded as a continuous spatial residual state connection. Otherwise, it is recorded as a spatial residual state transition connection. Here, spatial residual state transition does not require there to be a mathematically significant discontinuous change between two adjacent nodes. Rather, it indicates that under the current calibration resolution and preset discrimination conditions, the combination of residual direction, amplitude, or component state of two adjacent nodes is no longer sufficient to be regarded as the same local residual state.

[0031] S3 divides a set of formal compensation calibration nodes that are interconnected through continuous spatial residual state connections and the local spatial range they support into a continuous residual state region, and divides the spatial connection between two formal compensation calibration nodes that are connected through spatial residual state migration into a candidate state migration segment.

[0032] In this embodiment, the continuous region of residual state only indicates that, under the current calibration resolution, no spatial residual state migration exceeding the preset conditions has been detected in the spatial adjacency connection between the existing formally compensated calibration nodes. It does not mean that all unmeasured locations within this region have been proven to meet the conditions for continuous spatial residual state. The local spatial range supported by the continuous connection of spatial residual states, as described in this invention, refers to the spatial range jointly defined by formal compensation calibration nodes belonging to the same continuous region of residual states and their corresponding spatial adjacency units, based on the current node spatial adjacency relationship. For regularly arranged compensation calibration nodes, the local spatial range can be determined by regular spatial units formed by adjacent nodes; for irregularly arranged compensation calibration nodes, it can be determined by spatial adjacency units formed by node distance, spatial triangulation, or other preset spatial adjacency methods. This invention does not limit the specific construction method of the local spatial range.

[0033] S4, such as Figure 3 As shown, for a candidate state transition segment, a current boundary anchor point is set within the candidate state transition segment. The three-dimensional spatial position residual of the current boundary anchor point is actually acquired according to the data acquisition method in step S1. After completing the actual measurement of the current boundary anchor point, the current boundary anchor point is inserted into the spatial adjacency relationship of the current node. Using the current boundary anchor point as an intermediate node, the state transition connection corresponding to the original candidate state transition segment is replaced with two sub-connections formed between the current boundary anchor point and the two endpoints of the original candidate state transition segment. It is then determined whether the two sub-connections satisfy the spatial residual state continuity condition.

[0034] For sub-connections that meet the conditions for continuous spatial residual states, no more boundary anchor points will be set along the corresponding sub-segments of the sub-connection; for sub-connections that are still determined to be spatial residual state migration connections, subsequent boundary anchor points will be set in their corresponding sub-segments, and the aforementioned actual measurement of boundary anchor points, node insertion, connection replacement, and spatial residual state migration discrimination process will be repeated until the preset candidate state migration segment termination condition is met.

[0035] S5. After completing the boundary anchoring of the candidate state migration section in step S4, a local spatial residual prediction model is established based on the formal compensation calibration nodes in the continuous region of residual state and the boundary anchor points adjacent to the continuous region of residual state and which can be attributed to the continuous region of residual state by spatial residual state discrimination. Within the local space supported by state continuity, select at least one independent witness location that has not participated in the establishment of the local spatial residual prediction model in this round; In this embodiment, the local spatial residual prediction model is represented by the following formula: ; in, This indicates the continuous region of the g-th residual state at the measurement location. The output is the predicted 3D spatial position residual. This represents the local spatial residual prediction model corresponding to the g-th region. The modeling dataset used to establish the g-th local spatial residual prediction model, where g represents the sequence number of the continuous region of the residual state.

[0036] In the local spatial residual prediction model establishment stage, the measurement location refers to the binocular visual measurement location corresponding to the formal compensation calibration node participating in the modeling and the measured boundary anchor point that can be attributed to one side of the continuous region of the residual state; in the model query stage, the measurement location refers to the binocular visual measurement location corresponding to the location to be queried.

[0037] The modeling dataset includes at least the measurement positions and 3D spatial position residuals corresponding to the formal compensation calibration nodes in this region, and may also include the measurement positions and 3D spatial position residuals corresponding to the measured boundary anchor points adjacent to the continuous region of the residual state and which, based on the spatial residual state, can be attributed to one side of this region. The local spatial residual prediction model can employ spatial interpolation, local polynomial regression, radial basis functions, Gaussian process regression, or other models capable of outputting 3D residual prediction values ​​from the measurement positions. The core of this invention does not lie in limiting the specific mathematical form. The aforementioned spatial interpolation, local polynomial regression, radial basis functions, and Gaussian process regression can all employ existing corresponding prediction models in the field, and this embodiment does not improve their specific mathematical forms; for example, inverse distance weighted interpolation can be directly used to obtain the predicted spatial residual of the query position based on the binocular visual measurement positions and corresponding 3D spatial position residuals of the participating modeling nodes.

[0038] In this context, boundary anchor points are not unconditionally included in the local model of a continuous region of residual state; only measured boundary anchor points that are adjacent to the continuous region of residual state and can be attributed to one side of the region according to the spatial residual state are used as optional modeling data for that region.

[0039] After the local spatial residual prediction model is established, instead of directly judging whether the corresponding continuous region of residual state has been compensated and calibrated based on the fitting results of the modeling data itself, at least one independent witness position that did not participate in the establishment of the local spatial residual prediction model in this round is selected within the local spatial range supported by the continuous connection of states. The independent witness position is used to check whether the position within the region that did not participate in the modeling, even if no state transition connection is found between existing nodes, can still be accurately described by the current local model.

[0040] Independent witness locations can be set within a local spatial unit defined by the continuous connection of multiple formal compensation calibration nodes and their states, or at a location relatively far from the current modeling node but still within the effective spatial support range of the current region. In the same round of independent witness verification, the actual residuals of the independent witness location must not be used as input to the modeling dataset in the local spatial residual prediction model; only when the verification of the witness location fails and a node identity change occurs will its actual data enter the next round of modeling dataset.

[0041] S6, such as Figure 4 As shown, following the same data acquisition method as step S1, the target to be measured is controlled to reach the independent witness position. The measurement position corresponding to this position is obtained by the binocular vision measurement system, and the corresponding reference position is obtained by the reference position acquisition device. The three-dimensional spatial position residual of the independent witness position is calculated based on the measurement position and the corresponding reference position. The measurement position of the independent witness position is used as the query input of the local spatial residual prediction model corresponding to the continuous region of the current residual state to obtain the corresponding predicted spatial residual. Independent witness verification is performed based on the difference between the actual three-dimensional spatial position residual and the predicted spatial residual. When the independent witness verification meets the preset conditions, the data of the independent witness position is retained as an independent witness verification record and is not converted into a formal compensation calibration node in the current round. When the independent witness verification does not meet the preset conditions, the node identity of the corresponding independent witness position is converted into a formal compensation calibration node. The actual measurement position, reference position, and spatial position residual obtained at the independent witness position are added to the formal compensation calibration node set, and the newly added formal compensation calibration node is added to the node spatial adjacency graph to obtain a temporary node spatial adjacency graph. In this embodiment, the three-dimensional overall verification deviation of the independent witness location is defined as: ; in, The actual three-dimensional spatial position residual of the independent witness location, Measure the coordinates of the local spatial residual prediction model for the g-th region at the independent witness location. The prediction space residual, Let M represent the vector L2 norm, w represent the overall vector check quantity, and w represent the independent witness position number. The actual three-dimensional spatial position residual of the independent witness position is obtained by subtracting the corresponding reference position from the binocular visual measurement position at that independent witness position.

[0042] For coordinate direction Define the component verification deviation of the independent witness position w in the coordinate direction q. : ; in, To independently witness the components of the actual spatial position residual in the coordinate direction q, This represents the component of the predicted spatial residual in the coordinate direction q output by the local spatial residual prediction model for the g-th region.

[0043] The conditions for passing the witness verification can be expressed as follows: , ; in, The threshold for three-dimensional overall witness verification. The threshold for witness verification of the component corresponding to coordinate direction q. This refers to the set of coordinate directions for which component verification needs to be performed, including one or more directions from x, y, and z. In practical applications, this can be determined based on the allowable spatial position error of the measurement system. and Alternatively, only the overall verification condition can be used, or a combination of the overall verification condition and one or more component verification conditions can be used.

[0044] S7, such as Figure 5 As shown, the spatial residual state transition judgment is re-executed on the spatial adjacency graph of the temporary node; if the newly added formal compensation calibration node and its adjacent compensation calibration nodes both satisfy the spatial residual state continuity judgment condition, the connection structure of the corresponding residual state continuous region is maintained and the local spatial residual prediction model is updated using the newly added formal compensation calibration node; if the newly added formal compensation calibration node and at least one adjacent compensation calibration node do not satisfy the spatial residual state continuity condition, the spatial residual state continuous connection and spatial residual state transition connection are updated, the residual state continuous region and candidate state transition segment are re-formed, and step S4 is re-executed on the newly added candidate state transition segment; only when the corresponding residual state continuous region simultaneously satisfies the spatial residual state continuity condition of the adjacent connection and the preset independent witness verification condition, the region is determined as the completed compensation calibration; when the preset maximum number of compensation calibration cycles, the preset maximum number of formal compensation calibration nodes, or other preset forced stop conditions are reached and the above completion conditions are still not met, the addition of formal compensation calibration nodes is stopped, and the corresponding region is marked as the incomplete compensation calibration region; It should be noted that the spatial residual state transition discrimination in step S4 targets the two sub-connections formed after the addition of boundary anchor points to the original connection that has been identified as a state transition connection. Its function is to narrow down the existing candidate state transition segments. The re-discrimination after the independent witness verification failure targets the newly added formal compensation calibration node and the new adjacent connections formed between the newly added formal compensation calibration node and its surrounding nodes within the original residual state continuous region. Its function is to determine whether the failure of this witness is only due to insufficient model support or to reveal previously undiscovered hidden state transitions within the original continuous region.

[0045] S8. Based on the formal compensation calibration nodes, boundary anchor points, and corresponding spatial position residuals in the continuous regions of each residual state after compensation calibration, a spatial position compensation relationship is established and used to correct the spatial measurement position output by the binocular vision measurement system. It should be noted that this step is used to illustrate the application of the aforementioned compensation calibration results in the binocular vision measurement process. The improvement of this invention focuses on the aforementioned compensation calibration node formation, spatial residual state transition discrimination, boundary anchoring, independent witness verification, and node identity transformation and spatial structure update process after verification failure, rather than limiting the specific mathematical form of online spatial position correction.

[0046] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A binocular vision spatial position compensation calibration method based on spatial residual state transfer, characterized in that: Includes the following steps: S1, set up multiple initial compensation calibration nodes in the preset spatial position compensation calibration area of ​​the binocular vision measurement system, place the target to be measured in each of the initial compensation calibration nodes in sequence, obtain the measurement position of the target to be measured at each of the initial compensation calibration nodes through the binocular vision measurement system, obtain the corresponding reference position through the reference position acquisition device, and calculate the three-dimensional spatial position residual of each of the initial compensation calibration nodes. S2, determine the initial compensation calibration nodes of the measurement position, the reference position, and the three-dimensional spatial position residual as formal compensation calibration nodes, construct a node spatial adjacency graph based on the spatial position of each formal compensation calibration node, and perform spatial residual state transition discrimination for mutually adjacent formal compensation calibration nodes. The spatial residual state transition discrimination includes defining the residual direction difference, the residual amplitude relative difference, and the residual component state difference, and constructing a comprehensive spatial residual state transition discrimination quantity. When the comprehensive spatial residual state transition discrimination quantity is less than or equal to the preset state transition threshold, the adjacency connection between two formal compensation calibration nodes is recorded as a continuous spatial residual state connection; otherwise, it is recorded as a spatial residual state transition connection. S3, a set of formal compensation calibration nodes and the local spatial range they support, which are continuously connected through the spatial residual state, are divided into a continuous residual state region, and the spatial connection between two formal compensation calibration nodes connected through the spatial residual state migration is divided into a candidate state migration segment. S4. For the candidate state transition section, the target to be tested is set at the boundary anchor point of the candidate state transition section, the three-dimensional spatial position residual of the boundary anchor point is obtained, the connection of the original candidate state transition section is deleted, and new spatial adjacency connections are established between the boundary anchor point and the two endpoints of the original candidate state transition section respectively. It is determined whether the two new spatial adjacency connections satisfy the continuous connection of the spatial residual state. If they satisfy the condition, the boundary anchor point is retained and the setting of the boundary anchor point is stopped. Otherwise, new anchor points are set and the continuous connection judgment of the spatial residual state is re-executed until the preset candidate state transition section termination condition is met. S5. After completing the boundary anchoring of the candidate state migration segment in step S4, a local spatial residual prediction model is established based on the formal compensation calibration nodes in the continuous residual state region and the boundary anchor points adjacent to the continuous residual state region and determined to belong to the continuous residual state region through the continuous connection of the spatial residual states. At least one independent witness position that did not participate in the establishment of the local spatial residual prediction model in this round is selected within the local spatial range supported by the continuous connection of the spatial residual states. S6. Following the same data acquisition method as step S1, the target to be tested is placed at the independent witness position. The binocular vision measurement system obtains the measurement position corresponding to the independent witness position, and the reference position acquisition device obtains the corresponding reference position. The three-dimensional spatial position residual of the independent witness position is calculated based on the measurement position and the corresponding reference position. The measured position of the independent witness location is used as the query input of the local spatial residual prediction model corresponding to the continuous region of the current residual state to obtain the predicted spatial residual of the independent witness location. Independent witness verification is performed based on the difference between the three-dimensional spatial position residual of the independent witness location and the predicted spatial residual of the independent witness location. When the independent witness verification meets the preset conditions, the data of the independent witness location is retained as an independent witness verification record and is not converted into a formal compensation calibration node in the current round. Otherwise, the independent witness location is converted into a formal compensation calibration node, and the measured position, reference position, and three-dimensional spatial position residual obtained at the independent witness location are added to the formal compensation calibration node set. The spatial adjacency graph of the node is updated to obtain a temporary node spatial adjacency graph. S7. Re-execute the spatial residual state transition judgment on the spatial adjacency graph of the temporary node. If the newly added formal compensation calibration node and its adjacent compensation calibration node both meet the spatial residual state continuity judgment condition, then maintain the connection structure of the residual state continuity region and update the local spatial residual prediction model using the newly added formal compensation calibration node. Otherwise, update the spatial residual state continuity connection and the spatial residual state transition connection, re-form the residual state continuity region and candidate state transition segment, and re-execute step S4 on the newly added candidate state transition segment. Only when the residual state continuity region simultaneously meets the spatial residual state continuity condition of the adjacent connection and the preset independent witness verification condition, the region is determined as the completed compensation calibration. When the preset forced stop condition is reached, stop adding formal compensation calibration nodes and mark the corresponding region as the incomplete compensation calibration region. S8 establishes a spatial position compensation relationship based on the formal compensation calibration nodes, boundary anchor points, and corresponding spatial position residuals in the continuous regions of each residual state after compensation calibration, and uses it to correct the spatial measurement position output by the binocular vision measurement system.

2. The binocular vision spatial position compensation calibration method based on spatial residual state transfer as described in claim 1, characterized in that: In step S1, the three-dimensional spatial position residuals of each of the initial compensation calibration nodes are calculated using the following formula. : ; in, Indicates the first An initial compensation calibration node. For the first Measurement positions of the initial compensation calibration nodes For the first The reference position of each initial compensation calibration node; Three-dimensional spatial position residual Transforming to a coordinate system, it can be expressed using the following formula: ; in, , ,and The first The spatial position residual components of the initial compensation calibration nodes along the three coordinate directions of x, y, and z in the unified reference coordinate system, where T represents the vector transpose.

3. The binocular vision spatial position compensation calibration method based on spatial residual state transfer as described in claim 2, characterized in that: In step S2, the construction of the node spatial adjacency graph is as follows: each formal compensation calibration node corresponds to an actual calibration position and its three-dimensional spatial position residual. A spatial adjacency connection is established between two formal compensation calibration nodes that meet the preset spatial adjacency conditions. Each spatial adjacency connection is associated with two formal compensation calibration nodes and the corresponding two sets of three-dimensional spatial position residuals.

4. The binocular vision spatial position compensation calibration method based on spatial residual state transfer as described in claim 3, characterized in that: The spatial residual state transition determination steps in step S2 are as follows: Define the residual direction difference between adjacent formal compensation calibration nodes i and j: ; in, For the three-dimensional spatial position residual of the i-th formally compensated calibration node, For the j-th formally compensated calibration node, the three-dimensional spatial position residual is... Describing the L2 norm of a vector, A positive number is set to prevent the denominator from being zero or close to zero; The residual direction difference The larger the value, the more significant the difference in the residual direction between two adjacent formal compensation calibration nodes; Define the relative difference in residual magnitude between adjacent formal compensation calibration nodes i and j: ; The greater the relative difference in residual amplitude, the more significant the relative change in residual amplitude between two adjacent formal compensation calibration nodes. Definition of the first Each formal compensation calibration node is located at coordinates The state of the residual components in the direction is as follows: ; in, Indicates the first The spatial position residual components of each formally compensated calibration node in the q-axis direction. , , These represent the positive residual state, the near-zero residual state, and the negative residual state, respectively. coordinates The zero residual threshold corresponding to the direction, coordinates The zero residual determination threshold corresponding to the direction is a positive number; Define the residual component state difference between adjacent formal compensation calibration nodes i and j: ; in, This indicates that the j-th formal compensation calibration node is located at coordinates... State of residual components in the direction, It is an indicator function; The larger the value of the residual component state difference, the higher the proportion of residual state change in the three coordinate directions; Construct a comprehensive spatial residual state transition discriminant: ; in, and , , ; A preset state transition threshold is set. When the comprehensive spatial residual state transition discrimination value is less than or equal to the preset state transition threshold, the adjacency connection between the formal compensation calibration node i and the formal compensation calibration node j is recorded as a continuous spatial residual state connection. Otherwise, it is recorded as a spatial residual state transition connection. Here, spatial residual state transition does not require there to be a mathematically significant discontinuous change between two adjacent nodes. Rather, it indicates that under the current calibration resolution and preset discrimination conditions, the combination of residual direction, amplitude, or component state of two adjacent nodes is no longer sufficient to be regarded as the same local residual state.

5. The binocular vision spatial position compensation calibration method based on spatial residual state transfer as described in claim 4, characterized in that: In step S5, the local spatial residual prediction model is expressed by the following formula: ; in, This indicates the continuous region of the g-th residual state at the measurement location. The output is the predicted 3D spatial position residual. This represents the local spatial residual prediction model corresponding to the g-th region. The modeling dataset used to establish the g-th local spatial residual prediction model, where g represents the sequence number of the continuous region of the residual state.

6. The binocular vision spatial position compensation calibration method based on spatial residual state transfer as described in claim 5, characterized in that: The three-dimensional overall verification deviation of this independent witness location is defined as: ; in, The actual three-dimensional spatial position residual of the independent witness location, Measure the coordinates of the local spatial residual prediction model for the g-th region at the independent witness location. The prediction space residual, Let M represent the vector L2 norm, w represent the overall vector check value, and w represent the independent witness position number. For coordinate direction Define the component verification deviation of the independent witness position w in the coordinate direction q. : ; in, To independently witness the components of the actual spatial position residual in the coordinate direction q, The component of the predicted spatial residual in the coordinate direction q is the output of the local spatial residual prediction model for the g-th region. The conditions for passing the witness verification can be expressed as follows: , ; in, The threshold for three-dimensional overall witness verification. The threshold for witness verification of the component corresponding to coordinate direction q. The set of coordinate directions for which component verification needs to be performed includes one or more of the x, y, and z directions.