A mechanical pre-calibration and online active depth perception method and system for a zooming bionic binocular eye
By using mechanical pre-calibration and online active depth sensing methods, zoom error and assembly error are decoupled, and a closed-loop control system is constructed. This solves the calibration accuracy and stability problems of the zoom binocular vision system, and achieves high-precision depth measurement and long-term operational reliability.
Patent Information
- Application Number
- CN202611297362.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-24
AI Technical Summary
Existing zoom binocular vision systems face challenges in calibration due to the combined problem of solving zoom errors and assembly extrinsic parameter errors. They cannot dynamically update parameters, lack a closed-loop linkage between active zoom and convergence adjustment, have insufficient mechanical pre-compensation mechanisms, and are prone to parameter asynchrony between modules, resulting in insufficient depth measurement accuracy and stability.
By employing mechanical pre-calibration and online active depth sensing methods, zoom error is decoupled through the minimum mechanical parameters with no repeating translation degrees of freedom. Combined with independent scale anchoring and observability analysis, a closed-loop control system is constructed to ensure parameter consistency and stability.
It reduces scale drift within the zoom range, improves depth measurement accuracy and system stability, and enhances long-term robustness and safety.
Smart Images

Figure CN123160631A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of bionic visual robot depth perception technology, and particularly relates to a mechanical pre-calibration and online active depth perception method and system for a zoom-in bionic binocular eye. Background Technology
[0002] With the rapid development of bionic robots, intelligent industrial equipment, and unmanned sensing systems, bionic binocular vision systems with zoom and convergence adjustment capabilities have become a core technology in the field of high-precision depth perception, widely used in scenarios such as precision robotic operations, inspection of complex environments, dynamic target recognition, and 3D reconstruction. Calibration technology, as the core foundation of binocular vision systems, directly determines the accuracy of depth measurement and the long-term reliable operation of the system, making it a crucial link that urgently needs to be overcome in industrial application.
[0003] Existing zoom binocular vision calibration and perception solutions can be mainly divided into three categories: The first category is the factory static calibration solution, which completes offline calibration through a calibration target, solidifies the camera's intrinsic and extrinsic parameters and baseline parameters, and is currently the most widely used basic solution in the industry; the second category is the online self-calibration solution, which relies on the natural features of the scene to correct the camera's extrinsic parameters online. Some solutions introduce sliding windows and robust estimation to improve calibration stability and cope with parameter drift under long-term operation; the third category is the active focal length / attitude adjustment solution, which optimizes the depth perception effect by adjusting the focal length or binocular attitude to adapt to observation scenarios at different distances.
[0004] The aforementioned existing technologies also have the following shortcomings:
[0005] 1. In the existing technology, zoom error and assembly external parameter error are usually solved in a mixed manner. Static calibration schemes lack effective decoupling methods and mostly only use a single equivalent focal length to approximate the changes in zoom internal parameters, ignoring the systematic changes of principal point, distortion and optical center breathing displacement with zoom. This results in a difficult-to-eliminate scale deviation in depth measurement across the entire zoom range, which directly affects the measurement accuracy.
[0006] 2. In existing technologies, once the factory calibration parameters are fixed, they cannot be dynamically updated. Under long-term operation, parameter drift caused by temperature changes, mechanical vibration, and structural wear lacks effective online compensation. Most online self-calibration schemes are designed for fixed-focus systems and do not consider the scale coupling characteristics under zoom conditions. Parameter updates often adopt simple subset switching strategies, lacking directional-level fine control based on observability analysis. Furthermore, without independent scale anchoring, parameter drift is prone to occur, making it difficult to guarantee the physical consistency and long-term stability of calibration results.
[0007] 3. In existing technologies, active zoom and convergence adjustment are mostly single-dimensional or open-loop control, which only pursue the depth quality of the current frame and do not form a closed loop with the uncertainty of calibration parameters; the control action cannot actively stimulate observation with sufficient information for the current weakly observable calibration direction, thus making it difficult to drive the continuous and coordinated improvement of calibration accuracy and perception quality.
[0008] 4. In existing technologies, there is a general lack of a dedicated mechanical pre-compensation mechanism for multi-degree-of-freedom bionic head and eye structures. Gross errors introduced by processing and assembly, such as joint zero-position deviation, roll offset, and offset from the axis of rotation to the optical center, directly participate in the depth calculation, further limiting the overall performance limit of the system.
[0009] 5. In the existing technology, the online self-calibration, active control and depth calculation modules often operate independently and lack an atomic version management mechanism. The parameters between modules are prone to being out of sync, which leads to inconsistencies in the correction projection, utility evaluation and depth calculation, thereby causing system abnormalities or closed-loop failures. Summary of the Invention
[0010] The purpose of this invention is to address the problems raised in the background art by providing a mechanical pre-calibration and online active depth sensing method and system for a zoom-in bionic binocular eye.
[0011] To achieve the above objectives, the present invention adopts the following technical solution:
[0012] A mechanical pre-calibration and online active depth sensing method for zoom-in bionic binocular eyes includes:
[0013] S1. Under the reference zoom state, based on the head-eye forward kinematic projection model with mechanical compensation parameters, the principal residual is constructed by the difference between the measured pixels and the theoretical projected pixels of the target's three-dimensional points. Based on offline acquisition of multi-pose target observations under the reference zoom state, the mechanical compensation parameters are solved by the minimum mechanical parameter vector with no repeated translation degrees of freedom. Then, multi-pose, multi-zoom, and multi-distance observations are acquired in the forward and reverse zoom directions, and the static residual extrinsic parameters, complete zoom intrinsic parameter functions, and zoom breathing pose functions are jointly solved. By applying the reference zoom zero breathing constraint and the known scale constraint only to the pre-specified standard zoom arrival direction, the static residual extrinsic parameters, zoom intrinsic parameter changes, and the two-direction optical center breathing displacement are separated and solved.
[0014] S2. Online synchronous acquisition of images from left and right cameras, actual angles of the neck and left and right eye joint encoders, actual zoom positions of left and right lenses, and zoom movement direction, using zoom drive commands as auxiliary quantities, and binding the above data to a unified timestamp;
[0015] S3. Maintain a sliding window containing keyframe body pose, 3D landmarks, and calibration parameter increments. Perform Schur complement elimination on the normal equations constructed by the sliding window to eliminate body pose and 3D landmark variables. This yields a calibration parameter edge information matrix consisting of observation data residuals and independent scale anchoring residuals, without prior terms used only for numerical regularization. Based on the observability analysis of this matrix, determine the allowed parameter update directions. Selectively enable or suppress scale-related update directions according to the scale anchoring status. Solve for calibration parameter increments along the allowed directions to obtain candidate parameters. Submit the parameters after verification by independent verification frames; otherwise, revert to the previous version snapshot. Simultaneously, output the weakly observable direction information.
[0016] S4. Generate multiple candidate control states with different left and right actual zoom positions and / or different left and right eye convergence angles. For each candidate state, call the complete calibration model and calculate the depth measurability index. Construct predictive measurements to divide the Jacobian information of calibration parameters, candidate depth, and target pose interference variables into blocks. Perform Schur complement elimination on the interference variables to obtain the candidate calibration edge information matrix. Project this matrix onto the weakly observable direction to calculate the expected calibration excitation index. After comprehensive evaluation, select the optimal candidate state as the control output. Qualified observations generated by the executed candidate are preferentially sent back to S3.
[0017] S5. Calculate the relative pose of the left and right cameras based on the real-time calibration parameters, solve the left camera correction rotation, right camera correction rotation and corresponding correction projection matrix respectively, so that the two cameras have the same pose after correction and the line connecting the camera centers is parallel to the horizontal axis of the correction coordinate system, complete stereo matching and triangulation, output a depth map with confidence, and feed the depth result back to S4 to form a closed loop; S3 to S5 are executed under the same atomic parameter version.
[0018] Furthermore, step S1 executes the following sub-steps in sequence:
[0019] S11. Fix the lens in the reference zoom state. Based on the known target three-dimensional points, the actual readings of the encoders of the neck and left and right eye joints, and the head-eye forward kinematics model, establish the binocular projection residual that is explicitly dependent on the mechanical compensation parameters. Use the minimum parameterization with no repeating translation degrees of freedom to solve the mechanical compensation parameter vector composed of joint zero position offset, installation roll offset, binocular height difference, baseline correction, and offset from the eyeball rotation axis to the camera optical center. The baseline correction and binocular height difference are not repeated in the corresponding differential components of the left and right optical center offsets.
[0020] S12. Write the mechanical compensation parameters obtained in S11 into the head-eye kinematics chain, and introduce static six-degree-of-freedom residual transformation that is independent of zoom and breathing pose transformation that changes with the actual zoom position and zoom direction of the lens in sequence after the camera mounting reference.
[0021] S13. Establish complete zoom intrinsic parameter functions and zoom breathing pose functions for the left and right lenses in the forward and reverse zoom directions, respectively. The complete zoom intrinsic parameter function describes the changes in focal length, principal point, and distortion parameters with the actual zoom position and zoom direction. The zoom breathing pose function describes the rotation increment and translation increment caused by the photocentric breathing. Pre-specify a standard zoom arrival direction, constrain the breathing pose of this direction to zero in the reference zoom state, and retain an estimable hysteresis offset in the other direction in the reference zoom state.
[0022] S14. The mechanical compensation parameters fixed in S11 are used as head-eye kinematic constants. The static residual extrinsic parameters, the coefficients of the complete zoom intrinsic parameters, the coefficients of the zoom breathing pose function, and the target pose are used as optimization variables to construct a joint objective function for optimization. The parameter identifiability is determined by the edge information matrix of the data items after removing interference variables such as the target pose. The parameter prior is only used for numerical regularization after the identifiability determination.
[0023] Furthermore, in step S11, observation data is collected in units of fixed target groups, with different joint configurations within the group sharing the same target to body pose; the mechanical translation degrees of freedom are minimized to ensure that the baseline correction, binocular height difference, and the corresponding differential components of the left and right eye rotation axes to the camera optical center offset are not repeated; a multi-joint excitation sequence is executed for each rotational joint to be calibrated, and after eliminating the target pose and reference intrinsic parameters as interference variables, the full rank and condition number are determined using the data residual information matrix without parameter priors; the mechanical compensation parameters are only solidified after acceptance by reprojection error, median vertical parallax, common field of view ratio, and physical range of mechanical parameters.
[0024] Further, in step S3, the calibration parameter increment includes the static residual extrinsic parameter increment, the full zoom intrinsic parameter function coefficient increment, and the zoom breathing pose function coefficient increment; the calibration parameter edge information matrix used in the observability analysis is composed of the Jacobian of the reprojection data residual and the independent scale anchoring residual, excluding parameter priors used only for limiting update amplitude or regularization; the calibration parameters are divided into blocks according to static rotation, static translation, focal length scale, principal point and distortion, breathing rotation, and breathing translation, and the updateable direction is determined by singular value decomposition or equivalent orthogonal decomposition; when there is an independent scale anchor, the scale direction is allowed to be updated only when the projection of the anchoring Jacobian onto the corresponding scale direction meets the threshold.
[0025] Further, in step S3, the independent scale anchoring includes at least one of the following: known landmark spacing, external ranging, or reference camera center spacing measured by an external length reference under a predetermined reference convergence angle, reference zoom state, and mechanism locking state; the reference camera center spacing only constrains the measurement scale under the predetermined reference state, and does not force the real-time camera center spacing under active convergence or zoom state to be equal to the reference value; when there is no independent scale anchoring, static translation, focal length scale, and breathing translation direction are suppressed from updating; the direction corresponding to the feature vector below the update threshold but above the numerical zero threshold is defined as the weakly observable direction, and after excluding the scale directions that are not independently anchored by the scale permission mask, the projection matrix representing the weakly observable parameter subspace is output.
[0026] Further, in step S4, the utility function of the comprehensive evaluation includes a weighted combination of depth Fisher information, common field of view ratio, normalized value of mechanism adjustment time, matching failure probability, control change amount, and the expected calibration excitation index; each component is normalized using fixed upper and lower bounds fixed with parameter version; for each candidate state, a prediction weight matrix is constructed based on the four-dimensional original pixel prediction covariance, forming prediction information blocks of calibration parameters and candidate depth, target pose interference variables respectively, and the interference variables are eliminated by Schur complement to obtain the candidate calibration edge information matrix, and the expected calibration excitation index is determined by the projection trace or equivalent information measure of this matrix on the weakly observable parameter subspace; the control change amount is the normalized weighted sum of the travel changes of the four execution axes relative to the current state: left actual zoom position, right actual zoom position, left eye convergence angle, and right eye convergence angle.
[0027] Furthermore, the matching failure probability and disparity noise models are obtained by fitting offline calibration data and saved with parameter versions; the online statistics of the model are updated only when the cumulative sample size and validation error reduction conditions are met.
[0028] Furthermore, in step S5, based on the real-time left and right camera centers and relative rotations including the eyeball rotation axis to the optical center offset and the zoom breathing pose, the left camera correction rotation and the right camera correction rotation are calculated respectively, so that the optical axis directions of the two cameras are consistent after correction, the epipolar lines are horizontal, and the line connecting the camera centers is parallel to the horizontal axis of the correction coordinate system; only when the left and right correction projection matrices have the same horizontal focal length and the parallax definition is consistent with the baseline direction, the depth is calculated using the corrected horizontal parallax, otherwise homogeneous linear triangulation and nonlinear refinement are used.
[0029] This invention also provides a mechanical pre-calibration and online active depth sensing system for a zoom-in bionic binocular eye, comprising:
[0030] The image acquisition module is used to simultaneously acquire left and right binocular images, the actual angles of the neck and left and right eye joint encoders, the actual zoom positions and zoom movement directions of the left and right lenses, and uses zoom drive commands as auxiliary quantities and binds them to a unified timestamp.
[0031] The motion control module is used to read joint encoder data and superimpose software compensation to drive binocular convergence, pitch, yaw and neck posture, and monitor mechanical limits;
[0032] The mechanical pre-calibration module is used to establish the minimum mechanical compensation parameter vector with no repeating translational degrees of freedom, and to solve the mechanical compensation parameters based on the target three-dimensional points, the actual readings of the neck and left and right eye encoders, and the head-eye forward kinematic projection model.
[0033] The complete zoom-extrinsic parameter joint calibration module is used to establish complete intrinsic parameter functions and zoom breathing pose functions for the left and right lenses in the forward and reverse zoom directions respectively. The mechanical compensation parameters output by the mechanical pre-calibration module are used as constants. Reference zoom zero breathing constraints are applied only to the standard zoom arrival direction. The static residual extrinsic parameters, zoom function coefficients and target pose are jointly optimized, and the factory reference parameter version with covariance is output.
[0034] The online orientation selection self-calibration module is used to maintain the sliding window and perform Schur complement elimination on the normal equations. It generates an orientation-level updated projection matrix based on the edge information matrix of data terms without numerical regularization priors and independent scale anchoring terms. It freezes the corresponding orientation according to the scale anchoring conditions, submits or rolls back the parameter version according to the independent verification frame results, and outputs weakly observable orientation information.
[0035] The active control module is used to call the complete calibration parameters to calculate the depth measurability index under the candidate actual zoom position and convergence angle. After performing Shur compensation elimination on the candidate depth and target pose disturbance variables, it calculates the expected calibration excitation index along the weakly observable direction. After comprehensive utility evaluation, it outputs the optimal control state and marks the qualified observations generated after execution as priority keyframes and sends them back to the online direction selection self-calibration module.
[0036] The depth calculation module is used to generate left and right correction rotation and correction projection matrices based on the real-time poses of the left and right cameras, respectively, and to perform distortion removal, binocular correction, stereo matching and triangulation, and output a depth map with confidence mask and robust master depth.
[0037] The versioned parameter management module is used to store static residual extrinsic parameters, complete zoom intrinsic parameters, zoom breathing pose, mechanical compensation parameters and covariance in atomic form with the same version. It retains the factory benchmark version, the current online version and the most recent stable version in layers, and performs a complete rollback when verification fails.
[0038] The versioned parameter management module ensures that the online orientation selection self-calibration module, active control module, and depth calculation module work collaboratively under the same atomic parameter version; the prediction measurement vector of the active control module consists of the left and right original pixel coordinates in the candidate state, and the prediction weight matrix is determined by the inverse matrix of the matching success probability and the four-dimensional original pixel prediction covariance; the prediction covariance is directly fitted by the offline matching residual statistics, or obtained by parallax, vertical positioning, correction mapping, and target state uncertainty through complete Jacobian propagation; the candidate calibration information is projected to the weakly observable subspace after performing Shur complement elimination on the depth and target pose interference variables.
[0039] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0040] 1. This invention employs decoupled offline calibration through mechanical pre-calibration and complete zoom-extrinsic parameter joint decoupling. It uses minimal mechanical parameterization with no repeating translational degrees of freedom and sets only the breathing pose in the reference zoom state in the standard zoom arrival direction to zero, so that the hysteresis offset in the other direction can be estimated independently. Complete intrinsic parameter functions describing the changes of focal length, principal point, and distortion with the actual zoom state and zoom breathing pose functions describing the optical center breathing displacement are established respectively, thereby reducing the mutual absorption between zoom error, assembly error, and hysteresis error and reducing scale drift across the entire zoom range.
[0041] 2. This invention employs an online orientation selection self-calibration module and uses orientation-level observability analysis based on singular value decomposition of the edge information matrix of data items and independent scale anchoring items, with prior parameters not participating in observability determination; the reference camera center spacing only provides scale constraints under specified reference convergence, reference zoom, and mechanism locking states, without conflicting with real-time baseline changes caused by active convergence or zoom; simultaneously, it enhances long-term stability and physical consistency through independent verification frames and version snapshot mechanisms for atomic submission or complete rollback.
[0042] 3. This invention feeds back the weakly observable direction information output from the online calibration to the active control module. When evaluating candidate zoom and convergence states, it first performs Schur complement elimination on interference variables such as candidate depth and target pose, and then constructs the expected calibration excitation index with the edge information gain in the weakly observable subspace, and jointly evaluates it with depth Fisher information, common field of view and disparity margin. Qualified observations after execution are given priority to be sent back to the online calibration, forming a closed loop of "weak direction identification - edge information-driven excitation - parameter update verification - same version depth calculation".
[0043] 4. This invention calculates the center and relative rotation of the left and right cameras based on real-time mechanical compensation parameters and zoom breathing pose, and solves the left and right correction rotations separately, so that the optical axis directions of the two cameras are consistent after correction, the epipolar lines are horizontal and the baseline is parallel to the correction horizontal axis; the focal length-baseline-parallax formula is used only when the correction projection matrix satisfies the same focal length horizontal parallax model, otherwise general triangulation is used, thereby improving the consistency of depth calculation in the zoom and convergence dynamic adjustment process.
[0044] 5. This invention uses a versioned parameter management module to store static residual extrinsic parameters, complete zoom intrinsic parameters, breathing pose, mechanical compensation parameters and their covariance in the same atomic version. This ensures that the online self-calibration, active control and depth calculation modules strictly synchronize and reference the same parameter version. In the event of verification failure, the entire group is rolled back to the factory benchmark or the most recent stable version. Combined with the built-in anomaly detection and low-speed safety scanning mechanism, this greatly improves the robustness and safety of the system under harsh environments and abnormal operating conditions. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of the overall process of the mechanical pre-calibration and online active depth sensing method for zoom-in bionic binocular eyes of the present invention.
[0046] Figure 2 This is a schematic diagram of a sub-process in the offline calibration stage of the present invention. Detailed Implementation
[0047] The following examples are for illustrative purposes only and are not intended to limit the scope of the invention.
[0048] like Figure 1 As shown, a mechanical pre-calibration and online active depth sensing method for zoom-in bionic binoculars includes the following steps:
[0049] S1. Offline acquisition and solidification of mechanical compensation parameters, static residual external parameters, complete zoom internal parameters, and zoom breathing pose parameters.
[0050] like Figure 2 As shown, this step is implemented through offline calibration and includes four sub-steps from S11 to S14 in sequence.
[0051] It should be noted that in this step, "target 3D point" specifically refers to a marker point on the target with known geometric dimensions and precisely known coordinates, which is different from the unknown coordinate 3D landmark extracted from the natural scene in the online stage.
[0052] S11, Visual-guided mechanical pre-calibration
[0053] The lens is fixed at a reference zoom position. Using the known three-dimensional geometry of the target, the encoders for the neck and left and right eye joints, and the forward kinematics of the head and eyes, the mechanical compensation parameters that can be executed by the hardware zero point or the software compensation layer are solved and fixed. The reference zoom position is a fixed actual zoom position selected during factory calibration, generally taken as the middle of the zoom stroke or the wide-angle end; at the same time, the standard zoom arrival direction is pre-specified, and only the breathing pose in the standard direction in the reference zoom position is constrained to zero, while the hysteresis offset in the other direction at the same zoom position is retained as a parameter to be estimated.
[0054] The known-size calibration targets are arranged at at least two target distances, and the normals of at least three target postures are not fully parallel. For each posture, left and right images, neck and left and right eye encoder readings are acquired simultaneously, and independent distance values from the target to the body reference point can be acquired simultaneously. Target points are extracted using checkerboard, dot array, AprilTag or ArUco, and RANSAC and Huber kernels are used to remove or suppress abnormal observations.
[0055] Each target arrangement is defined as a fixed target group. During the acquisition within the group, the target remains rigid relative to the body and does not move, or its position and pose are locked in real time by a total station, laser tracker or positioning reference. The same target and body position and pose are shared in the same group of observations.
[0056] For each joint to be calibrated in the neck and left and right eyes, a single joint scan is first performed, followed by at least two sets of combined movements with non-collinear rotation axes. At least three distinct positions are acquired for each joint: reference zero position, positive angle, and negative angle. The observation corresponding to the offset of the rotation axis from the optical center must include the angular change around that rotation axis.
[0057] After performing Schur elimination using the target pose and reference intrinsic parameters as disturbance variables, a mechanical parameter edge information matrix is constructed solely from the residuals of the target reprojection data. Parameter priors, mechanical limit penalties, and physical range constraints are not included in the full-rank and condition number determination. Mechanical parameter solving is only initiated when the information matrix of this data item is full-rank and the condition number does not exceed a threshold; otherwise, joint excitation configurations are added according to the parameter direction corresponding to the minimum singular value, rather than simply adding the target image.
[0058] Define the minimum mechanical parameter vector with no repeating translational degrees of freedom. The joint zero-position offset and the installation roll offset are respectively denoted as... , The binocular lateral and vertical differences are respectively determined by the baseline correction amount. and height difference This indicates the offset of the left and right rotation axes from the optical center. Apply , The parameterized constraints ensure that the same lateral or vertical differential translation is not represented repeatedly. Define the mechanical pre-calibration state. ,in For reference, the camera's intrinsic parameters in zoom mode, For the first Assemble the target to the body position.
[0059] The objective function for mechanical pre-calibration is:
[0060]
[0061] The difference between the measured pixels and the theoretical projected pixels of the target's three-dimensional points constitutes the principal residual, which is the core residual term with the highest weight and the dominant constraint in the optimization objective.
[0062] In the formula: Number the observation groups. Number the target points. Number the left and right cameras. For the first The actual angles of the neck and eye encoders corresponding to the group observations. A three-dimensional point with known metric coordinates in the target coordinate system; This is a transformation from camera to body, therefore Transform the target points to the camera coordinate system; For projection functions that include radial and tangential distortions, These are actual measured pixels. This is the Huber robust kernel function. It is used only for numerical regularization and is not included in the determination of the identifiability of mechanical parameters. and Separately restrict mechanical limits and common field of view.
[0063] The known distance between target points is directly fixed on the measurement scale. When setting independent ranging, the residual difference between the predicted target distance and the measured distance is added. Mechanical precalibration does not use a fixed horizontal reference parallax that is universal across target distances or zoom levels. The horizontal pixel relationship is predicted by the intrinsic parameters, pose, and target geometry.
[0064] Fix the first set of target poses or constrain them to the measured body pose to eliminate coordinate norm degrees of freedom; after performing Schuler elimination on the target poses and reference intrinsic parameters, use the dimensionally normalized data item mechanical parameter edge information matrix to check the rank and condition number. No parameter priors should be used to artificially transform the originally rank-deficient observation data into full-rank data.
[0065] The parameters are fixed only when the root mean square error of image reprojection, median vertical parallax, common field of view ratio, and physical range of mechanical parameters all meet the acceptance threshold. The threshold is pre-configured by camera resolution and mechanism accuracy. If it is not met, the target distance or attitude is increased and the solution is recalculated. When the rank or condition number of the mechanical parameter information matrix is not qualified, the joint excitation angle or combined motion that can change the corresponding Jacobian is added first. If necessary, the target distance and target attitude are added.
[0066] The final output uses the above minimal parameterization to represent joint zero-position compensation, left and right mounting roll compensation, binocular height difference compensation, baseline correction, left and right eye axis to camera optical center offset correction, and their covariance; the difference components represented by the baseline correction and height difference are no longer represented by the left and right optical center offsets. Natural texture features are only used for rotational errors and epipolar consistency verification and do not participate in the independent determination of the above metric parameters.
[0067] S12, kinematic modeling, introduction of static residual external participation in zoom breathing pose
[0068] This article adopts a consistent style This indicates changing the coordinates from the coordinate system. Transform to coordinate system .make This represents the transformation from camera to body. This represents the transformation from target to organism. This represents the transformation from the organism to the world; , and Multiply the first and last parameters in this direction. The mechanical compensation parameters obtained from S11 are then written into the head-eye kinematics chain, and static residual extrinsic parameters independent of zoom and breathing pose that repeatedly changes with zoom state are introduced sequentially after the left and right camera mounting references.
[0069] For the camera ,by Indicates the actual angle of the cervical joint. Indicates the actual angle of the corresponding ocular joint. This indicates the lens position feedback or the actual zoom position after zeroing verification. Indicates the direction of zoom movement, defining the real-time camera-to-body transformation as:
[0070]
[0071] In the formula: This is a transformation from head to body. The transformation from the base of the eyeball to the head. The transformation from the camera mounting reference to the eyeball base all adopts the aforementioned unified direction; For static six-DOF residual extrinsic parameters independent of zoom state, The Lie algebraic breathing posture is caused by zooming and is repeatable for the same actual zoom position and direction of movement. For Li, the algebraic number is... The exponential mapping.
[0072] Only the direction reached by the standard zoom At the reference zoom position Breathing posture return and set The value of the reverse branch at the same position is retained as a hysteresis offset. Both must not be set to zero simultaneously. Non-repetitive minute vibrations are not written into the breathing function, but are handled by online observation noise and quality gating.
[0073] S13. Establishment of a zoom breathing pose model that integrates independent and complete left and right zoom functions.
[0074] Complete intrinsic parameter functions and zoom breathing pose functions for the left and right lenses in the forward and reverse zoom directions are established respectively. The complete intrinsic parameters no longer use a single effective focal length to replace the principal point and distortion changes.
[0075] For the camera , zoom movement direction ,definition:
[0076]
[0077]
[0078] In the formula: , For the effective focal length in both horizontal and vertical directions, , Principal point coordinates to The radial distortion coefficient is... , The tangential distortion coefficient; , , The three-dimensional rotational increment caused by photocentric respiration. , , This represents the three-dimensional translational increment caused by photocentric respiration.
[0079] Zoom movement direction From adjacent effective actual zoom positions The sign of the difference is determined; when the position change is less than the direction retention threshold, the previous valid direction branch is used. Lens drive commands, motor voltages, or gear commands are only auxiliary quantities and do not directly replace the actual zoom position in the geometric model.
[0080] and It can be represented by B-splines, piecewise polynomials, or lookup table interpolation, and can share zoom sampling nodes while using independent coefficients. When represented by cubic B-splines, the nodes are evenly distributed along the zoom range. The number of nodes is determined by the zoom range and the calibration sampling density. The typical configuration is 10 to 30 nodes, and the parameters at the nodes are directly fitted by the sampling observations.
[0081] Each zoom sampling node arrives from both wide-angle to telephoto and telephoto to wide-angle directions and is sampled after the lens position feedback stabilizes to identify hysteresis branches; the breathing pose of the normalized direction at the reference node is fixed at zero, while the other direction retains an independent hysteresis offset at that node.
[0082] Apply first-order and second-order difference smoothing constraints to each directional branch. After commutation, maintain the previous stable parameter version within the lens stabilization time, and switch to the new directional branch after stabilization.
[0083] Depend on Generate the current intrinsic parameter matrix and distortion vector, by Generate the current breathing pose transformation; , and The actual zoom position corresponding to the same timestamp and direction Read and provide it as an indivisible, same-version parameter to the projection, calibration, online update, and active control modules.
[0084] S14. Decoupling of Static Extrinsic Parameters and Complete Zoom Response under Solidified Mechanical Constraints for Joint Optimization
[0085] By integrating multi-pose, multi-zoom, multi-direction, and multi-distance target observations, the mechanical compensation parameters fixed by S11 are used as head-eye kinematic constants. The static residual extrinsic parameters, complete zoom intrinsic parameters, and zoom breathing pose are jointly solved, and the free allocation between parameters is eliminated by normative constraints.
[0086] To control the bionic binocular vision across the entire zoom range, encompassing both forward and reverse directions, multiple convergence postures, at least two target distances, and multiple target postures with non-parallel normals, the global optimization state is defined as follows:
[0087]
[0088] In the formula: The mechanical compensation parameters are those of S11 that have been cured and remain unchanged in this step. For the static six-DOF residual extrinsic parameters of the left and right cameras to be optimized, For the complete zoom intrinsic parameter function coefficients, For the zoom breathing pose function coefficients, For the i-th group of target to body pose, except for the first group which is fixed as the standard reference, the rest are used as auxiliary variables for optimization.
[0089] Fixed first group Only for the standard direction set up The hysteresis offset in the other direction at the reference position is used as an estimable parameter; and the scale residual is formed by the known distance between target points or independent distance measurement to eliminate coordinate normalization, static / breathing pose assignment and metric scale degrees of freedom respectively.
[0090] The theoretical projection and reprojection residuals of target point j on camera c in the i-th observation group are:
[0091]
[0092]
[0093] in These are actual measured pixels. , , , These are the neck angle, corresponding eye angle, actual zoom position, and zoom direction at the same timestamp; the above formula strictly follows the camera-to-body transformation and inverses the transformation to transform the target point in the body coordinate system to the camera coordinate system.
[0094] The objective function for multi-constraint joint optimization is:
[0095]
[0096] In the formula: the first term is the reprojection term of the target points of the left and right cameras. For encoder kinematic consistency terms, The metric relationship between fixed focal length scale, scene scale, and binocular translation. Suppress non-physical mutations in branches in all directions; Only includes the standard direction And the first set of target pose fixed constraints, the hysteresis offset of the reverse branch reference position is not set to zero; Constraining common field of view, It is used only as a numerical regularization term after passing the data identifiability check.
[0097] Each residual is normalized to the nominal standard deviation of pixels, radians, millimeters, and dimensionless distortion coefficients before weighting; the information matrix used for rank, condition number, and observability determination is formed only by data residuals such as reprojection, kinematic consistency, and independent scale measurement, without parametric priors, smoothing priors, or physical range penalties, to avoid priors masking the true rank deficiency.
[0098] A sparse nonlinear optimizer with a trust region is used for iterative solution. Convergence is determined when the relative cost decreases, the parameter step size and the dimensional normalized gradient are all below the threshold.
[0099] The joint calibration result is accepted only when the marginal information matrix of the data item after removing the standard degrees of freedom and eliminating interference variables such as target pose reaches the preset rank sum condition number threshold, the observation reprojection error is lower than the threshold, and all parameters are within the physical range; the covariance is calculated by the second-order approximation of the data item and the effective independent scale measurement, and the parameter prior is only used for stable numerical solutions.
[0100] After accepting , , , Its covariance, reference zoom state, standard arrival direction, reverse branch hysteresis offset, direction determination threshold, and function normalization range are fixed as an indivisible factory baseline version; online incremental versions must not overwrite the factory version.
[0101] S2, Synchronous Multi-Source Data Acquisition
[0102] The system synchronously acquires images from the left and right cameras, the actual angles of the encoders for the neck and left and right eye joints, the actual zoom positions of the left and right lenses, and the zoom movement direction. The zoom drive command is used as an auxiliary quantity, and all data is bound to a unified timestamp.
[0103] Specifically, a hardware synchronous timing bus is used to achieve parallel sampling of binocular images, neck and eye encoders, lens position feedback, and zoom drive signals, with the timing alignment error of multi-source data controlled within 1ms. The actual zoom position in the geometric model is preferentially obtained from feedback by the lens position encoder, Hall sensor, or potentiometer; when there is no independent position sensor, a motor step count estimation with zero-return verification and no missed steps is used, and it is only used after the positioning and stability detections are passed. Control voltage, gear number, or normalization command cannot be used as the sole lens state. All sensor data are bound to microsecond-level hardware timestamps.
[0104] The device features two working modes: offline batch calibration acquisition and online 30Hz real-time streaming output. During the acquisition process, it automatically identifies and filters invalid image frames such as overexposure, underexposure, motion blur, severe motor vibration, and lens misalignment, and only outputs valid time-series data packets for subsequent calibration and sensing processes. The camera can be selected from global shutter camera, synchronous trigger camera, and event camera. The zoom lens supports multiple hardware communication interfaces such as V4L2, serial port, USB, I2C, SPI, CAN, Ethernet, and PWM.
[0105] S3, Online Incremental Self-calibration Update
[0106] This step maintains a sliding window of time-series keyframes, jointly estimating the keyframe body pose, 3D landmarks, and calibration increments for image observation. "3D landmarks" specifically refer to unknown coordinate 3D points extracted from the natural scene and obtained through multi-frame feature matching, which is different from the target 3D points with known coordinates on the calibration target in the offline stage. After Schuler elimination of interference variables, the allowed parameter directions for updating are determined based on observability analysis. Scale-related directions are selectively enabled or suppressed according to the scale anchoring state. Candidate parameters are obtained by solving for calibration parameter increments along the allowed directions. After verification by independent verification frames, the results are submitted; otherwise, the system reverts to the snapshot before the update. Weakly observable direction information is also output.
[0107] This embodiment uses the sliding window bundle adjustment (BA) method as the main embodiment for online self-calibration. The specific execution process is as follows:
[0108] Sliding window maintenance: A first-in-first-out (FIFO) keyframe sliding window is set up, with a typical window size of 20-50 frames. In this embodiment, a typical value of 20 frames is used. Time-series valid observation frames output by S2 are continuously stored. A keyframe replacement strategy is adopted to ensure the diversity of pose, zoom level, and scene distribution within the window. Keyframe replacement employs an information gain optimization strategy: the pose diversity, zoom level difference, and scene texture increment of the new frame relative to the current window are calculated. Replacement is performed when the overall information gain exceeds that of the keyframe with the lowest information gain within the window, ensuring the heterogeneity of window observations and avoiding a decrease in parameter observability due to observation homogenization.
[0109] Quality gating screening: Valid observation frames are screened through four quality gating mechanisms. In this embodiment, the typical gating thresholds are: number of valid matching points > 80, single-frame reprojection error ≤ 1.2 pixels, median vertical parallax ≤ 0.8 pixels, and image texture score ≥ 60 points. Additional auxiliary judgment conditions are also provided: normal image exposure, no high-speed vibration of the motor, and effective depth ratio ≥ 70%. Only when all conditions are met can an observation be considered valid.
[0110] The window state vector is defined as ,in The position and posture of the organism relative to the world are represented by the unified conventions in this article. The three-dimensional landmarks are used in the world coordinate system, and the remaining variables are calibration increments relative to the current stable version. Independent scale anchoring includes targets of known size, external ranging, known structural dimensions, or the reference camera center distance measured from an external length reference under reference convergence angle, reference zoom position, and mechanism locking conditions.
[0111] When independent scale anchors exist, online optimization should enable at least one of the following anchor residuals:
[0112]
[0113]
[0114]
[0115] in To specify the camera in reference convergence, reference zoom, and locked states. The light core, This represents the camera center-to-center distance measured from an external length reference under this condition. This residual only constrains the scale of the reference state; real-time center-to-center distance changes caused by active convergence and zoom breathing are predicted by kinematic and breathing models and are not forced to be equal to this value. .
[0116] All effective anchoring residuals are summarized as follows: And update the online objective function to Do not add when there is no effective anchoring observation. item.
[0117] The reprojection residual of camera c to landmark l and the online objective function in the k-th keyframe are:
[0118]
[0119]
[0120] In the formula, These are the actual measured pixels; Static residual extrinsic parameters are perturbed by the right perturbation. The respiration function is updated using coefficients. Then calculate from the complete kinematic chain. The pose matrix is not used. The method involves element-wise addition. Landmarks participating in optimization must have binocular simultaneous frame observations or temporal observations of at least two keyframes.
[0121] The magnitude of a single parameter update is limited according to the physical quantity. If the parameter increment exceeds the limit, the update is not discarded directly. Instead, the step size is reduced proportionally along the same gradient direction, and the increment is resolved with the maximum allowable magnitude as the upper limit. If the step size still fails to pass the verification after reduction, the candidate update is deemed invalid and the current stable version is retained.
[0122] Specifically, the linearized normal equations are represented in blocks according to the calibration variables and disturbance variables as follows:
[0123]
[0124] Where the subscript c represents the calibration variable, and the subscript n represents the interference variable (keyframe body pose and 3D landmarks). , , , For the corresponding blocks of the Hessian matrix, , This represents the corresponding block of the gradient vector.
[0125] Schuler elimination was performed on the interference variables to obtain the calibration parameter edge information matrix:
[0126]
[0127] In the formula, This is the calibration parameter edge information matrix consisting only of the reprojection data residuals and the current effective independent scale anchoring residuals. This represents a pseudo-inverse or equivalent damped sparse solution controlled by a rank threshold. If the anchored residual depends on both the calibration variable and the disturbance variable, its Jacobian is entered into... , , and The corresponding blocks, instead of just adding .
[0128] The final candidate parameter solution can be superimposed with finite amplitude priors and damping terms, but the matrix used for singular value decomposition, rank judgment, condition number calculation, weak direction extraction and scale direction permissibility judgment always adopts the above data term edge information matrix; no parameter prior should determine the direction that is not observable in the data itself as observable.
[0129] Construct a scaling matrix using the standard deviation of the offline benchmark parameters ,right Dimensional normalization is performed, and the calibration variables are divided into six parameter blocks: static rotation, static translation, focal length scale, principal point and distortion, breathing rotation, and breathing translation. Singular value decomposition or equivalent orthogonal decomposition is then performed on the matrix to obtain the result satisfying the following conditions. The column vectors form the updatable projection matrix. When there is no independent scale anchor, the static translation, focal length scale, and breathing translation direction are set to zero; even when scale anchor is configured, updates are only available for scale feature directions that satisfy the threshold of the anchored Jacobian projection.
[0130] The feature vectors that are below the update threshold but above the zero threshold are combined. After eliminating unanchored scale directions using a scale-permitted mask, a weak-direction projection matrix is constructed. :
[0131]
[0132] This matrix represents the calibration parameter subspace that cannot be robustly updated under the current observation conditions but has potential excitation value; that is, the weakly observable direction information output in this step. Given a vector of length equal to the number of weak eigenvectors, for each weak eigenvector, calculate its projection proportion in the subspaces of scale-related parameters such as static translation, focal length scale, and breathing translation. If the proportion exceeds a preset threshold and there is currently no independent scale anchor, the corresponding element is set to 0; otherwise, it is set to 1. The weak direction projection matrix is formed by the diagonal matrix of the scale-permitted mask. Including the current covariance passed to S4, the typical range of the numerical zero threshold is... If no eigenvectors satisfy the conditions, then The zero matrix corresponds to an expected calibration information gain of 0.
[0133] Save before solving , , The current version snapshot of the covariance is solved, and the comprehensive verification cost is calculated on the verification frames that are not involved in the optimization. When there is a scale anchor, it is the absolute depth error. When there is no scale anchor, it is replaced by the left and right and time geometric consistency errors. The new version is submitted only when the comprehensive verification cost decreases beyond the acceptance margin, all increments are within the physical range, and the common field of view and mechanical limits are qualified. Otherwise, the entire set of snapshots is restored.
[0134] Depth confidence is generated by fusing multiple dimensions of information, including parallax consistency, left-right cross-checking, reprojection error, matching cost, zoom stability, and calibration residuals. The value ranges from 0 to 1, and only depth results with a confidence level ≥ 0.6 participate in the update feedback. The confidence threshold used for this calibration update is higher than the determination threshold of effective pixels in the depth map, ensuring the robustness of online parameter updates with stricter constraints.
[0135] The sliding window BA solution is executed asynchronously, decoupling the calculation cycle from the control cycle. The weak direction projection matrix and parameter version adopt a double buffering mechanism, continuously using the previous stable version until the new version is solved. There is no waiting delay in the control link. New keyframes are queued in the order of arrival. The single frame solution time budget is controlled within 30ms. If it exceeds this, the number of sampling landmarks is automatically reduced to ensure real-time performance.
[0136] In this application, "same atomic parameter version" means that all calibration parameters (including static residual extrinsic parameters, full zoom intrinsic parameter function coefficients, zoom breathing pose function coefficients, mechanical compensation parameters and their covariance) used for projection, optimization, correction and active control at the current moment have the same version number and timestamp, and are referenced synchronously by each module as an indivisible whole. Any update of a sub-parameter must be submitted or rolled back on the basis of the entire set of parameters, and partial updates are prohibited, thereby avoiding inconsistencies in calculations caused by asynchrony.
[0137] S4, Adaptive Joint Control of Focal Length and Convergence Angle
[0138] This step generates multiple candidate control states with different actual zoom positions of the left and right lenses and / or different left and right eye convergence angles. Combining the complete zoom calibration, real-time head-eye kinematics, and target depth range under the candidate states, the depth measurability index and the expected calibration excitation index along the weakly observable direction are calculated. After comprehensive utility evaluation, the optimal candidate state is selected as the control output. The lens drive command is only used to reach the candidate actual zoom position. The qualified observations generated by the executed candidate are preferentially sent back to S3, forming a closed-loop coordination driven by calibration uncertainty.
[0139] Specifically:
[0140] Robust master depth input: The default reference depth for initial sensing is 1.5m, which can be configured according to the typical working distance of the device. During cyclic operation, the robust master depth of the target area output in the previous round is used as the input.
[0141] Candidate set generation: Representing the m-th candidate state, the set of support points is obtained by uniformly sampling from the boundary, corners, and interior of the target region. The depth sampling set is obtained using the robust principal depth and its confidence interval. For each candidate call , And head-eye kinematics, exist The spatial assumption above is projected onto the left and right images.
[0142] Specifically, using the homogeneous pixels of the current left-corrected image and axial depth assumption Construct a 3D point, where the current calibration intrinsic parameter is used to recover the ray in the calibration coordinate system. The inverse calibration rotation transforms the ray back to the current left camera coordinate system. Then, the 3D point in the body coordinate system is obtained by transforming from the current left camera to the body. If the target's motion relative to the body is negligible within the candidate execution delay, the point is used directly. If it is not negligible, the constant velocity pose prediction of the target tracker is used for propagation first.
[0143] The projections of the left and right candidate cameras are calculated separately, and the disparity is obtained after candidate correction mapping. This uniquely determines the common field of view, horizontal disparity, and predicted vertical disparity.
[0144] Common field of view percentage The weighted ratio of support points that simultaneously fall within the effective imaging regions of both left and right distortion correction, and the parallax range. Calculated from the exact corrected projection matrix of the candidate state, To ensure parallax safety margin, any mechanical axis exceeding its limit... Candidates that are insufficient or whose parallax exceeds the limit will be removed.
[0145] Depth measurability metric calculation: For the retained candidate states, accumulate depth Fisher information according to the target region and depth interval:
[0146]
[0147] The depth Fisher information, along with the common field of view percentage and parallax safety margin, constitutes the depth measurability index set in this embodiment, used to quantify the accuracy and reliability of stereo depth measurement in candidate states. To utilize the disparity true value error in the offline retained image to fit a lookup table model or regression model and bin it according to texture, blur, zoom state and vertical disparity, the output value is limited to a preset positive range. Vertical disparity is used as an input variable, mainly to characterize the epipolar offset caused by calibration residuals and mechanical vibration. When the residual error exists, it can effectively correct the disparity noise estimation and avoid noise underestimation under the ideal correction assumption.
[0148] Candidate textures are obtained by resampling the current local image patch according to the candidate projection scale using normalized gradient energy. Candidate blur is obtained by multilinear interpolation of the point spread function table acquired offline based on the left and right zoom positions, zoom speed, eye angular velocity, and assumed depth.
[0149] The label for offline disparity noise samples is the difference between the estimated disparity and the true disparity calculated from the known depth and known baseline. Independent validation samples are retained for each zoom direction branch and working depth interval. Only models with validation errors below the factory threshold are written into the parameter version.
[0150] Calculation of expected calibration incentive index: for candidate states and depth hypothesis Define the prediction measurement vector Its four components are the two-dimensional projection coordinates of the left and right original images; candidate interference variables It must include at least the inverse depth of the target point, and, if the target's motion relative to the body is not negligible, its pose or motion state. Definition , .
[0151] Prediction weights are no longer determined by a single disparity variance. The relation directly replaces the four-dimensional original pixel covariance. For each candidate state, the four-dimensional original pixel prediction covariance... Offline left-right matching residual joint statistics are used to directly fit the data by binning based on texture, blur, actual zoom position, directional branch, and vertical residuals; or... Parallax, vertical positioning, correction mapping, target depth, and pose uncertainty are addressed through a complete Jacobian. Propagate to the original four-dimensional pixel coordinates and use a positive definite lower bound matrix. Prevent pathological weights.
[0152] The expected calibration information gain of the projection matrix of the candidate state along the weak direction is:
[0153]
[0154] in Indicates calibration parameters, This represents interfering variables such as candidate depth, target pose, or motion state. For each depth, it is assumed that interfering variables are first eliminated, and then normalized depth weights are applied. Accumulate the results to obtain the candidate calibration edge information matrix:
[0155]
[0156]
[0157]
[0158] In the formula, This is a non-negative damping mechanism used solely for eliminating candidate disturbance variables. This indicates a pseudo-inverse or an equivalent stable solution. This represents the probability of a successful match for a candidate. satisfy ; This is the weak orientation projection matrix output by S3 and processed by scale-permitted masking. The expected calibration excitation index measures the net information gain provided by the candidate control action to the weakly observable calibration orientation after it cannot be explained by changes in candidate depth or target pose. After execution, only the actual left and right pixel observations are sent back to S3 as priority keyframes, and the sliding window jointly estimates landmarks and independently verifies parameter updates.
[0159] Overall utility assessment: Calculated for the m-th compliance candidate state:
[0160]
[0161] In the formula: The normalized value of the mechanism's adjustment time is defined as follows: ,in The mechanism adjustment time required to switch from the current execution state to the candidate control state (including zoom motor travel time and eye / neck motor angle rotation time). and These are the minimum and maximum values of the mechanism adjustment time obtained from offline calibration, and they are fixed with each parameter version. ; , The fixed boundaries obtained by offline coverage workspace calibration and solidified with parameter version are not used; the maximum or minimum value of the current candidate set is not used. To normalize the calibrated information gain, the explicit normalization formula is as follows: ,in , This is a fixed boundary obtained from offline coverage workspace calibration and fixed with each factory parameter version. This weighted combination, which is the comprehensive utility function in this embodiment, integrates depth measurability metrics and expected calibration incentive metrics, achieving joint optimization of current depth perception quality and subsequent calibration observability.
[0162] to All weights are non-negative, and The typical weight value is It can be adjusted within ±0.05 according to the task's emphasis on depth accuracy, response speed and calibration gain. The common field of view ratio, matching failure probability, control variation and normalized calibration information gain are all in the range of zero to one.
[0163] The weighted sum of the travel changes of the four execution axes relative to the current state divided by their respective full travels is given. The four execution axes refer to the actual zoom position of the left lens, the actual zoom position of the right lens, the left eye convergence angle, and the right eye convergence angle.
[0164] To match the failure probability, where The proportion of support points where parallax is close to the upper and lower limits. The output is calculated by a logistic regression or ordinal-preserving regression model fitted using offline success / failure matching labels. After reliability calibration, the output is limited to [0,1]. The failure matching label is defined as follows: 1 when there is no valid corresponding point, the left-right consistency error exceeds one pixel, or the reprojection error exceeds two pixels, otherwise 0.
[0165] The parallax noise model and the matching failure model are saved with the factory parameter version. A new statistical model version is generated online only when the cumulative sample size exceeds the threshold, the validation set error decreases, and the parameter change is below the slow update threshold; otherwise, the factory model is retained.
[0166] The focal length and convergence angle corresponding to the maximum utility value are selected as candidate outputs. Control switching is only performed when the increase in utility value relative to the current state exceeds a preset threshold and the time since the last control switch exceeds the minimum dwell time; otherwise, the previous state is maintained. In this embodiment, the typical value of the utility increase threshold is 5%, and the typical value of the minimum dwell time is 0.5s, which can be adjusted according to the device response speed and scene dynamics. If the compliant candidate set is empty, the system automatically enters the safe default state of wide-angle and low convergence. After the control action is completed and stabilized, the first set of observations that meet the quality gating is assigned a higher keyframe priority and sent to S3 to verify the actual information gain of the action in the weakly observable direction.
[0167] The symmetric convergence geometry formula is only used to generate the initial center values of the candidate set:
[0168]
[0169] In the formula, The camera center spacing is for reference. To ensure robust master depth, the final left and right convergence angles are still determined by the projection results of candidate states, including the offset from the rotation axis to the optical center, static residual extrinsic parameters, and zoom breathing pose.
[0170] S5, Deep Computation and Perception Closed Loop
[0171] The system retrieves real-time calibration parameters to generate left and right correction projection matrices, completes binocular correction, stereo matching, and triangulation, and outputs a depth map with confidence. The depth results are fed back to the next round of focal length and convergence angle calculation, forming an active depth perception closed loop.
[0172] Specifically:
[0173] Correction projection matrix generation: read from the actual angles of the neck and eyes, the actual zoom position, and the directional branches at the same timestamp. , and Calculate the real-time relative pose from the right camera coordinates to the left camera coordinates. and the distance between the center of the camera .
[0174]
[0175]
[0176] Solve the left camera correction rotation separately And right camera correction rotation :make Aligned with the horizontal axis of the calibration coordinate system, and let This ensures that the two cameras achieve the same pose and horizontal epipolar lines after correction. This is determined by the left and right current intrinsic parameters, distortion correction mapping, common output range, and correction intrinsic parameters. Construct the left and right correction mappings and projection matrices respectively; when the left correction camera is used as a reference... , It is not permissible to use a single [method / method]. It simultaneously replaces the correction rotation of both left and right cameras.
[0177] Binocular correction and matching: Image distortion correction and epipolar correction are completed based on a complete set of calibration parameters; ORB, SIFT and other feature point matching algorithms are used in sparse scenes, and dense stereo matching algorithms such as semi-global matching (SGM) and block matching (BM) are used in dense scenes.
[0178] Depth triangulation calculation: Under the above-mentioned horizontal epipolar correction conditions, the target depth is calculated based on the horizontal disparity of the corrected matched pixels using the following formula:
[0179]
[0180] In the formula, The horizontal focal length used for both left and right correction projection matrices. symbols and The baseline direction is consistent throughout. This method is only used after distortion correction, horizontal epipolar correction, and left / right focal length consistency are achieved, and the corrected projection matrix is in the standard form described above. If none of the conditions are met, homogeneous linear triangulation is performed directly using the actual left and right correction projection matrices, and nonlinear refinement is performed by minimizing the reprojection error.
[0181] Depth confidence and robust master depth calculation: The depth confidence fusion method is the same as in step S3. It is generated by fusing indicators such as parallax consistency, left-right cross-check, reprojection error, matching cost, zoom stability and online calibration residual. Pixels with a confidence score > 0.5 are marked as valid pixels, and low-confidence areas are masked.
[0182] Define the set of effective pixels in the target region, where the ROI is the target detection region, the task-specified region, or a preset region in the center of the image. Calculate the confidence-weighted median depth of the target region and obtain the robust principal depth through time smoothing.
[0183]
[0184] In the formula, This is a smoothing coefficient, typically ranging from 0.3 to 0.6; when the effective pixel percentage of the target area is less than 30%, Automatically adjust to 0.1~0.2 to enhance smoothness and suppress noise fluctuations. Do not update when the effective pixel percentage is below a preset threshold. The system maintains the previous stable value; when there are multiple consecutive frames without effective depth, the system enters a low-speed safety scan and calibration verification process.
[0185] Closed-loop feedback: Robust principal depth is fed back to S4 as input for the next round of focal length and convergence angle calculations, forming a complete active depth sensing closed loop. The weakly observable direction information output from S3, the parameters used for candidate evaluation in S4, and the correction triangulation parameters in S5 must have the same atomic version number; data packets with inconsistent versions are discarded and recalculated. The meaning of atomic version is consistent with the definition in S3.
[0186] The system has built-in anomaly recovery logic. When vertical parallax exceeds the standard, field of view is insufficient, effective depth ratio is too low, or calibration residual divergence occurs continuously, it will automatically revert to stable factory reference parameters and perform low-speed safety scanning and mechanical pre-calibration verification.
[0187] This invention also provides a mechanical pre-calibration and online active depth sensing system for a zoom-in bionic binocular eye, including an image acquisition module, a motion control module, a mechanical pre-calibration module, a complete zoom-extrinsic parameter joint calibration module, an online orientation selection self-calibration module, an active control module, a depth calculation module, and a versioned parameter management module.
[0188] The image acquisition module is used to simultaneously acquire left and right binocular images, the actual angles of the neck and left and right eye joint encoders, the actual zoom positions of the left and right lenses, and the zoom movement direction. The zoom drive command is used as an auxiliary quantity and bound to a unified timestamp.
[0189] The motion control module is used to read joint encoder data and superimpose software compensation to drive binocular convergence, pitch, yaw and neck posture, and monitor mechanical limits;
[0190] The mechanical pre-calibration module is used to establish the minimum mechanical compensation parameter vector with no repeating translational degrees of freedom, and to solve the mechanical compensation parameters based on the target three-dimensional points, the actual readings of the neck and left and right eye encoders, and the head and eye forward kinematic projection model.
[0191] The complete zoom-extrinsic parameter joint calibration module is used to establish complete intrinsic parameter functions and zoom breathing pose functions for the left and right lenses in the forward and reverse zoom directions respectively. The mechanical compensation parameters output by the mechanical pre-calibration module are used as constants. Reference zoom zero breathing constraints are applied only to the standard zoom arrival direction. The static residual extrinsic parameters, zoom function coefficients and target pose are jointly optimized, and the factory reference parameter version with covariance is output.
[0192] The online direction selection self-calibration module maintains the sliding window and performs Schur complement elimination on the normal equations. It generates a direction-level update projection matrix based on the edge information matrix of data terms without numerical regularization priors and independent scale anchoring terms. It freezes the corresponding directions according to the scale anchoring conditions, submits or rolls back the parameter version according to the independent verification frame results, and outputs weakly observable direction information.
[0193] The active control module calls the complete calibration parameters to calculate the depth measurability index under the candidate actual zoom position and convergence angle. After performing Schur complement elimination on the candidate depth and target pose disturbance variables, it calculates the expected calibration excitation index along the weakly observable direction. After comprehensive utility evaluation, it outputs the optimal control state and marks the qualified observations generated after execution as priority keyframes to be sent back to the online direction selection self-calibration module.
[0194] The depth calculation module generates left and right correction rotation and correction projection matrices based on the real-time poses of the left and right cameras, respectively, performs distortion removal, binocular correction, stereo matching and triangulation, and outputs a depth map with confidence mask and robust master depth.
[0195] The versioned parameter management module stores static residual extrinsic parameters, complete zoom intrinsic parameters, zoom breathing pose, mechanical compensation parameters, and covariance using the same version of atomic storage. It hierarchically retains the factory baseline version, the current online version, and the most recently stable version, and performs a complete rollback when verification fails. The versioned parameter management module ensures that the online orientation selection self-calibration module, active control module, and depth calculation module work collaboratively under the same atomic parameter version. The active control module uses the covariance predicted by four-dimensional raw pixels to construct weights and calculates the expected calibration excitation index on the weakly observable subspace after performing Shur complement elimination on the candidate depth and target pose disturbance variables.
[0196] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A mechanical pre-calibration and online active depth sensing method for a zoom-in bionic binocular eye, characterized in that, include: S1. Under the reference zoom state, based on the head-eye forward kinematic projection model with mechanical compensation parameters, the principal residual is constructed by the difference between the measured pixels and the theoretical projected pixels of the target's three-dimensional points. Based on offline acquisition of multi-pose target observations under the reference zoom state, the mechanical compensation parameters are solved by the minimum mechanical parameter vector with no repeated translation degrees of freedom. Then, multi-pose, multi-zoom, and multi-distance observations are acquired in the forward and reverse zoom directions, and the static residual extrinsic parameters, complete zoom intrinsic parameter functions, and zoom breathing pose functions are jointly solved. By applying the reference zoom zero breathing constraint and the known scale constraint only to the pre-specified standard zoom arrival direction, the static residual extrinsic parameters, zoom intrinsic parameter changes, and the two-direction optical center breathing displacement are separated and solved. S2. Online synchronous acquisition of images from left and right cameras, actual angles of the neck and left and right eye joint encoders, actual zoom positions of left and right lenses, and zoom movement direction, using zoom drive commands as auxiliary quantities, and binding the above data to a unified timestamp; S3. Maintain a sliding window containing keyframe body pose, 3D landmarks, and calibration parameter increments. Perform Schur complement elimination on the normal equations constructed by the sliding window to eliminate body pose and 3D landmark variables. This yields a calibration parameter edge information matrix consisting of observation data residuals and independent scale anchoring residuals, without prior terms used only for numerical regularization. Based on the observability analysis of this matrix, determine the allowed parameter update directions. Selectively enable or suppress scale-related update directions according to the scale anchoring state. Solve for the calibration parameter increments along the allowed directions to obtain candidate parameters. Submit the parameters after verification by independent verification frames; otherwise, revert to the previous version snapshot. Simultaneously, output the weakly observable direction information. S4. Generate multiple candidate control states with different left and right actual zoom positions and / or different left and right eye convergence angles. For each candidate state, call the complete calibration model and calculate the depth measurability index. Construct predictive measurements to divide the Jacobian information of calibration parameters, candidate depth, and target pose interference variables into blocks. Perform Schur complement elimination on the interference variables to obtain the candidate calibration edge information matrix. Project this matrix onto the weakly observable direction to calculate the expected calibration excitation index. After comprehensive evaluation, select the optimal candidate state as the control output. Qualified observations generated by the executed candidate state are preferentially sent back to S3. S5. Calculate the relative pose of the left and right cameras based on the real-time calibration parameters, solve the left camera correction rotation, right camera correction rotation and corresponding correction projection matrix respectively, so that the two cameras have the same pose after correction and the line connecting the camera centers is parallel to the horizontal axis of the correction coordinate system, complete stereo matching and triangulation, output a depth map with confidence, and feed the depth result back to S4 to form a closed loop; S3 to S5 are executed under the same atomic parameter version.
2. The method according to claim 1, characterized in that, Step S1 executes the following sub-steps in sequence: S11. Fix the lens in the reference zoom state. Based on the known target three-dimensional points, the actual readings of the encoders of the neck and left and right eye joints, and the head-eye forward kinematics model, establish the binocular projection residual that is explicitly dependent on the mechanical compensation parameters. Use the minimum parameterization with no repeating translation degrees of freedom to solve the mechanical compensation parameter vector composed of joint zero position offset, installation roll offset, binocular height difference, baseline correction, and offset from the eyeball rotation axis to the camera optical center. The baseline correction and binocular height difference are not repeated in the corresponding differential components of the left and right optical center offsets. S12. Write the mechanical compensation parameters obtained in S11 into the head-eye kinematics chain, and introduce static six-degree-of-freedom residual transformation that is independent of zoom and breathing pose transformation that changes with the actual zoom position and zoom direction of the lens in sequence after the camera mounting reference. S13. Establish complete zoom intrinsic parameter functions and zoom breathing pose functions for the left and right lenses in the forward and reverse zoom directions respectively. The complete zoom intrinsic parameter functions describe the changes in focal length, principal point and distortion parameters with the actual zoom position and zoom direction. The zoom breathing pose function describes the rotation increment and translation increment caused by the photocentric breathing. A pre-specified zoom arrival direction is specified, and the breathing pose of this direction in the reference zoom state is constrained to zero, while the other direction retains an estimable hysteresis offset in the reference zoom state. S14. Using the mechanical compensation parameters fixed in S11 as head-eye kinematic constants, and taking the static residual extrinsic parameters, the complete zoom intrinsic parameter function coefficients, the zoom breathing pose function coefficients, and the target pose as optimization variables, a joint objective function is constructed for optimization solution. Parameter identifiability is determined by the edge information matrix of data items after removing interference variables such as target pose. Parameter prior is only used for numerical regularization after passing the identifiability determination.
3. The method according to claim 2, characterized in that, In step S11, observation data is collected in units of fixed target groups, with different joint configurations within the group sharing the same target to body pose; the mechanical translation degrees of freedom are minimized to ensure that the baseline correction, binocular height difference, and the corresponding differential components of the left and right eye rotation axes to the camera optical center offset are not repeated; a multi-joint excitation sequence is executed for each rotational joint to be calibrated, and after eliminating the target pose and reference intrinsic parameters as interference variables, the full rank and condition number are determined using the data residual information matrix without parameter priors; the mechanical compensation parameters are only solidified after acceptance by reprojection error, median vertical parallax, common field of view ratio, and physical range of mechanical parameters.
4. The method according to claim 1, characterized in that, In step S3, the calibration parameter increments include static residual extrinsic parameter increments, full zoom intrinsic parameter function coefficient increments, and zoom breathing pose function coefficient increments; the calibration parameter edge information matrix used in the observability analysis is composed of the Jacobian of the reprojection data residuals and the independent scale anchoring residuals, excluding parameter priors used only for limiting update amplitude or regularization; the calibration parameters are divided into blocks according to static rotation, static translation, focal length scale, principal point and distortion, breathing rotation, and breathing translation, and the updateable direction is determined by singular value decomposition or equivalent orthogonal decomposition; When independent scale anchors exist, the scale direction is allowed to be updated only if the projection of the anchored Jacobian onto the corresponding scale direction satisfies a threshold.
5. The method according to claim 4, characterized in that, In step S3, the independent scale anchoring includes at least one of the following: known landmark spacing, external ranging, or reference camera center spacing measured by an external length reference under a predetermined reference convergence angle, reference zoom state, and mechanism locking state; the reference camera center spacing only constrains the measurement scale under the predetermined reference state and does not force the real-time camera center spacing under active convergence or zoom state to be equal to the reference value. When there is no independent scale anchor, the static translation, focal length scale, and breathing translation directions are suppressed from updating. The directions corresponding to the feature vectors that are below the update threshold but above the numerical zero threshold are defined as weakly observable directions. After excluding the scale directions that are not independently anchored by the scale permission mask, the projection matrix representing the weakly observable parameter subspace is output.
6. The method according to claim 1, characterized in that, In step S4, the utility function of the comprehensive evaluation includes a weighted combination of depth Fisher information, common field of view ratio, normalized value of mechanism adjustment time, matching failure probability, control change amount, and the expected calibration excitation index; each component is normalized using fixed upper and lower bounds fixed with parameter version; for each candidate state, a prediction weight matrix is constructed based on the four-dimensional original pixel prediction covariance, forming prediction information blocks for calibration parameters and candidate depth and target pose interference variables respectively, and the interference variables are eliminated by Schur complement to obtain the candidate calibration edge information matrix, and the expected calibration excitation index is determined by the projection trace or equivalent information metric of this matrix on the weakly observable parameter subspace; the control change amount is the normalized weighted sum of the travel changes of the four execution axes relative to the current state: left actual zoom position, right actual zoom position, left eye convergence angle, and right eye convergence angle.
7. The method according to claim 6, characterized in that, The matching failure probability and disparity noise model are obtained by fitting offline calibration data and saved with parameter versions; the statistics of the model are updated online only when the cumulative sample size and the validation error reduction conditions are met.
8. The method according to claim 1, characterized in that, In step S5, based on the real-time left and right camera centers and relative rotations, including the eyeball rotation axis to the optical center offset and the zoom breathing pose, the left camera correction rotation and the right camera correction rotation are calculated respectively, so that the optical axis directions of the two cameras are consistent after correction, the epipolar lines are horizontal, and the line connecting the camera centers is parallel to the horizontal axis of the correction coordinate system; only when the left and right correction projection matrices have the same horizontal focal length and the parallax definition is consistent with the baseline direction, the depth is calculated using the corrected horizontal parallax, otherwise homogeneous linear triangulation and nonlinear refinement are used.
9. A mechanical pre-calibration and online active depth sensing system for a zoom-in bionic binocular eye, characterized in that, include: The image acquisition module is used to simultaneously acquire left and right binocular images, the actual angles of the neck and left and right eye joint encoders, the actual zoom positions and zoom movement directions of the left and right lenses, and uses zoom drive commands as auxiliary quantities and binds them to a unified timestamp. The motion control module is used to read joint encoder data and superimpose software compensation to drive binocular convergence, pitch, yaw and neck posture, and monitor mechanical limits; The mechanical pre-calibration module is used to establish the minimum mechanical compensation parameter vector with no repeating translational degrees of freedom, and to solve the mechanical compensation parameters based on the target three-dimensional points, the actual readings of the neck and left and right eye encoders, and the head-eye forward kinematic projection model. The complete zoom-extrinsic parameter joint calibration module is used to establish complete intrinsic parameter functions and zoom breathing pose functions for the left and right lenses in the forward and reverse zoom directions respectively. The mechanical compensation parameters output by the mechanical pre-calibration module are used as constants. Reference zoom zero breathing constraints are applied only to the standard zoom arrival direction. The static residual extrinsic parameters, zoom function coefficients and target pose are jointly optimized, and the factory reference parameter version with covariance is output. The online orientation selection self-calibration module is used to maintain the sliding window and perform Schur complement elimination on the normal equations. It generates an orientation-level updated projection matrix based on the edge information matrix of data terms without numerical regularization priors and independent scale anchoring terms. It freezes the corresponding orientation according to the scale anchoring conditions, submits or rolls back the parameter version according to the independent verification frame results, and outputs weakly observable orientation information. The active control module is used to call the complete calibration parameters to calculate the depth measurability index under the candidate actual zoom position and convergence angle, calculate the expected calibration excitation index along the weakly observable direction after performing Schur complement elimination on the candidate depth and target pose interference variables, output the optimal control state after comprehensive utility evaluation, and mark the qualified observations generated after execution as priority keyframes and send them back to the online direction selection self-calibration module. The depth calculation module is used to generate left and right correction rotation and correction projection matrices based on the real-time poses of the left and right cameras, respectively, and to perform distortion removal, binocular correction, stereo matching and triangulation, and output a depth map with confidence mask and robust master depth. The versioned parameter management module is used to store static residual extrinsic parameters, complete zoom intrinsic parameters, zoom breathing pose, mechanical compensation parameters and covariance in atomic form with the same version. It retains the factory benchmark version, the current online version and the most recent stable version in layers, and performs a complete rollback when verification fails.
10. The system according to claim 9, characterized in that, The versioned parameter management module ensures that the online direction selection self-calibration module, active control module, and depth calculation module work collaboratively under the same atomic parameter version. The prediction measurement vector of the active control module consists of the left and right original pixel coordinates in the candidate state. The prediction weight matrix is determined by the inverse matrix of the matching success probability and the four-dimensional original pixel prediction covariance. The four-dimensional original pixel prediction covariance is directly fitted by offline matching residual statistics, or obtained by parallax, vertical positioning, correction mapping, and target state uncertainty through complete Jacobian propagation. The active control module calculates the expected calibration excitation index after performing Shur complement elimination on the candidate depth and target pose interference variables.
