A method and system for calibrating the external parameters of a binocular vision system

By acquiring multiple frames of synchronized target images in a binocular vision system, calculating the poses of the left and right cameras respectively, forming 3D point pairs, evaluating the reference residuals and translation vectors, and iteratively solving the rotation loss, the problem of 3D consistency evaluation of extrinsic parameter calibration in a binocular vision system is solved, achieving efficient and accurate extrinsic parameter calibration.

CN123181595APending Publication Date: 2026-11-27BEIJING JINGCAI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing binocular vision system's external parameter calibration for three-dimensional spatial consistency evaluation is not intuitive, has many variables for joint rotation and translation iteration, and lacks a consistency reference for the current sample and a clear retry termination method after iteration convergence.

Method used

By acquiring multiple frames of synchronized target images, the poses of the left and right cameras are calculated based on the nominal geometry of the target within the camera, forming left-path 3D points, right-path 3D points, and corresponding 3D point pairs. The relative extrinsic parameters are obtained by compositing the target poses frame by frame. Each relative extrinsic parameter is evaluated based on the preset point pair weights and corresponding 3D point pairs to form a reference residual. The left-path weighted centroid and right-path weighted centroid are determined according to the point pair weights. The translation vector is determined in a closed loop. The 3D registration loss is solved iteratively. The mean of the rotation group is used as the initial value of the rotation. The convergent rotation and convergence loss are solved iteratively. When a preset threshold is reached, the initial value of the rotation is perturbed and the iteration is restarted.

Benefits of technology

It enables direct evaluation of three-dimensional spatial distance, reduces iteration variables, provides a consistent reference for the currently collected data, and has a clear retry termination method during the iteration process, thereby improving the accuracy and consistency of calibration results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181595A_ABST
    Figure CN123181595A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of binocular vision calibration, and discloses a binocular vision system external parameter calibration method and system, which comprises the following steps: acquiring multiple frames of synchronous target images, respectively solving left and right camera target poses and forming homonymous three-dimensional point pairs; obtaining relative external parameters by frame-by-frame compounding, evaluating each relative external parameter based on point pair weight and forming reference residual; determining a translation vector according to a left-right weighted barycenter closed form, constructing a three-dimensional registration loss taking rotation as a to-be-optimized variable; iteratively solving a convergent rotation and a convergent loss by taking the rotation group mean value of the rotation component of the relative external parameter as an initial value; determining an acceptance threshold according to the reference residual, selecting rotation in combination with a bounded restart, and outputting the selected rotation, a corresponding translation vector and a comparison result. The application can improve the three-dimensional consistency evaluation capability of binocular external parameter calibration, reduce the iteration variable, and realize calibration result screening and output effect with a clear termination condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of binocular vision calibration technology, specifically to a method and system for calibrating the extrinsic parameters of a binocular vision system. Background Technology

[0002] Binocular vision systems acquire images of the same scene using left and right cameras, and perform spatial coordinate transformations based on the relative pose between the two cameras. Extrinsic parameters describe the rigid body transformation between the coordinate systems of the left and right cameras, including rotation matrices and translation vectors, and are fundamental parameters for binocular ranging, spatial localization, and 3D reconstruction. Extrinsic parameter deviations can affect the transformation results of the same spatial point between the two camera coordinate systems; therefore, extrinsic parameter calibration of the binocular vision system is necessary.

[0003] Binocular extrinsic calibration based on a calibration target typically involves acquiring multiple frames of images of the same target from both cameras, extracting target feature points, and combining these with camera intrinsic parameters to solve for the relative pose of the target using geometry. When using 2D reprojection errors for joint optimization, the error is represented by pixel deviation on the image plane. The conversion between pixel deviation and spatial distance is affected by observation depth, camera intrinsic parameters, and projection direction; therefore, the 2D residual value cannot directly represent the distance deviation of corresponding points in 3D space. In situations where the consistency of left and right observations needs to be evaluated according to spatial distance, an evaluation method with a clear spatial scale is also required.

[0004] The target image point extraction quality may differ between the left and right cameras. Motion blur, local overexposure, low contrast, and changes in target pose can all affect the pose calculation results. Treating observations of different qualities with equal weight makes it difficult to reflect the reliability of the observations and the importance of the designated calibration area. Furthermore, frame-by-frame calculation results may contain anomalous frames; therefore, it is necessary to clarify the method for selecting anomalous frames and how the selection results should be used in subsequent calibration and evaluation.

[0005] When performing nonlinear iterations on rotation and translation simultaneously, it is necessary to update the rotation and translation parameters at the same time and calculate the corresponding Jacobian and normal equations. For rigid body registration problems using the sum of squared distances between point pairs, how to utilize the computational relationship between rotation and translation to reduce iteration variables and maintain consistency between parameter reduction and point pair weighting are technical issues that need to be considered.

[0006] Furthermore, iteration stopping conditions such as gradient magnitude, parameter increment magnitude, and loss change primarily reflect whether the numerical iteration tends to stabilize. Simply meeting the iteration stopping condition alone is insufficient to directly indicate whether the final result has reached the expected level of consistency with the currently acquired data. In the absence of external high-precision pose references such as precision turntables or laser trackers for on-site calibration, it is necessary to establish comparable references using the current calibration data and clearly define the retry, termination, and output methods when deviations from the reference requirements are made. During the retry process, when adjusting the set of frames involved in the calculation, it is also necessary to simultaneously update the evaluation data to ensure a consistent data basis across different processing stages.

[0007] Therefore, this application provides a method and system for extrinsic parameter calibration of a binocular vision system to solve the above-mentioned technical problems. Summary of the Invention

[0008] The purpose of this invention is to provide a method and system for extrinsic parameter calibration of a binocular vision system, in order to solve the technical problems in the prior art where the three-dimensional spatial consistency evaluation of binocular extrinsic parameter calibration is not intuitive, there are many variables in the joint iteration of rotation and translation, and there is a lack of consistency reference for the current sample and a clear retry termination method after iteration convergence.

[0009] To address the aforementioned technical problems, this invention provides a method for calibrating the extrinsic parameters of a binocular vision system, comprising: Acquire multiple frames of synchronized target images, and calculate the target poses of the left and right cameras based on the nominal geometry of the target participating in the camera, forming left-path 3D points, right-path 3D points and pairs of 3D points with the same name; The target pose is composited frame by frame to obtain relative extrinsic parameters. Each relative extrinsic parameter is evaluated based on the preset point pair weights and the corresponding three-dimensional point pairs to form a reference residual. The left and right weighted centroids are determined according to the point pair weights. The translation vector is determined in a closed loop based on the correspondence between the left and right weighted centroids and rotation. The three-dimensional registration loss is constructed with rotation as the variable to be optimized. Using the rotation group mean of the relative extrinsic rotation components as the initial value of rotation, the convergent rotation and convergent loss of the three-dimensional registration loss are iteratively solved. The acceptance threshold is determined based on the reference residual and the preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, the convergence rotation is accepted. When the convergence loss is greater than the acceptance threshold, the initial value of the rotation is perturbed and the iteration is restarted. When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the smallest loss is selected from the initial value of the rotation, each convergence rotation and the relative extrinsic rotation component corresponding to the reference residual. The selected rotation, the corresponding translation vector and the comparison result are output.

[0010] In some specific embodiments, the poses of the left and right camera targets are calculated based on the nominal geometry of the target within the camera, forming a left-path 3D point, a right-path 3D point, and pairs of corresponding 3D points, further including: Target image points of the left and right cameras are extracted from the synchronized target image respectively, and target image points with the same name are determined according to the target point number; The target nominal geometry is represented as spatial coordinates in the target coordinate system. The target pose of the left camera is calculated using the target image point of the left camera, the intrinsic parameters of the left camera, and the spatial coordinates. The target pose of the right camera is calculated using the target image point of the right camera, the intrinsic parameters of the right camera, and the spatial coordinates. The spatial coordinates are transformed to the corresponding camera coordinate system based on the target poses of the left camera and the right camera, respectively, to obtain the left-path 3D point and the right-path 3D point, and the same-name 3D point pair is formed according to the target point number.

[0011] In some specific embodiments, before forming the reference residual based on the preset point pair weights and the relative extrinsic parameters of the corresponding 3D point pairs, the method further includes: The equivalent rotation angle is determined based on the rotation component of the relative extrinsic parameter in each frame, and the mean and standard deviation of the equivalent rotation angle are calculated. Based on the standard deviation and the preset screening coefficient, a screening threshold is determined. According to the comparison result of the deviation of the equivalent rotation angle of each frame relative to the mean and the screening threshold, frames with a deviation not greater than the screening threshold are retained, and frames and target points with a deviation greater than the screening threshold are removed. The reference residual and the 3D registration loss are constructed using the relative extrinsic parameters of the retained frames and the corresponding 3D point pairs.

[0012] In some specific embodiments, using the rotation group mean of the relative extrinsic rotation components as the initial rotation value, the method further includes: Candidate mean rotations are set in the rotation group, and frame-by-frame relative rotations are formed based on the relative rotation relationship between the candidate mean rotations and the relative extrinsic rotation components of each frame. The frame-by-frame relative rotation is mapped to the Lie algebra space, and the rotation update amount is determined based on the mapping result; The candidate mean rotation is iteratively updated based on the rotation update amount. When the overall rotation deviation of the frame-by-frame relative rotation reaches its minimum, the corresponding candidate mean rotation is used as the initial rotation value.

[0013] In some specific embodiments, a reference residual is formed based on preset point pair weights and the relative extrinsic parameters of the same three-dimensional point pairs, further including: The target pose of the right camera and the target pose of the left camera in each frame are combined to form a single-frame candidate extrinsic parameter containing rotation and translation components. By fixing the same-name 3D point pairs and the point pair weights, the left-path 3D points are transformed to the right camera coordinate system one by one using the single-frame candidate extrinsic parameters; Based on the three-dimensional distance between the transformed left-path three-dimensional point and the corresponding right-path three-dimensional point and the point pair weight, the evaluation residual of each single-frame candidate extrinsic parameter is determined; The minimum value of all the evaluation residuals is taken as the reference residual.

[0014] In some specific embodiments, the left-path weighted centroid and the right-path weighted centroid are determined according to the point-pair weights, the translation vector is determined in a closed loop based on the correspondence between the left and right-path weighted centroids and rotation, and a three-dimensional registration loss is constructed with rotation as the variable to be optimized, further including: Read the point pair weights determined based on the target image point extraction quality or a preset calibration area, wherein the point pair weights are non-negative and the total weight is positive; The left-path weighted centroid and the right-path weighted centroid are determined based on the point-pair weights, respectively. In each rotation iteration, the translation vector is updated in a closed loop according to the correspondence between the current rotation and the weighted centroids of the left and right paths, and the three-dimensional registration loss is updated based on the updated translation vector.

[0015] In some specific embodiments, iteratively solving the convergence rotation and convergence loss of the three-dimensional registration loss further includes: The left-path 3D points and the right-path 3D points are centered based on the left-path weighted centroid and the right-path weighted centroid, respectively, to form centered point pairs; Based on the centralized point pairs, determine the rotation registration residuals and the Jacobian with respect to the rotation increment. Combine the point pair weights to construct the damped least squares normal equation and solve for the rotation increment. The rotation increment is converted into a rotation update amount through a Lie algebra exponential mapping, and the current rotation and the 3D registration loss are updated based on the rotation update amount. The gradient magnitude, rotation increment magnitude, and loss change are compared with their respective preset thresholds. When the gradient magnitude, rotation increment magnitude, and loss change are all less than their respective preset thresholds, the converged rotation and the converged loss are output. When the gradient magnitude, rotation increment magnitude, or loss change is greater than their respective preset thresholds, the iteration continues.

[0016] In some specific embodiments, when the convergence loss is greater than the acceptance threshold, the initial rotation value is perturbed and the iteration is restarted, further including: Add the initial rotation value, each convergent rotation, and the relative extrinsic rotation component corresponding to the reference residual to the candidate set, perturb the initial rotation value by a preset amplitude, and restart the iteration; When the convergence loss after restarting is not greater than the acceptance threshold, the corresponding convergent rotation is accepted and the restart is terminated. When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the smallest loss is selected from the candidate set. Based on the selected rotation and corresponding translation vectors, the registration residual contribution of each frame and each point is determined, and the frame number and corresponding point number with the largest residual contribution are output.

[0017] In some specific embodiments, after determining the screening threshold based on the standard deviation and the preset screening coefficient, the method further includes: When the convergence loss is greater than the acceptance threshold, the preset filtering coefficient is reduced and the frames are re-filtered. When there are no retained frames, the set of frames before filtering is used as the current frame set. When there are retained frames, the retained frames are used as the current frame set. Based on the current frame set, reconstruct the same 3D point pairs and redetermine the left and right weighted centroids, reference residuals, and 3D registration loss; Based on the updated results, the initial rotation value, each convergent rotation, and the relative extrinsic rotation components corresponding to the reference residual are evaluated and rotation selection is performed. The iteration is restarted from the perturbed initial rotation value. When the preset number of restarts is reached, the restart is terminated.

[0018] Based on the same concept, the present invention also provides an extrinsic parameter calibration system for a binocular vision system, comprising: The 3D reconstruction module is configured to acquire multiple frames of synchronized target images, calculate the target pose of the left and right cameras based on the nominal geometry of the target within the camera, and form left-path 3D points, right-path 3D points and pairs of 3D points with the same name. The reference residual module is configured to composite the target pose frame by frame to obtain relative extrinsic parameters, and evaluate each relative extrinsic parameter based on the preset point pair weights and the corresponding three-dimensional point pairs to form a reference residual. The translation elimination module is configured to determine the left and right weighted centroids according to the point pair weights, determine the translation vector in a closed loop based on the correspondence between the left and right weighted centroids and rotation, and construct a three-dimensional registration loss with rotation as the variable to be optimized. The rotation iteration module is configured to use the rotation group mean of the relative external parameter rotation components as the initial value of rotation, and iteratively solve the convergence rotation and convergence loss of the three-dimensional registration loss. The bounded restart output module is configured to determine an acceptance threshold based on the reference residual and a preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, the convergence rotation is accepted. When the convergence loss is greater than the acceptance threshold, the initial value of the rotation is perturbed and the iteration is restarted. When a preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the module selects the rotation with the smallest loss among the initial value of the rotation, each convergence rotation, and the relative extrinsic rotation component corresponding to the reference residual, and outputs the selected rotation, the corresponding translation vector, and the comparison result.

[0019] Compared with existing technologies, its advantages are as follows: This invention discloses an extrinsic parameter calibration method and system for a binocular vision system. Based on the target image points of the left and right cameras and the nominal geometry of the target within the cameras, the target pose is calculated separately. The nominal spatial coordinates of the target are then transformed to the corresponding camera coordinate systems, forming two paths of 3D points with a unified target scale. 3D points with the same name are paired by target point numbering. The 3D registration loss is evaluated using 3D spatial distance to assess the degree of inconsistency between the left and right observations after rigid body transformation, ensuring that deviations in all components of the spatial coordinates are included in the evaluation.

[0020] The left and right 3D points rely on their respective image observations and pose calculation results, and the two 3D reconstruction processes remain independent. By combining the frame number with the largest residual contribution and the corresponding point number, the corresponding synchronous image, target image point, and pose calculation result can be retrieved, providing corresponding observation positions for checking image quality, target image point extraction, and pose calculation.

[0021] Each candidate extrinsic parameter in a single frame is evaluated on the same 3D point pairs with the same pair weights, and the minimum value of the evaluation residual is used as the reference residual, enabling the currently collected data to form a consistent data self-consistency reference. An acceptance threshold is determined based on the reference residual and a preset relaxation coefficient, allowing for consistency comparison of the current solution results outside of the numerical iteration stopping condition.

[0022] The left-side weighted centroid, right-side weighted centroid, reference residual, and 3D registration loss all use the same point-pair weights. The translation vector is determined in a closed-form formula based on the correspondence between rotation and the left and right-side weighted centroids, thus reducing the number of variables requiring numerical iteration. The point-pair weights can be determined based on the target image point extraction quality or a pre-defined calibration region, ensuring that different observations contribute accordingly to the reference residual, weighted centroid, and 3D registration loss.

[0023] Before the reference residual and 3D registration loss are formed, statistical screening is performed based on the equivalent rotation angles corresponding to the relative external parameter rotation components frame by frame. This can reduce the impact of rotating discrete abnormal frames on subsequent evaluation and solution. The initial value of rotation and the rotation update amount are formed by using the matrix logarithm and exponential mapping on the rotation group, so that the rotation processing satisfies the geometric constraints corresponding to the rotation matrix.

[0024] The gradient magnitude, rotation increment magnitude, and loss change are used to determine whether the rotation iterations tend to stabilize, while the acceptance threshold is used to evaluate whether the convergence loss satisfies the consistency reference formed by the current samples. When the convergence loss is greater than the acceptance threshold, a finite number of restarts are performed by perturbing the initial rotation value; after reaching the preset number of restarts, rotation selection is performed based on the 3D registration loss in the current candidate set, so that the restart process has a clear termination condition.

[0025] When re-screening frames causes changes to the current frame set, the left and right weighted centroids, reference residuals, and 3D registration loss are simultaneously re-determined, and existing candidate rotations are re-evaluated based on the updated results. This ensures that the comparison and rotation selection after re-screening use the same data version, avoiding direct comparison of historical losses corresponding to different sample sets. Attached Figure Description

[0026] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a flowchart illustrating some specific embodiments of the extrinsic parameter calibration method for a binocular vision system according to the present invention; Figure 2 This is a schematic diagram of the external parameter calibration system of a binocular vision system according to some specific embodiments of the present invention. Detailed Implementation

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

[0028] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms "a," "the," and "the" as used in the embodiments of this application are also intended to include the plural forms, unless the context clearly indicates otherwise, and "multiple" generally includes at least two.

[0029] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0030] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.

[0031] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”

[0032] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.

[0033] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.

[0034] Reference Figure 1 A method for extrinsic parameter calibration of a binocular vision system, comprising: S101: Acquire multiple frames of synchronized target images, calculate the target poses of the left and right cameras based on the nominal geometry of the target within the camera, and form left-path 3D points, right-path 3D points and pairs of 3D points with the same name. S102, the target pose is composited frame by frame to obtain relative extrinsic parameters, and each relative extrinsic parameter is evaluated based on the preset point pair weights and the corresponding three-dimensional point pairs to form a reference residual; S103, determine the left-side weighted centroid and the right-side weighted centroid according to the point-pair weights, determine the translation vector in a closed loop based on the correspondence between the left and right-side weighted centroids and rotation, and construct a three-dimensional registration loss with rotation as the variable to be optimized; S104, using the rotation group mean of the relative external parameter rotation components as the initial value of rotation, iteratively solve the convergence rotation and convergence loss of the three-dimensional registration loss; S105, determine the acceptance threshold based on the reference residual and the preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, accept the convergence rotation. When the convergence loss is greater than the acceptance threshold, perturb the initial value of the rotation and restart the iteration. When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, select the rotation with the smallest loss among the initial value of the rotation, each convergence rotation and the relative extrinsic rotation component corresponding to the reference residual, and output the selected rotation, the corresponding translation vector and the comparison result.

[0035] To provide a clearer explanation, the steps in the embodiments of the present invention are described in detail below: S101: Acquire multiple frames of synchronized target images, calculate the target poses of the left and right cameras based on the nominal geometry of the target within the camera, and form left-path 3D points, right-path 3D points and pairs of 3D points with the same name. In this embodiment, the calibration input includes synchronized target images, pre-calibrated intrinsic parameters of the left and right cameras, and target nominal geometry. The calibration target uses a planar checkerboard or dot matrix, and its size is given in the length unit used during target manufacturing. During acquisition, the target's attitude, distance, and orientation are changed, and at least 15 synchronized image pairs are acquired, with at least 12 target points extracted from each frame, ensuring the target covers different locations within the common field of view. Uniform illumination is maintained during acquisition, and target integrity, partial occlusion, and strong reflections are checked; the left and right images are synchronously triggered and written with the same frame number.

[0036] Furthermore, target image points from the left and right cameras are extracted from the synchronized target image, and target image points with the same name are determined according to the target image point number.

[0037] Images undergo denoising and illumination correction, such as edge-preserving filtering and histogram equalization. Checkerboard corner points are detected in each image path, and refinement is performed to sub-pixel positions within the corresponding local neighborhood. For the dot matrix, the center of each dot is extracted as the target image point. Detection results are organized according to the target's origin, row and column directions, and point numbers. The left and right cameras use the same numbering table for pairing. The target point number represents the same physical location on the target, and the point number and image pixel position are stored separately. The target nominal coordinates remain consistent for both cameras; target image points for the left camera are included in the pose calculation for the left camera, and target image points for the right camera are included in the pose calculation for the right camera.

[0038] Subpixel thinning can iterate within a 5px neighborhood, with 30 iterations set as the upper limit and a positional change of 0.01px set as the stopping threshold. Image validity and target point integrity checks are performed before 3D reconstruction.

[0039] The target's nominal geometric representation is expressed as spatial coordinates in the target coordinate system. The target pose of the left camera is calculated using the target image point of the left camera, the intrinsic parameters of the left camera, and the spatial coordinates. The target pose of the right camera is calculated using the target image point of the right camera, the intrinsic parameters of the right camera, and the spatial coordinates.

[0040] The target coordinate system is denoted as The left camera coordinate system is denoted as The coordinate system of the right camera is denoted as The camera coordinate system is a right-handed coordinate system, with the positive direction of the optical axis being the positive direction of depth; the origin of the target coordinate system is set at a predetermined target point, and the two planar coordinate axes are set along the row and column directions of the target. The nominal spatial coordinates of each target point are determined by the target point distance and number table.

[0041] The pre-calibrated camera intrinsic parameters include focal length and principal point position. When using distortion coefficients, the corresponding target image points are corrected according to the distortion parameters of each camera, or the distortion parameters are substituted into the corresponding pose calculation process. The two image point processing methods use matching projection relationships to avoid repeatedly performing distortion correction.

[0042] Pose calculation employs monocular perspective multi-point pose calculation. The target image point, camera intrinsic parameters, and target nominal space coordinates are input respectively, and the rotation matrix and translation vector from the target coordinate system to the corresponding camera coordinate system are output. When multiple candidate poses are generated for a planar target, the pose to be adopted is determined based on the condition that the target point is in front of the camera and the image point fitting residual of the corresponding camera, and the corresponding candidate number is retained.

[0043] No. The target pose of the left camera is determined by and It means that the first The target pose of the right camera is determined by and express. and Let represent the rotation matrix and translation vector from the target coordinate system to the left camera coordinate system, respectively; and Let represent the rotation matrix and translation vector from the target coordinate system to the right camera coordinate system, respectively.

[0044] The spatial coordinates are transformed to the corresponding camera coordinate system based on the target poses of the left camera and the right camera, respectively, to obtain the left-path 3D point and the right-path 3D point, and the same-name 3D point pair is formed according to the target point number.

[0045] For any target point, the nominal spatial coordinates of the target point are applied using the rotation matrix of the corresponding camera, and the three-dimensional coordinates of the target point in the corresponding camera coordinate system are obtained by combining the translation vector of the corresponding camera. Frame number The left-side three-dimensional point of each target point is denoted as... The three-dimensional point on the right is denoted as , No. The nominal spatial coordinates of each target point in the target coordinate system are denoted as follows: .

[0046] The target poses of the left and right cameras are applied to the same nominal target spatial coordinates, with the length unit of the points being the same as the nominal target point distance. Point pair records include frame number, target point number, left-channel 3D coordinates, and right-channel 3D coordinates. The left and right 3D reconstructions respectively incorporate the estimation errors of the corresponding camera target image points and camera intrinsic parameters, forming independently stored point clouds. Joint processing between cameras is performed after the corresponding 3D point pairs are formed.

[0047] Alternatively, a non-planar calibration target with predefined point numbers can be used, or the center extraction results of a circular dot matrix can be used to complete the monocular pose calculation. When replacing the target, the target nominal spatial coordinates and point number table are updated synchronously to maintain the consistency of the nominal geometry read by the left and right cameras.

[0048] When target point extraction fails in any single frame, point numbering is incomplete, the number of valid points is less than the pose calculation requirement, or the pose calculation result exceeds the effective depth range, the corresponding synchronized image pair is recorded in the acquisition anomaly log. If the intrinsic parameters of the left and right cameras are missing, the length units are inconsistent, or the nominal geometry of the target is missing, the input parameters are supplemented and standardized. After completing the 3D reconstruction, the orthogonality, determinant, and finiteness of the 3D coordinates of the rotation matrix are checked, and synchronized frames with numerical anomalies are recorded in the acquisition anomaly log. Each frame entering subsequent processing has target point and corresponding point pairing information that meets the geometric solution requirements.

[0049] S102, the target pose is composited frame by frame to obtain relative extrinsic parameters, and each relative extrinsic parameter is evaluated based on the preset point pair weights and the same three-dimensional point pairs to form a reference residual; In this embodiment, the target pose of the right camera in each frame is combined with the inverse transformation of the target pose of the left camera in the same frame to obtain the relative extrinsic parameters from the left camera coordinate system to the right camera coordinate system. The relative extrinsic parameters frame by frame use the same coordinate transformation direction for the final output extrinsic parameters.

[0050] The composite relationship of relative extrinsic parameters frame by frame is as follows: ; The corresponding rotation and translation components are: ; in, Indicates the first Homogeneous transformation from the frame target coordinate system to the left camera coordinate system Indicates the first Homogeneous transformation from the target coordinate system to the right camera coordinate system Indicates the first The relative extrinsic parameters from the left camera coordinate system to the right camera coordinate system. and These represent the rotation and translation components of the corresponding extrinsic parameters, respectively, with superscripts indicating the rotation and translation components. Indicates the inversion of a homogeneous transformation, with superscript. This indicates the matrix transpose.

[0051] Before forming the reference residual, frame filtering is also performed based on the preset point pair weights and the relative extrinsic parameters of the same three-dimensional point pairs.

[0052] The equivalent rotation angle is determined based on the rotation component of the relative extrinsic parameter in each frame, and the mean and standard deviation of the equivalent rotation angle are calculated.

[0053] The equivalent rotation angle is: ; in, Indicates the first The equivalent rotation angle corresponding to the frame's rotation relative to the extrinsic parameter rotation component. Represents the trace of a matrix. This restricts the input values ​​to a given closed interval. The average of all equivalent rotation angles currently being filtered is calculated. and standard deviation The input to the inverse cosine is limited to... Within the range to eliminate out-of-bounds values ​​caused by floating-point rounding.

[0054] Based on the standard deviation and the preset screening coefficient, a screening threshold is determined. According to the comparison result of the deviation of the equivalent rotation angle of each frame relative to the mean and the screening threshold, frames with a deviation not greater than the screening threshold are retained, and frames and target points with a deviation greater than the screening threshold are removed.

[0055] The angle deviation and the filtering threshold are: ; in, Indicates the first The deviation of the frame equivalent rotation angle from the mean. This represents the preset screening coefficient. This indicates the filtering threshold.

[0056] The preset filtering coefficient is 3 for example. When the angle deviation is not greater than the filtering threshold, the corresponding frame is added to the retained frame set; when the angle deviation is greater than the filtering threshold, the corresponding frame and its target point are added to the rejection record. When the standard deviation is 0, frames with equivalent rotation angles consistent with the mean are added to the retained frame set.

[0057] The reference residual and the 3D registration loss are constructed using the relative extrinsic parameters of the retained frames and the corresponding 3D point pairs.

[0058] After the set of retained frames is determined, the left and right point clouds are organized according to the same frame number and the same point number. When the number of valid corresponding points in each frame is the same, the total number of point pairs is determined by the number of retained frames and the number of corresponding points in a single frame; when the number of valid corresponding points in each frame differs, the current point set is formed based on the valid corresponding points in each retained frame. The screening results simultaneously limit the source of candidate extrinsic parameters for a single frame and the unified evaluation point set. The reference residual and 3D registration loss are both read from the point set corresponding to the current retained frame. The point pair weights are read from the preset weight record, and the left and right 3D points corresponding to each point number use the same point pair weights. During the construction of the reference residual, the current point set and point pair weights are kept fixed, and the relative extrinsic parameters to be evaluated are replaced sequentially.

[0059] After angle filtering is completed, the dispersion of rotation axis direction can also be checked. After the equivalent rotation angle statistical filtering forms a set of retained frames, a comparison center is formed based on the rotation group mean of the retained frames to identify frames with similar rotation angles but large deviations in rotation axis direction.

[0060] The rotation group mean is calculated for the relative extrinsic rotation components of the retained frames, and the frame-by-frame rotation deviation is determined based on the relative relationship between the rotation components of each retained frame and the mean rotation.

[0061] Let the mean be rotated as The frame-by-frame rotation deviation is: ; in, Indicates the first The frame-by-frame rotation deviation corresponding to each retained frame The matrix logarithm of the rotation matrix. This represents the Frobenius norm.

[0062] The deviation threshold is determined based on the statistical distribution of the frame-by-frame rotation deviation and the preset positive deviation coefficient.

[0063] The deviation threshold is: ; in, This represents the mean of the frame-by-frame rotation deviation. The standard deviation of the frame-by-frame rotation bias is represented by the following: This indicates the preset positive deviation coefficient. This represents the deviation threshold. The preset positive deviation coefficient is, for example, 2.5.

[0064] When the frame-by-frame rotation deviation is not greater than the deviation threshold, the corresponding frame is added to the set of frames to be retained again; when the frame-by-frame rotation deviation is greater than the deviation threshold, the corresponding frame and its target point are added to the removal record. When the standard deviation of the frame-by-frame rotation deviation is 0, frames with a frame-by-frame rotation deviation equal to the mean are added to the set of frames to be retained again.

[0065] Based on the comparison results of the frame-by-frame rotation deviation and the deviation threshold, frames are filtered again, and the reference residual and the three-dimensional registration loss are constructed on the retained frames and the corresponding three-dimensional point pairs.

[0066] The point set, along with its frame number, is then passed to the unified evaluation and 3D registration loss construction process after the second filtering. When the point set is changed during the second filtering, the data version is updated, and subsequent left and right weighted centroids, reference residuals, 3D registration loss, and candidate rotation evaluations all use the updated data version.

[0067] The target pose of the right camera and the target pose of the left camera in each frame are combined by inverse transformation to form a single-frame candidate extrinsic parameter containing rotation and translation components.

[0068] Each single-frame candidate extrinsic record includes the source frame number and the corresponding rotation component. Translation components The set of candidate extrinsic parameters for a single frame is formed one by one from the currently retained frames.

[0069] By fixing the same-name 3D point pairs and the point pair weights, the left-path 3D points are transformed to the right camera coordinate system one by one using the single-frame candidate extrinsic parameters.

[0070] Each single-frame candidate extrinsic parameter applies to all left-side 3D points in the current data version. The transformed left-side 3D points are compared with the right-side 3D points corresponding to the same index. The source frame of the single-frame candidate extrinsic parameter determines the candidate rotation and translation values, and the evaluation point set and point pair weights remain consistent.

[0071] Based on the 3D distance between the transformed left-path 3D point and the corresponding right-path 3D point and the point pair weights, the evaluation residuals of the candidate extrinsic parameters for each single frame are determined.

[0072] No. The evaluation residuals of each single-frame candidate extrinsic parameter are: ; in, Indicates the first The evaluation residuals of candidate extrinsic parameters in a single frame on a unified point set. This indicates the total number of 3D point pairs with the same name in the current data version. Indicates the first Preset point pair weights for pairs of 3D points with the same name. Indicates a unified index The corresponding left-side 3D point, Indicates a unified index The corresponding right-side 3D point, This represents the three-dimensional Euclidean norm.

[0073] During the evaluation process, the left and right three-dimensional coordinates corresponding to the same index are read point by point, and the weighted squared distance of each point and the corresponding frame-level cumulative result can be saved simultaneously.

[0074] The minimum value of all the evaluation residuals is taken as the reference residual.

[0075] The reference residual is: ; in, This represents the reference residual corresponding to the current data version.

[0076] The system can also accumulate the weighted squared distances corresponding to the candidate extrinsic parameters in each frame, and aggregate the frame-level accumulation results to obtain identical candidate evaluation residuals. For cases with a small sample size or concentrated spatial distribution, the candidate evaluation residuals can be sorted and the 5th percentile value can be calculated as an additional data consistency reference record. The lower quantile value can be obtained by linear interpolation of adjacent sorted values. The extrinsic parameter acceptance decision in the main process uses the minimum evaluation residual value, and the additional lower quantile record is saved with the evaluation results to check the concentration of candidate evaluation residuals and meet the needs of supplementary sampling.

[0077] The reference residual, retained frame list, point pair weight record, and single-frame candidate extrinsic parameters are bound to the same data version. When the effective point set or point pair weights change, the single-frame candidate extrinsic parameters are re-evaluated and a new reference residual is determined. When the number of retained frames is 0, the acquisition check status is output; when the sum of point pair weights is less than or equal to 0 or the 3D coordinates exceed the valid value range, the input check status is output. When the reference residual is equal to 0, the value 0 is saved and used to determine the subsequent acceptance threshold.

[0078] S103, determine the left-side weighted centroid and the right-side weighted centroid according to the point-pair weights, determine the translation vector in a closed loop based on the correspondence between the left and right-side weighted centroids and rotation, and construct a three-dimensional registration loss with rotation as the variable to be optimized; In this embodiment, the left-path 3D points, right-path 3D points, and preset point pair weights are read from the current data version. The same point pair weights are used to record the residuals, left and right-path weighted centroids, and 3D registration loss.

[0079] Read the point pair weights determined based on the target image point extraction quality or a preset calibration region. The point pair weights are non-negative and the total weight is positive.

[0080] The point-to-point weights can be set based on the local sharpness, contrast, and subpixel refinement stability of the target image points. For example, a weight of 1 can be set for sharp and stably positioned point pairs, while a weight of 0.25 can be set for point pairs with slight blur or low contrast that still meet the target image point validity requirements. When setting according to a preset calibration area, a weight of 2 can be set for a specified calibration area, and a weight of 1 can be set for other areas.

[0081] The left and right 3D points in each pair of identical 3D points use the same pair weights. Pair weights remain non-negative, and the total weight remains positive. When a pair weight is 0, the corresponding pair's numerical contribution is 0, but the corresponding index record is retained. Before calculation, the finiteness and range of pair weights are checked; if negative weights exist or weights exceed the valid range, the pair weight configuration check status is output; if the total weight is less than or equal to 0, pair weights with positive weights are reconfigured. After changing the pair weights, the reference residual and 3D registration loss for the corresponding data version are redefined.

[0082] The left-side weighted centroid and the right-side weighted centroid are determined based on the point-to-point weights.

[0083] The sum of point-to-point weights and the weighted centroids of the left and right paths are: ; ; in, This represents the sum of the weights of the point pairs. Indicates the weighted centroid of the left side. This indicates the weighted centroid on the right side.

[0084] When the input spatial points are measured in millimeters, the weighted centroids and translation vectors for both the left and right paths are also measured in millimeters. The two weighted centroids describe the center positions of the left and right 3D points in the current data version under the influence of the point-pair weights.

[0085] In each rotation iteration, the translation vector is updated in a closed loop according to the correspondence between the current rotation and the weighted centroids of the left and right paths, and the three-dimensional registration loss is updated based on the updated translation vector.

[0086] For candidate rotation The corresponding translation vector is: ; The 3D registration loss is: ; in, Indicates candidate rotation, This represents the translation vector corresponding to the candidate rotation. This represents the 3D registration loss.

[0087] Given a candidate rotation, the weighted centroids of the left and right paths and the point-pair weights remain fixed. The translation vector is determined by a closed-form formula based on the correspondence between the current rotation and the weighted centroids of the left and right paths. When the total weight is positive, the translation vector corresponds to the minimum value of the sum of squared weighted distances under the fixed rotation condition. After each rotation update, the corresponding translation vector is determined based on the updated rotation, and the 3D registration loss is recalculated on the current data version.

[0088] During the rotational solution process, each left-path 3D point is centered relative to the left-path weighted centroid, and each right-path 3D point is centered relative to the right-path weighted centroid, thus forming centered left-path 3D points. and centralized right-side 3D points The centered point pairs are used for subsequent rotation registration residual and Jacobian calculations, and their corresponding loss values ​​are consistent with the full 3D registration loss after the translation vector is determined in a closed loop.

[0089] When all point-to-point weights are adjusted proportionally, the weighted centroids of the left and right paths remain unchanged, and the reference residuals and 3D registration losses change proportionally, maintaining consistent comparison relationships. When using this weighting adjustment method, the preset thresholds and damping scales related to the loss scale are adjusted accordingly.

[0090] S104, using the rotation group mean of the relative external parameter rotation components as the initial value of rotation, iteratively solve the convergence rotation and convergence loss of the three-dimensional registration loss; In this embodiment, the relative extrinsic rotation components of the retained frame and the three-dimensional registration loss corresponding to the current data version are read, the rotation group mean of the relative extrinsic rotation components is used to form the initial rotation value, and the convergent rotation is iteratively solved on the rotation group.

[0091] Candidate mean rotations are set in the rotation group, and frame-by-frame relative rotations are formed based on the relative rotation relationship between the candidate mean rotations and the relative extrinsic rotation components of each frame.

[0092] Let the candidate mean be rotated as The overall rotational deviation target is: ; in, This represents the overall rotation deviation corresponding to the rotation of the candidate mean. Indicates the set of currently retained frames. Indicates the rotation of candidate mean with the th The relative rotation between the frame and the extrinsic rotation components.

[0093] The frame-by-frame relative rotation is mapped to the Lie algebra space, and the rotation update amount is determined based on the mapping result.

[0094] The average mapping result and rotation update amount in the Lie algebra space are as follows: ; in, This indicates the number of frames in the current set of retained frames. This represents the average mapping result of frame-by-frame relative rotation in the Lie algebra space. Represents the matrix index. This indicates the amount of rotation update.

[0095] The candidate mean rotation is iteratively updated based on the rotation update amount. When the overall rotation deviation of the frame-by-frame relative rotation reaches its minimum, the corresponding candidate mean rotation is used as the initial rotation value.

[0096] Candidate mean rotation according to right-multiplication update relation Update and re-evaluate the overall rotation deviation. If the updated overall rotation deviation is less than the original overall rotation deviation, continue calculation using the updated candidate mean rotation; if the updated overall rotation deviation is not less than the original overall rotation deviation, reduce the rotation update magnitude and recalculate. For example, set 100 iterations as the upper limit for mean iteration calculation, and set the average rotation increment modulus to no more than [value missing]. Set as the stopping condition for mean iteration. When calculating the mean of the rotation group using multiple retained frame rotations as starting points, select the candidate mean rotation with the smallest overall rotation deviation as the initial rotation value.

[0097] The matrix logarithmic and exponential mappings employ consistent rotation branches. Relative rotations are close. At that time, the data clustering status and abnormal frame screening results are checked.

[0098] The left-path 3D points and the right-path 3D points are centered based on the left-path weighted centroid and the right-path weighted centroid, respectively, to form centered point pairs.

[0099] No. A pair of centralized points in the current rotation The rotational registration residual is: ; in, Indicates the first The rotational registration residuals corresponding to each centralized point pair Indicates the first A centralized left-side three-dimensional point, Indicates the first A centralized right-side 3D point. The centralized point pair remains fixed during rotational solution processes using the same data version.

[0100] Based on the centralized point pairs, determine the rotation registration residuals and the Jacobian with respect to the rotation increment. Combine the point pair weights to construct the damped least squares normal equation and solve for the rotation increment.

[0101] Let the rotation increment vector be The update is performed by right-multiplying the rotation increment: ; in, Indicates the current rotation. This indicates the rotation after the trial update. This represents the cross product antisymmetric matrix corresponding to the rotation increment vector.

[0102] The local relations and Jacobian of the rotation registration residuals are as follows: ; in, Indicates the first The rotational registration residual is a Jacobian multiplied by the rotational increment on the right.

[0103] The damped least squares normal equation is: ; ; in, Represents a normal matrix. This represents the weighted residual gradient. Indicates the positive damping coefficient. Let represent the third-order identity matrix. The gradient corresponding to the 3D registration loss is . .

[0104] A normal matrix is ​​formed by weighting the product of the Jacobian transpose and the Jacobian through point-to-weighted summations, and the gradient is formed by weighting the product of the Jacobian transpose and the rotation registration residual. The 3D rotation increment is then solved by adding a positive damping term to the normal matrix.

[0105] The damping coefficient is set, for example, based on the average diagonal of the normal matrix. Let... This represents the initial normal matrix corresponding to the initial rotation value. ,in, This represents the average diagonal of the initial normal matrix. The initial damping coefficient can be set to... When the calculated 3D registration loss is less than the original 3D registration loss, decrease the damping coefficient; when the calculated 3D registration loss is not less than the original 3D registration loss, increase the damping coefficient and recalculate the rotation increment. When the initial average diagonal is equal to 0 or the calculation result exceeds the effective value range, check the effective weight pair and spatial distribution.

[0106] The rotation increment is converted into a rotation update amount through Lie algebra exponential mapping, and the current rotation and the 3D registration loss are updated based on the rotation update amount.

[0107] The rotation increment is mapped to a rotation update value using Lie algebra exponential mapping, and the current rotation is right-multiplied by this rotation update value. After the current rotation is updated, the corresponding translation vector is determined based on the updated rotation and the fixed left and right weighted centroids in a closed loop, and the 3D registration loss is recalculated.

[0108] When the calculated 3D registration loss is less than the original 3D registration loss, save the calculated and updated rotation and the corresponding 3D registration loss; when the calculated 3D registration loss is not less than the original 3D registration loss, use the original rotation and adjust the damping coefficient to recalculate the rotation increment.

[0109] The gradient magnitude, rotation increment magnitude, and loss change are compared with their respective preset thresholds. When the gradient magnitude, rotation increment magnitude, and loss change are all less than their respective preset thresholds, the converged rotation and the converged loss are output. When the gradient magnitude, rotation increment magnitude, or loss change is greater than their respective preset thresholds, the iteration continues.

[0110] The gradient magnitude threshold, rotation increment magnitude threshold, and loss change threshold are set independently. For example, the gradient magnitude threshold uses... The rotational increment modulus threshold is adopted. The threshold for the change in loss is adopted. When using other coordinate scales, adjust the relevant thresholds based on the 3D registration loss and the scale corresponding to the gradient.

[0111] If a single iteration produces a result exceeding the valid numerical range or fails to solve the damping equation, the damping coefficient is increased and the calculation is retried. When a single solution reaches 200 calculations and the convergence condition still exceeds the corresponding preset threshold, the calculation end status is recorded, this solution is marked as an abnormal attempt and enters bounded restart processing, and the candidate set saves the initial rotation value and the converged rotations that have been obtained.

[0112] When solving the damped least squares normal equation, damping can be set according to the characteristic directions of the normal matrix. This process reads the centered Jacobian, rotational registration residual, and fixed point pair weights, adjusts the damping allocation in different directions during the rotational incremental solution stage, and then performs the same exponential mapping update, 3D registration loss trial calculation, and convergence determination.

[0113] Based on the weighted Jacobian, a normal matrix is ​​constructed and eigenvalues ​​and eigenvectors are obtained for each eigendirection.

[0114] The symmetric eigenvalues ​​of a normal matrix are: ; in, Indicates the feature direction index. Indicates the first The eigenvalues ​​corresponding to each feature direction The List This represents the corresponding feature vector. This represents a diagonal matrix formed by the eigenvalues.

[0115] The damping coefficient for each characteristic direction is determined based on the aforementioned characteristic values, such that the direction with the smaller characteristic value corresponds to the larger damping coefficient.

[0116] No. The damping coefficients corresponding to the characteristic directions are: ; in, Indicates a preset positive number. This indicates a preset positive damping scale. Indicates the first Damping coefficients corresponding to each characteristic direction.

[0117] For example, the average diagonal of the initial normal matrix. ,set up ,set up When this relationship is used, the direction with a smaller eigenvalue corresponds to a larger damping coefficient.

[0118] The gradient is determined based on the point pair weights, the rotation registration residuals, and the Jacobian.

[0119] The gradient is determined using the rotation registration residual, Jacobian, and point-pair weights corresponding to the current rotation. The gradient and the normal matrix use the same current rotation and the same data version.

[0120] The sub-directional increments are determined based on the projection of the gradient on each characteristic direction, the corresponding eigenvalues, and the damping coefficients, and the rotation increments are synthesized along each characteristic direction.

[0121] The directional and rotational increments are: ; in, Indicates the first The rotation increment components are corresponding to each characteristic direction. The increment of each direction is determined based on the projection of the gradient on the corresponding characteristic direction, as well as the corresponding eigenvalue and damping coefficient, and the rotation increment is synthesized along each eigenvector.

[0122] When the trial 3D registration loss obtained using directional damping is not less than the 3D registration loss before the update, the preset positive damping scale is increased and the solution is resolved. Alternatively, a single positive damping coefficient can be maintained, and a block-accumulated normal matrix and gradient calculation method can be used. The normal equation formed by block accumulation is consistent with the normal equation formed by reading all point pairs of the current data version.

[0123] After the rotation update is complete, the orthogonality of the rotation matrix is ​​checked. When the numerical error exceeds the preset precision, the rotation matrix is ​​mapped back to the rotation group through orthogonal decomposition while maintaining the determinant at 1. Before outputting the convergence loss, the 3D registration loss is recalculated using the original identical 3D point pairs to verify the consistency between the loss corresponding to the centering process and the complete loss after the closed-form determination of the translation vector.

[0124] S105, determine the acceptance threshold based on the reference residual and the preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, accept the convergence rotation. When the convergence loss is greater than the acceptance threshold, perturb the initial value of the rotation and restart the iteration. When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, select the rotation with the smallest loss among the initial value of the rotation, each convergence rotation and the relative extrinsic rotation component corresponding to the reference residual, and output the selected rotation, the corresponding translation vector and the comparison result.

[0125] In this embodiment, the acceptance threshold is determined based on the reference residual and the preset relaxation coefficient.

[0126] The acceptance threshold is: ; in, This represents the preset relaxation coefficient. This represents the reference residual corresponding to the current data version. This indicates the acceptance threshold. The preset relaxation coefficient is 1.5 for example, but it can also be set according to the acquisition noise and calculation budget.

[0127] The residuals and convergence losses use the same retained frames, identical 3D point pairs, and point pair weights, and are bound to the same data version. When the convergence loss is not greater than the acceptance threshold, the corresponding convergence rotation is accepted; when the convergence loss is greater than the acceptance threshold, a bounded restart is performed.

[0128] The initial rotation value, each convergent rotation, and the relative extrinsic rotation components corresponding to the reference residual are added to the candidate set. The initial rotation value is perturbed by a preset amplitude, and the iteration is restarted.

[0129] During candidate set initialization, initial rotation values, the convergent rotation formed in the first solution, and the relative extrinsic rotation components corresponding to the reference residual are written. Each time a new convergent rotation is formed upon restart, the corresponding convergent rotation is added to the candidate set, and the rotation value, 3D registration loss, convergence status, attempt number, and data version are recorded. Based on each candidate rotation and the current left and right weighted centroid closed-form calculation, the corresponding translation vector is determined, and the corresponding loss is calculated using the same 3D registration loss evaluation relation. When candidate set selection terminates, all candidate rotations are re-evaluated according to the current data version.

[0130] The perturbation is represented by a rotation vector. For example, the perturbation amplitude is set to 0.02 rad, and a positive or negative rotational perturbation is generated along the camera coordinate axis or a preset direction. The perturbation is exponentially mapped to form a rotation update amount. The initial rotation value is then right-multiplied by the rotation update amount to obtain a new rotation solution starting point. The translation vector is determined in a closed loop based on the new rotation solution starting point and the current left and right weighted centroids.

[0131] The preset number of restarts is set to 3, but can also be set to 3 to 5 depending on the computational budget. The first rotation solution is recorded separately, and any re-solution initiated after the first rotation solution is completed is counted in the restart count; re-solutions caused by re-filtering the current frame set are counted in the same restart count.

[0132] If the convergence loss after restarting is not greater than the acceptance threshold, accept the corresponding convergence rotation and terminate the restart. If the convergence loss after restarting is greater than the acceptance threshold and the current number of restarts is less than the preset number of restarts, continue restarting.

[0133] When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the minimum loss is selected from the candidate set.

[0134] After reaching the preset number of restarts, the initial rotation values, each convergent rotation, and the relative extrinsic rotation components corresponding to the reference residuals are re-evaluated on the current data version. The 3D registration loss corresponding to each candidate rotation is compared, and the rotation with the smallest 3D registration loss is selected. When the 3D registration losses corresponding to candidate rotations are the same, the selected rotation can be determined according to the preset candidate order to ensure consistent results in repeated processing.

[0135] Based on the selected rotation and corresponding translation vectors, the registration residual contribution of each frame and each point is determined, and the frame number and corresponding point number with the largest residual contribution are output.

[0136] For the selected rotational closed loop, determine the corresponding translation vector, and calculate the point-by-point registration residual on the corresponding 3D point pairs in the current data version. Accumulate the weighted registration residual contribution of the corresponding point pairs according to the frame number, determine the frame with the largest frame-level registration residual contribution, and identify the point with the largest registration residual contribution within that frame. Output the corresponding frame number, target point number, and residual components, used to read the original image, the local region of the target image point, and the target pose records of the left and right cameras. The diagnostic record may also include the original number of points, the sum of point pair weights, and the frame-level residual contribution.

[0137] It can also fix the filtered point set and perform a bounded restart by different rotational perturbation starting points.

[0138] After determining the screening threshold based on the standard deviation and the preset screening coefficient, the preset screening coefficient can be adjusted when the convergence loss is greater than the acceptance threshold, and the corresponding calculation data can be updated based on the current frame set after re-screening.

[0139] When the convergence loss is greater than the acceptance threshold, the preset filtering coefficient is reduced and the frames are re-filtered. When the number of retained frames is 0, the set of frames before filtering is used as the current set of frames. When there are retained frames, the retained frames are used as the current set of frames.

[0140] For example, the preset screening coefficient is adjusted from 3 to 2.5; if the convergence loss is still greater than the acceptance threshold and the screening range needs to be further tightened, the preset screening coefficient can be adjusted to 2. Re-screening is performed using the same equivalent rotation angle statistical results. When the number of retained frames after re-screening is 0, the set of frames before screening is set as the current frame set; when there are retained frames, the retained frames are set as the current frame set. When the sum of the weights of the valid point pairs corresponding to the current frame set is less than or equal to 0 or the three-dimensional geometric distribution reaches the preset degradation condition, the data version that previously met the calculation conditions is set as the current data version.

[0141] Tightening the preset screening coefficients reduces interference from observation frames with large rotational statistical biases in the extrinsic parameter solution. When re-screening and changing the corresponding 3D point pairs used in the calculation, the 3D registration loss is affected by both the number of point pairs and their spatial distribution. Therefore, the reference residual and 3D registration loss are re-determined based on the re-screened data version, and candidate rotation comparisons are performed on the same data version. The decrease in the loss value after screening reflects the registration result corresponding to the current dataset and is not directly used as a basis for judging the actual improvement in the extrinsic parameter accuracy.

[0142] Based on the current frame set, reconstruct the same 3D point pairs and redetermine the left and right weighted centroids, reference residuals, and 3D registration loss.

[0143] After the current frame set changes, the corresponding 3D point pairs are reorganized based on the frame number and target point number in the current frame set, and the corresponding point pair weights are reassigned. The left-side weighted centroid and right-side weighted centroid are re-determined based on the updated corresponding 3D point pairs. The updated point set is re-evaluated using the single-frame candidate extrinsic parameters corresponding to the current frame set. A new reference residual is determined from the corresponding evaluation residual, and the 3D registration loss is re-established. Each change in the point set results in a new data version.

[0144] The initial rotation value and each convergent rotation are evaluated based on the updated results, and rotation selection is performed.

[0145] After the current data version changes, the initial rotation values ​​and the rotation values ​​corresponding to each convergent rotation are retained, and the corresponding relative extrinsic rotation components are determined based on the updated reference residuals. The translation vectors corresponding to each candidate rotation are determined based on the updated left and right weighted centroids, and each candidate rotation is re-evaluated on the updated 3D registration loss. The recalculated 3D registration loss is used for candidate rotation comparison and rotation selection, ensuring that the candidate rotation evaluation uses the same data version as the updated reference residuals.

[0146] The iteration restarts from the initial rotation value after the disturbance, and terminates when the preset number of restarts is reached.

[0147] The perturbed initial value of the rotation is used as the starting point for the new rotation solution, and the number of restarts is accumulated. When the current frame set changes, the geometric distribution and spatial coverage of the centralized point cloud can be checked before the rotation solution. When the current data version reaches the preset degradation condition, the data version that met the calculation conditions last time is set as the current data version, and the corresponding diagnostic record is saved. Each time a numerical anomaly occurs or the calculation budget is reached during a rotation iteration, the corresponding attempt status is recorded and the number of restarts is accumulated. When the preset number of restarts is reached, the restart process is terminated.

[0148] When the reference residual is equal to 0, the acceptance threshold determined by the preset relaxation coefficient is also equal to 0. The evaluation residual of the single-frame candidate extrinsic parameter corresponding to the reference residual on the current corresponding 3D point pair is 0, and its rotation component and the corresponding translation vector determined by the current left and right weighted centroid closed form constitute the zero-loss extrinsic parameter. The rotation component is added to the candidate set, and 3D registration loss is evaluated on the current data version. When the convergence loss formed by the rotation iteration is equal to 0, the corresponding convergent rotation is accepted; when the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the smallest 3D registration loss is selected from the candidate set containing the zero-loss rotation, and the corresponding translation vector and comparison result are output.

[0149] After completing the rotation acceptance or candidate rotation selection, the corresponding translation vector is determined according to the selected rotation and the weighted centroid of the left and right paths corresponding to the current data version, forming the final extrinsic parameters from the left camera coordinate system to the right camera coordinate system.

[0150] Let the selected rotation be denoted as The corresponding translation vector is denoted as Based on the aforementioned translational closed relationship, using... , and Sure The final extrinsic parameters consist of selected rotation and corresponding translation vectors, with the transformation direction from the left camera coordinate system to the right camera coordinate system.

[0151] When inverse extrinsic parameters are needed, an inverse transformation from the right camera coordinate system to the left camera coordinate system is formed based on the transpose of the final rotation and the corresponding translation vector. Forward and inverse extrinsic parameters each store their corresponding coordinate system identifiers. Consistency checks can be performed on the forward and inverse transformations before output. When the coordinate length unit changes, the translation vector, the left and right weighted centroids, and the 3D points are converted using the same scale, while the rotation values ​​remain unchanged.

[0152] The output includes the selected rotation, the corresponding translation vector, and the comparison result. The comparison result is formed by comparing the 3D registration loss of the selected rotation on the current data version with the current acceptance threshold. The output can also save the final 3D registration loss, reference residual, preset relaxation coefficient, acceptance threshold, convergence status, current data version, and the frame number and corresponding point number with the largest residual contribution.

[0153] When point coordinates are expressed in millimeters and point-pair weights are dimensionless parameters, the point-by-point residuals are expressed in millimeters, and the weighted sum of squared distances is expressed in square millimeters. To observe average spatial differences, the final 3D registration loss can be normalized according to the sum of point-pair weights, and the corresponding root mean square distance can be determined. When the reference residual is greater than 0, the ratio of the final 3D registration loss to the reference residual can be recorded; when the reference residual is equal to 0, the final 3D registration loss, acceptance threshold, and comparison results can be recorded.

[0154] Intermediate results can also be recorded during extrinsic parameter output, current frame set updates, or upon completion of each rotation iteration. The recorded content includes acquisition identifier, data version, frame number list, point number list, point pair weights, left and right camera target poses, frame-by-frame relative extrinsic parameters, candidate evaluation residuals, left and right path weighted centroids, initial rotation value, attempt number, current rotation, corresponding translation vector, 3D registration loss, and comparison results. The recorded fields are organized from the data already generated during the corresponding processing and written to the calibration result file or structured runtime record according to preset numerical precision.

[0155] During result verification, the corresponding 3D point pairs and point pair weights of the final data version are read. Using the selected rotation and corresponding translation vectors, the left-side 3D points are transformed to the right camera coordinate system. The 3D registration loss is recalculated based on the transformed left-side and corresponding right-side 3D points and compared with the final 3D registration loss in the output record. The frame number and corresponding point number with the largest residual contribution can be used to index the original image and the corresponding target image point extraction record, which is used to check local sharpness, exposure, target visibility, and monocular pose fitting.

[0156] The following describes this embodiment with specific examples.

[0157] Set up 16 synchronized image pairs, each frame including 12 target points, arranged in 4 rows and 3 columns, with a point spacing of 20mm. The left and right image dimensions are both 1280px × 720px, the example focal length of both cameras is 1000px, and the principal point coordinates are... The example uses target images that have already undergone distortion correction.

[0158] Frames 1 to 15 are set as normal samples. The left camera target pose changes along the camera depth direction with the frame number, and different horizontal rotation angles are set in frames 3 to 13 to form different target poses; the corresponding horizontal rotation angles in frames 1, 2, 14, 15, and 16 are set to 0. The right camera target pose in frames 1 to 15 has the same rotation as the corresponding left camera target pose, and is set with a horizontal translation of approximately 100mm. Specifically, frames 1 and 15 are set with a 1mm positive translation deviation, frames 2 and 14 are set with a 1mm negative translation deviation, and frames 3 to 13 are set with a 0mm translation deviation.

[0159] Frame 16 sets a 0.2 rad rotation anomaly around the optical axis to create a rotation anomaly frame. Taking the target origin in frame 8 as an example, the left-side 3D point is... The right-side three-dimensional point is The corresponding target image points are as follows: and A total of 192 pairs of 3D points with the same name were formed in 16 frames.

[0160] The relative extrinsic rotation components corresponding to frames 1 to 15 are all identity matrices, and the equivalent rotation angle of frame 16 is 0.2 rad. The mean of the equivalent rotation angles across the 16 frames is 0.0125 rad, and the standard deviation is approximately 0.0484123 rad. With a preset filtering coefficient of 3, the filtering threshold is approximately 0.145237 rad. The angle deviation of frames 1 to 15 is 0.0125 rad, which is not greater than the filtering threshold; the angle deviation of frame 16 is 0.1875 rad, which is greater than the filtering threshold. Therefore, frames 1 to 15 are retained, resulting in 180 pairs of 3D points with the same name.

[0161] In each frame, the 8 point pairs corresponding to columns 0 and 1 are assigned a weight of 1, and the 4 point pairs corresponding to column 2 are assigned a weight of 0.25. The total weight of point pairs in each frame is 9, and the total weight of point pairs in the 15 retained frames is 135.

[0162] The candidate extrinsic parameters formed from each retained frame are uniformly evaluated using the same 180 pairs of identical 3D points and their corresponding weights. The evaluation residuals for the 11 candidate extrinsic parameters with a translation deviation of 0 mm are all 36 mm², and the evaluation residuals for the 4 candidate extrinsic parameters with a translation deviation of +1 mm or -1 mm are all 171 mm². Therefore, the reference residual is 36 mm².

[0163] Using the same points to determine the weighted centroids of the left and right paths, the weighted centroid of the left path is approximately The weighted centroid of the right side is approximately When the candidate rotation is an identity matrix, the translation vector, determined by a closed-form formula based on the correspondence between the weighted centroids of the left and right paths and the rotation, is: The corresponding 3D registration loss is .

[0164] The relative extrinsic rotation components corresponding to the 15 retained frames are all identity matrices; therefore, the rotation group mean and the initial rotation value are also identity matrices. The weighted residual gradient corresponding to this initial rotation value is 0, the rotation increment is 0, and the change in loss is 0. The gradient magnitude, the rotation increment magnitude, and the change in loss all satisfy their respective preset thresholds. Therefore, the convergent rotation is an identity matrix, and the convergence loss is 36 mm².

[0165] With a preset relaxation coefficient of 1.5, the acceptance threshold is 54 mm². The convergence loss of 36 mm² is not greater than the acceptance threshold of 54 mm², therefore the corresponding convergence rotation is accepted, and the number of restarts is 0.

[0166] The same 3D registration loss calculation relation can also be used to verify perturbation rotation. After perturbing the identity matrix around the optical axis by 0.02 rad and determining the corresponding translation vector using the same left-right weighted centroid relationship in a closed loop, the 3D registration loss is approximately 97.6214 mm², which is greater than the acceptance threshold of 54 mm². This trial result corresponds to the processing branch where the convergence loss is greater than the acceptance threshold. During bounded restart, the initial rotation value, the already formed converged rotation, and the relative extrinsic parameter rotation components corresponding to the reference residual are added to the candidate set and uniformly evaluated on the current data version.

[0167] In this example, the standard deviation of the equivalent rotation angle of the retained frames is 0. When the preset screening coefficient is adjusted from 3 to 2.5, frames 1 to 15 still meet the retention conditions. Therefore, the corresponding point set, left and right weighted centroids, reference residuals, and candidate rotation losses remain at the same value. When other input conditions cause changes in the set of retained frames, the reference residuals, left and right weighted centroids, 3D registration loss, and corresponding losses for each candidate rotation are re-determined based on the updated current frame set.

[0168] Finally, the rotation was chosen as the identity matrix, and the corresponding translation vector was... The final 3D registration loss is 36 mm², the reference residual is 36 mm², and the acceptance threshold is 54 mm². The weighted root mean square distance determined based on the final 3D registration loss and the sum of point pair weights is approximately 0.516398 mm. The final record saves 15 retained frame numbers, 180 indexes of identical 3D point pairs, a total point pair weight of 135, the selected rotation, the corresponding translation vector, and the comparison results.

[0169] For the purpose of simplicity, the method steps disclosed in the above embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0170] like Figure 2 As shown, the present invention also provides an extrinsic parameter calibration system for a binocular vision system, comprising: The 3D recovery module 201 is configured to acquire multiple frames of synchronized target images, calculate the target poses of the left and right cameras based on the nominal geometry of the target participating in the camera, and form left-path 3D points, right-path 3D points and pairs of 3D points with the same name. Referring to the residual module 202, it is configured to composite the target pose frame by frame to obtain relative extrinsic parameters, evaluate each relative extrinsic parameter based on the preset point pair weights and the same three-dimensional point pairs, and form a reference residual; The translation elimination module 203 is configured to determine the left-side weighted centroid and the right-side weighted centroid according to the point-pair weights, determine the translation vector in a closed loop based on the correspondence between the left and right-side weighted centroids and rotation, and construct a three-dimensional registration loss with rotation as the variable to be optimized. The rotation iteration module 204 is configured to use the rotation group mean of the relative external parameter rotation components as the initial value of rotation, and iteratively solve the convergence rotation and convergence loss of the three-dimensional registration loss. The bounded restart output module 205 is configured to determine an acceptance threshold based on the reference residual and a preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, the convergence rotation is accepted. When the convergence loss is greater than the acceptance threshold, the initial value of the rotation is perturbed and the iteration is restarted. When a preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the smallest loss is selected from the initial value of the rotation, each convergence rotation, and the relative extrinsic rotation component corresponding to the reference residual. The selected rotation, the corresponding translation vector, and the comparison result are then output.

[0171] It is worth noting that although only some basic functional modules are disclosed in the embodiments of this invention, it does not mean that the composition of this system is limited to the above-mentioned basic functional modules. On the contrary, based on the above-mentioned basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with existing technology to form an infinite number of embodiments or technical solutions. That is to say, this system is open rather than closed. The fact that this embodiment only discloses a few basic functional modules should not be considered as the scope of protection of this invention being limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described separately according to their functions as various units and modules. Of course, in implementing this invention, the functions of each unit and module can be implemented in one or more software and / or hardware.

[0172] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for calibrating extrinsic parameters of a binocular vision system, characterized in that, include: Acquire multiple frames of synchronized target images, and calculate the target poses of the left and right cameras based on the nominal geometry of the target participating in the camera, forming left-path 3D points, right-path 3D points and pairs of 3D points with the same name; The target pose is composited frame by frame to obtain relative extrinsic parameters. Each relative extrinsic parameter is evaluated based on the preset point pair weights and the corresponding 3D point pairs to form a reference residual. The left and right weighted centroids are determined according to the point pair weights. The translation vector is determined in a closed loop based on the correspondence between the left and right weighted centroids and rotation. The three-dimensional registration loss is constructed with rotation as the variable to be optimized. Using the rotation group mean of the relative extrinsic rotation components as the initial value of rotation, the convergent rotation and convergent loss of the three-dimensional registration loss are iteratively solved. The acceptance threshold is determined based on the reference residual and the preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, the convergence rotation is accepted. When the convergence loss is greater than the acceptance threshold, the initial value of the rotation is perturbed and the iteration is restarted. When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the smallest loss is selected from the initial value of the rotation, each convergence rotation and the relative extrinsic rotation component corresponding to the reference residual. The selected rotation, the corresponding translation vector and the comparison result are output.

2. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, Based on the nominal geometry of the target within the camera, the poses of the left and right cameras are calculated separately, forming left-path 3D points, right-path 3D points, and pairs of corresponding 3D points, further including: Target image points of the left and right cameras are extracted from the synchronized target image respectively, and target image points with the same name are determined according to the target point number; The target nominal geometry is represented as spatial coordinates in the target coordinate system. The target pose of the left camera is calculated using the target image point of the left camera, the intrinsic parameters of the left camera, and the spatial coordinates. The target pose of the right camera is calculated using the target image point of the right camera, the intrinsic parameters of the right camera, and the spatial coordinates. The spatial coordinates are transformed to the corresponding camera coordinate system based on the target poses of the left camera and the right camera, respectively, to obtain the left-path 3D point and the right-path 3D point, and the same-name 3D point pair is formed according to the target point number.

3. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, Before forming the reference residual based on the preset point pair weights and the relative extrinsic parameters of the corresponding 3D point pairs, the process also includes: The equivalent rotation angle is determined based on the rotation component of the relative extrinsic parameter in each frame, and the mean and standard deviation of the equivalent rotation angle are calculated. Based on the standard deviation and the preset screening coefficient, a screening threshold is determined. According to the comparison result of the deviation of the equivalent rotation angle of each frame relative to the mean and the screening threshold, frames with a deviation not greater than the screening threshold are retained, and frames and target points with a deviation greater than the screening threshold are removed. The reference residual and the 3D registration loss are constructed using the relative extrinsic parameters of the retained frames and the corresponding 3D point pairs.

4. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, Using the rotation group mean of the relative extrinsic rotation components as the initial value for rotation, it further includes: Candidate mean rotations are set in the rotation group, and frame-by-frame relative rotations are formed based on the relative rotation relationship between the candidate mean rotations and the relative extrinsic rotation components of each frame. The frame-by-frame relative rotation is mapped to the Lie algebra space, and the rotation update amount is determined based on the mapping result; The candidate mean rotation is iteratively updated based on the rotation update amount. When the overall rotation deviation of the frame-by-frame relative rotation reaches its minimum, the corresponding candidate mean rotation is used as the initial rotation value.

5. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, Based on the preset point pair weights and the relative extrinsic parameters evaluated by the corresponding 3D point pairs, a reference residual is formed, which further includes: The target pose of the right camera and the target pose of the left camera in each frame are combined to form a single-frame candidate extrinsic parameter containing rotation and translation components. By fixing the same-name 3D point pairs and the point pair weights, the left-path 3D points are transformed to the right camera coordinate system one by one using the single-frame candidate extrinsic parameters; Based on the three-dimensional distance between the transformed left-path three-dimensional point and the corresponding right-path three-dimensional point and the point pair weight, the evaluation residual of each single-frame candidate extrinsic parameter is determined; The minimum value of all the evaluation residuals is taken as the reference residual.

6. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, The left and right weighted centroids are determined according to the point pair weights. The translation vector is determined in a closed loop based on the correspondence between the left and right weighted centroids and rotation. A three-dimensional registration loss is constructed using rotation as the variable to be optimized. Further steps include: Read the point pair weights determined based on the target image point extraction quality or a preset calibration area, wherein the point pair weights are non-negative and the total weight is positive; The left-path weighted centroid and the right-path weighted centroid are determined based on the point-pair weights, respectively. In each rotation iteration, the translation vector is updated in a closed loop according to the correspondence between the current rotation and the weighted centroids of the left and right paths, and the three-dimensional registration loss is updated based on the updated translation vector.

7. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, The iterative solution of the convergence rotation and convergence loss of the three-dimensional registration further includes: The left-path 3D points and the right-path 3D points are centered based on the left-path weighted centroid and the right-path weighted centroid, respectively, to form centered point pairs; Based on the centralized point pairs, determine the rotation registration residuals and the Jacobian with respect to the rotation increment. Combine the point pair weights to construct the damped least squares normal equation and solve for the rotation increment. The rotation increment is converted into a rotation update amount through a Lie algebra exponential mapping, and the current rotation and the 3D registration loss are updated based on the rotation update amount. The gradient magnitude, rotation increment magnitude, and loss change are compared with their respective preset thresholds. When the gradient magnitude, rotation increment magnitude, and loss change are all less than their respective preset thresholds, the converged rotation and the converged loss are output. When the gradient magnitude, rotation increment magnitude, or loss change is greater than their respective preset thresholds, the iteration continues.

8. The extrinsic parameter calibration method for a binocular vision system according to claim 1, characterized in that, When the convergence loss exceeds the acceptance threshold, the initial rotation value is perturbed and the iteration is restarted, further including: Add the initial rotation value, each convergent rotation, and the relative extrinsic rotation component corresponding to the reference residual to the candidate set, perturb the initial rotation value by a preset amplitude, and restart the iteration; When the convergence loss after restarting is not greater than the acceptance threshold, the corresponding convergent rotation is accepted and the restart is terminated. When the preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the rotation with the smallest loss is selected from the candidate set. Based on the selected rotation and corresponding translation vectors, the registration residual contribution of each frame and each point is determined, and the frame number and corresponding point number with the largest residual contribution are output.

9. The extrinsic parameter calibration method for a binocular vision system according to claim 3, characterized in that, After determining the screening threshold based on the standard deviation and the preset screening coefficient, the process further includes: When the convergence loss is greater than the acceptance threshold, the preset filtering coefficient is reduced and the frames are re-filtered. When there are no retained frames, the set of frames before filtering is used as the current frame set. When there are retained frames, the retained frames are used as the current frame set. Based on the current frame set, reconstruct the same 3D point pairs and redetermine the left and right weighted centroids, reference residuals, and 3D registration loss; Based on the updated results, the initial rotation value, each convergent rotation, and the relative extrinsic rotation components corresponding to the reference residual are evaluated and rotation selection is performed. The iteration is restarted from the perturbed initial rotation value. When the preset number of restarts is reached, the restart is terminated.

10. An extrinsic parameter calibration system for a binocular vision system, characterized in that, include: The 3D reconstruction module is configured to acquire multiple frames of synchronized target images, calculate the target pose of the left and right cameras based on the nominal geometry of the target within the camera, and form left-path 3D points, right-path 3D points and pairs of 3D points with the same name. The reference residual module is configured to composite the target pose frame by frame to obtain relative extrinsic parameters, and evaluate each relative extrinsic parameter based on the preset point pair weights and the corresponding three-dimensional point pairs to form a reference residual. The translation elimination module is configured to determine the left and right weighted centroids according to the point pair weights, determine the translation vector in a closed loop based on the correspondence between the left and right weighted centroids and rotation, and construct a three-dimensional registration loss with rotation as the variable to be optimized. The rotation iteration module is configured to use the rotation group mean of the relative external parameter rotation components as the initial value of rotation, and iteratively solve the convergence rotation and convergence loss of the three-dimensional registration loss. The bounded restart output module is configured to determine an acceptance threshold based on the reference residual and a preset relaxation coefficient. When the convergence loss is not greater than the acceptance threshold, the convergence rotation is accepted. When the convergence loss is greater than the acceptance threshold, the initial value of the rotation is perturbed and the iteration is restarted. When a preset number of restarts is reached and the convergence loss is still greater than the acceptance threshold, the module selects the rotation with the smallest loss among the initial value of the rotation, each convergence rotation, and the relative extrinsic rotation component corresponding to the reference residual, and outputs the selected rotation, the corresponding translation vector, and the comparison result.