Multi-camera calibration quality optimization method and electronic device

By combining meta-learning and reinforcement learning, a multi-camera calibration quality optimization method is developed. This method utilizes a physical consistency scoring network and Bayesian optimization to address the problem of insufficient adaptability in the multi-camera calibration quality assessment and optimization process, thereby achieving more efficient calibration parameter optimization and consistency assessment.

CN123181589APending Publication Date: 2026-11-27YOUDI ROBOT (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611283055.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the existing multi-camera calibration quality assessment and optimization process, it is difficult to fully reflect the impact of calibration parameter changes and error spatial distribution on calibration quality, resulting in limited adaptability and difficulty in improving overall performance while ensuring the reliability of calibration results.

Method used

By using a meta-learning physical consistency scoring network, combined with physical sensitivity maps and reinforcement learning, the motion commands of the calibration board are determined, and the calibration parameters are iteratively optimized using physical-guided Bayesian optimization, thus constructing a multi-camera calibration quality optimization method.

Benefits of technology

It improves the overall performance of multi-camera calibration quality assessment and optimization, enhances adaptability to different cameras and calibration scenarios, and ensures the physical consistency and geometric accuracy of calibration results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181589A_ABST
    Figure CN123181589A_ABST
Patent Text Reader

Abstract

The application provides a multi-camera calibration quality optimization method and an electronic device. The method comprises the following steps: determining a physical consistency score through a meta-learning physical consistency scoring network based on a calibration parameter vector and a spatial distribution statistical feature of a calibration error; constructing a physical sensitivity map based on the calibration parameter vector and the physical consistency score; determining a motion instruction of a calibration board through reinforcement learning based on the physical consistency score and the physical sensitivity map; adjusting the pose of the calibration board based on the motion instruction, and obtaining multi-camera calibration data after the pose adjustment; and iteratively optimizing the calibration parameter vector through physical-guided Bayesian optimization based on the multi-camera calibration data after the pose adjustment, so that a more reasonable optimized calibration parameter vector can be obtained, thereby improving the overall performance of multi-camera calibration quality evaluation and optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of computer science and technology, and in particular to a method and electronic device for multi-camera calibration quality optimization. Background Technology

[0002] In recent years, with the development of computer vision, intelligent perception and multi-camera collaborative technology, multi-camera calibration has been widely used in various vision applications because it can provide a unified geometric relationship for tasks such as 3D reconstruction, augmented reality, robot vision and multi-view measurement.

[0003] However, taking existing multi-camera calibration quality assessment as an example, it usually relies mainly on geometric indicators such as reprojection error, the mean and variance of reprojection error, and epipolar geometric error to evaluate the calibration results. These indicators mainly reflect the geometric accuracy of the calibration results and are difficult to fully reflect the impact of changes in calibration parameters and spatial distribution of calibration errors on calibration quality. This limits the adaptability of calibration quality assessment when facing different cameras or different calibration scenarios, making it difficult to improve the overall performance of multi-camera calibration quality assessment and optimization while ensuring the reliability of calibration results. Summary of the Invention

[0004] The multi-camera calibration quality optimization method and electronic device provided in this application aim to solve the problem of poor overall performance in the existing multi-camera calibration quality evaluation and optimization process.

[0005] In a first aspect, embodiments of this application provide a method for optimizing the quality of multi-camera calibration. This method includes: determining a physical consistency score using a meta-learning physical consistency scoring network based on the spatial distribution statistical characteristics of the calibration parameter vector and the calibration error; constructing a physical sensitivity map based on the calibration parameter vector and the physical consistency score; determining motion commands for the calibration board using reinforcement learning based on the physical consistency score and the physical sensitivity map; adjusting the pose of the calibration board based on the motion commands and acquiring multi-camera calibration data after pose adjustment; and iteratively optimizing the calibration parameter vector using physics-guided Bayesian optimization based on the pose-adjusted multi-camera calibration data to obtain an optimized calibration parameter vector.

[0006] Secondly, embodiments of this application provide an electronic device. The electronic device includes a processor and a memory, wherein the memory stores computer program instructions, which, when invoked by the processor, cause the processor to execute the multi-camera calibration parameter optimization method as described above.

[0007] The beneficial effects of the multi-camera calibration quality optimization method provided in this application are as follows: By utilizing the spatial distribution statistical characteristics of the calibration parameter vector and calibration error, a physical consistency score is determined using a meta-learning physical consistency scoring network, enabling the physical consistency score to adjust with changes in the calibration parameter vector and calibration error; a physical sensitivity map is constructed using the calibration parameter vector and physical consistency score, and the motion commands of the calibration board are determined through reinforcement learning in conjunction with the physical consistency score and physical sensitivity map, making the pose adjustment of the calibration board more suitable for the current physical consistency score and physical sensitivity map; by iteratively optimizing the calibration parameter vector using the pose-adjusted multi-camera calibration data and physically guided Bayesian optimization, a more reasonable optimized calibration parameter vector can be obtained, thereby improving the overall performance of multi-camera calibration quality evaluation and optimization. Attached Figure Description

[0008] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0009] Figure 1 A schematic diagram illustrating the multi-camera calibration quality optimization method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the architecture of the multi-camera calibration quality optimization device provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0010] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0011] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this application do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.

[0012] The technical solution of this application is described in detail below.

[0013] Figure 1 This is a schematic diagram illustrating a multi-camera calibration quality optimization method provided in an embodiment of this application. Figure 1 As shown, this multi-camera calibration quality optimization method is applied to electronic devices, such as robots, robotic arms, and other devices with data processing capabilities. The method includes: S110. Based on the spatial distribution statistical characteristics of the calibration parameter vector and calibration error, the physical consistency score is determined through a meta-learning physical consistency scoring network. The "calibration parameter vector" refers to the set of parameters used to characterize the multi-camera calibration results. The calibration parameter vector can include camera intrinsic parameters, camera extrinsic parameters, distortion coefficients, etc. The camera intrinsic parameters can include focal length and principal point coordinates, the camera extrinsic parameters can include elements of the rotation matrix and elements of the translation vector, and the distortion coefficients are used to characterize lens distortion generated during camera imaging.

[0014] "Spatial distribution statistical characteristics of calibration error" refers to the statistical characteristics used to characterize the distribution of calibration error in different locations or regions. These characteristics may include the mean, variance, skewness, and kurtosis of the calibration error.

[0015] A "physical consistency scoring network" refers to a neural network used to evaluate the physical consistency of multi-camera calibration results based on the spatial distribution statistical characteristics of calibration parameter vectors and calibration errors. A physical consistency scoring network can include an input layer, multiple hidden layers, and an output layer. The input layer receives the calibration parameter vectors and the spatial distribution statistical characteristics of the calibration errors; the hidden layers extract the nonlinear correlation features between different calibration parameters; and the output layer outputs the physical consistency score.

[0016] "Meta-learning" refers to a learning method that uses multiple calibration tasks to train a physical consistency scoring network in order to obtain initial network parameters that can quickly adapt to new cameras or new calibration scenarios.

[0017] "Physical consistency score" refers to an evaluation value used to characterize the degree to which the current calibration result conforms to physical laws or physical constraints. The physical consistency score can be a value in the range of zero to one. The higher the physical consistency score, the higher the physical consistency of the current calibration result.

[0018] In some embodiments, the spatial distribution statistical features of the calibration parameter vector and the calibration error are input into the physical consistency scoring network trained by meta-learning. The physical consistency scoring network performs a comprehensive analysis on the distribution of calibration parameters and calibration errors and outputs the corresponding physical consistency score. This can realize the quantitative evaluation of the physical consistency of multi-camera calibration results and improve the adaptability of calibration quality assessment under different cameras and different calibration scenarios.

[0019] S120. Construct a physical sensitivity map based on the calibration parameter vector and the physical consistency score; Among them, the "physical sensitivity map" refers to the data structure used to characterize the physical sensitivity of the calibration board under different positions and orientations.

[0020] In some embodiments, parameter perturbation is applied to each calibration parameter in the calibration parameter vector, and the physical sensitivity corresponding to each calibration parameter is determined based on the change in physical consistency score before and after parameter perturbation; then the physical sensitivity corresponding to different positions and attitudes in the calibration board workspace is determined, and the physical sensitivity corresponding to different positions and attitudes is interpolated to construct a continuous physical sensitivity map.

[0021] S130. Based on the physical consistency score and the physical sensitivity map, determine the motion command of the calibration board through reinforcement learning; Among them, "motion command" refers to the control information used to control changes in the position and / or attitude of the calibration plate.

[0022] In some embodiments, the physical consistency score and physical sensitivity map are used as inputs to the motion planning policy network as the current state. The motion planning policy is trained by reinforcement learning based on the increase in the physical consistency score, the motion smoothness penalty, and the physical constraint violation penalty. This can determine the calibration board motion instructions that are appropriate to the current calibration state, thereby improving the targeting and adaptability of the calibration board motion trajectory planning.

[0023] S140. Adjust the pose of the calibration plate based on the motion command, and obtain the multi-camera calibration data after pose adjustment; Among them, "the pose of the calibration board" refers to the position and orientation of the calibration board in the multi-camera calibration space.

[0024] "Multi-camera calibration data after pose adjustment" refers to the calibration data collected by multiple cameras on the calibration board after the pose of the calibration board has been changed according to the motion command.

[0025] In some embodiments, the calibration board is controlled to change its current position and attitude according to motion commands, and calibration data corresponding to multiple cameras is collected after the calibration board completes the pose adjustment. This can obtain multi-camera calibration data under different positions and attitudes, providing a data basis for subsequent iterative optimization of calibration parameters.

[0026] S150. Based on the multi-camera calibration data after pose adjustment, the calibration parameter vector is iteratively optimized through physical-guided Bayesian optimization to obtain the optimized calibration parameter vector.

[0027] The above steps are executed iteratively until a preset stopping condition is met, resulting in an optimized calibration parameter vector. The preset stopping condition includes reaching the maximum number of iterations and / or the physical consistency score and geometric error meeting a preset convergence threshold.

[0028] Among them, "physically guided Bayesian optimization" refers to introducing physical consistency scores or information related to physical consistency into the Bayesian optimization process to guide the search direction of calibration parameters in the parameter space, so that the calibration parameter optimization process takes into account geometric accuracy, physical consistency and the uncertainty of parameter search.

[0029] "Optimized calibration parameter vector" refers to the set of calibration parameters that has better calibration quality than the original calibration parameter vector, obtained after multiple Bayesian optimization iterations.

[0030] In some embodiments, calibration parameters, geometric errors, and physical consistency scores are determined based on pose-adjusted multi-camera calibration data. A Gaussian process model is used to predict the physical consistency scores and uncertainties corresponding to different sampling points. Then, the next sampling point is determined through a physical-guided acquisition function, and the Gaussian process model is iteratively updated. This enables iterative search and optimization of the calibration parameter vector.

[0031] In this embodiment, the physical consistency score is determined by using the spatial distribution statistical characteristics of the calibration parameter vector and calibration error, and a meta-learning physical consistency scoring network is used. This allows the physical consistency score to be adjusted according to changes in the calibration parameter vector and calibration error. A physical sensitivity map is constructed using the calibration parameter vector and physical consistency score. The motion commands of the calibration board are determined by reinforcement learning in combination with the physical consistency score and physical sensitivity map. This makes the pose adjustment of the calibration board more suitable for the current physical consistency score and physical sensitivity map. The calibration parameter vector is iteratively optimized using the multi-camera calibration data after pose adjustment and physical-guided Bayesian optimization to obtain a more reasonable optimized calibration parameter vector, thereby improving the overall performance of multi-camera calibration quality assessment and optimization.

[0032] In some embodiments, S110 specifically includes: S111. Obtain multiple meta-training tasks, and perform inner loop gradient updates on the physical consistency scoring network based on each meta-training task to obtain the weights of each meta-training task. The "meta-training task" refers to the calibration task used to train the physical consistency scoring network and learn initial network parameters that can quickly adapt to different calibration scenarios. Each meta-training task may include a small number of calibration data samples, and each calibration data sample may include a calibration parameter vector and a corresponding quality label.

[0033] "Weights for each meta-training task" refers to the network parameters obtained after the physical consistency scoring network is updated by the inner loop gradient of the corresponding meta-training task.

[0034] In some embodiments, corresponding training data are obtained from multiple meta-training tasks, and preset initial network weights are used as the starting weights for inner loop training of each meta-training task. For each meta-training task, the physical consistency scoring network is updated several times using the corresponding training data, such as five gradient updates, to obtain the weights corresponding to each meta-training task.

[0035] S112. Based on the weight of each meta-training task, determine the task loss of the physical consistency scoring network on the corresponding validation set, and sum the task losses corresponding to multiple meta-training tasks to obtain the meta-loss. The "validation set" refers to the dataset associated with the corresponding meta-training task and used to evaluate the performance of the physical consistency scoring network after the inner loop gradient update.

[0036] "Task loss" refers to the loss value determined based on the difference between the prediction result and the quality label after the physical consistency scoring network, which has been updated by the inner loop gradient, processes the data in the corresponding validation set. It is used to evaluate the scoring ability of the physical consistency scoring network after rapid adaptation.

[0037] "Meta-loss" refers to the loss value calculated by comprehensively considering the task losses corresponding to multiple meta-training tasks.

[0038] In some embodiments, the weights obtained after updating the gradient of each meta-training task through the inner loop are applied to the corresponding validation sets, the task loss of the physical consistency scoring network on each validation set is calculated, and the task losses corresponding to multiple meta-training tasks are summed to obtain the meta-loss that reflects the overall adaptive performance of multiple calibration tasks.

[0039] S113. Based on the meta-loss, the weights and inner loop learning rate of the physical consistency scoring network are updated in the outer loop to obtain the meta-trained physical consistency scoring network. The "inner loop learning rate" refers to the parameter used to control the magnitude of network parameter updates during the inner loop gradient update process for a single calibration task. The inner loop learning rate can be treated as a learnable parameter and adjusted based on the meta-loss during the outer loop training process.

[0040] "Meta-trained physical consistency scoring network" refers to a physical consistency scoring network obtained after multiple meta-training tasks involving inner and outer loop training, which has the ability to quickly adapt to different cameras or different calibration scenarios.

[0041] In some embodiments, backpropagation is performed based on the meta-loss to calculate the gradient of the meta-loss with respect to the initial weights and inner loop learning rate of the physical consistency scoring network, and the initial weights and inner loop learning rate are updated based on the gradient. By repeatedly performing inner loop updates and outer loop updates corresponding to multiple meta-training tasks, the physical consistency scoring network can obtain initial weights and inner loop learning rates applicable to multiple calibration tasks, thereby improving the physical consistency scoring network's ability to quickly adapt to new calibration tasks.

[0042] S114. Based on the current calibration task, perform an inner loop gradient update on the meta-trained physical consistency scoring network to obtain the physical consistency scoring network corresponding to the current calibration task. Among them, "current calibration task" refers to the calibration task corresponding to the camera or calibration scene that needs to be calibrated for quality assessment.

[0043] "The physical consistency scoring network corresponding to the current calibration task" refers to the scoring network obtained by using the meta-trained physical consistency scoring network as the initial state and performing an inner loop gradient update using a small amount of calibration data corresponding to the current calibration task.

[0044] In some embodiments, a small amount of calibration data corresponding to the current calibration task is obtained, and the network parameters of the meta-trained physical consistency scoring network are used as initial parameters to perform several gradient updates on the physical consistency scoring network, thereby obtaining a physical consistency scoring network adapted to the current camera or the current calibration scene. Since the initial network parameters already contain meta-knowledge learned from multiple historical calibration tasks, rapid adaptation to the current calibration task can be achieved with fewer training samples and fewer gradient updates.

[0045] S115. Input the calibration parameter vector and the spatial distribution statistical characteristics of the calibration error into the physical consistency scoring network corresponding to the current calibration task to obtain the physical consistency score.

[0046] In some embodiments, the calibration parameter vector and the spatial distribution statistical features of the calibration error corresponding to the current calibration task are combined and input into the physical consistency scoring network after the current task has been adapted. The correlation features between the calibration parameters and the calibration error distribution are extracted through the physical consistency scoring network, and the corresponding physical consistency score is output, which can realize the quantitative evaluation of the physical consistency of the current multi-camera calibration results.

[0047] In this embodiment, by performing inner loop gradient updates on multiple meta-training tasks and determining the meta-loss based on the task loss on the corresponding validation set, and simultaneously updating the weights and inner loop learning rate of the physical consistency scoring network according to the meta-loss, the adaptability of the physical consistency scoring network to different calibration tasks can be improved. By performing inner loop gradient updates on the current calibration task, the physical consistency scoring network can quickly adapt to the current calibration task, thereby obtaining the corresponding physical consistency score based on the spatial distribution statistical characteristics of the calibration parameter vector and calibration error.

[0048] In some embodiments, S120 specifically includes: S121. Apply parameter perturbation to each calibration parameter in the calibration parameter vector to obtain the perturbed calibration parameters; Here, "parameter perturbation" refers to applying a preset magnitude of parameter change to the calibration parameter to be analyzed while keeping other calibration parameters constant. The perturbation amount can be a preset small value, or it can be determined separately according to the value range of different calibration parameters.

[0049] "Perturbated calibration parameters" refers to the calibration parameters obtained after applying parameter perturbation to the target calibration parameters in the calibration parameter vector.

[0050] In some embodiments, each calibration parameter in the calibration parameter vector is selected sequentially, and while keeping other calibration parameters unchanged, a preset perturbation amount is added to the currently selected calibration parameter to obtain the perturbed calibration parameter corresponding to the current calibration parameter. By performing parameter perturbation on each calibration parameter separately, a data basis can be provided for subsequent analysis of the influence of different calibration parameters on the physical consistency score.

[0051] S122. Based on the calibration parameters after the disturbance, determine the physical consistency score after the disturbance through the physical consistency scoring network; Among them, the "physical consistency score after perturbation" refers to the evaluation value output by the physical consistency scoring network after the calibration parameters are perturbed, which reflects the degree of physical consistency of the calibration results after the perturbation.

[0052] In some embodiments, the perturbed calibration parameters corresponding to each calibration parameter are input into the physical consistency scoring network, and the perturbed calibration parameters are processed by the physical consistency scoring network to obtain the physical consistency score corresponding to each calibration parameter when it is perturbed.

[0053] S123. Based on the change between the physical consistency score before the disturbance and the physical consistency score after the disturbance, determine the physical sensitivity corresponding to each calibration parameter; Here, "change" refers to the difference between the physical consistency scores before and after a disturbance of the same calibration parameter.

[0054] "Physical sensitivity" is an indicator used to characterize the degree of impact of changes in calibration parameters on the physical consistency score. The greater the change in the physical consistency score before and after parameter perturbation, the higher the physical sensitivity of the corresponding calibration parameter; the smaller the change in the physical consistency score, the lower the physical sensitivity of the corresponding calibration parameter.

[0055] In some embodiments, the change in physical consistency score before and after the perturbation of each calibration parameter is calculated, and the physical sensitivity of the corresponding calibration parameter is determined based on each change. By determining the physical sensitivity of multiple calibration parameters, the influence of different calibration parameters on the physical consistency of multi-camera calibration quality can be quantified, providing a basis for the subsequent construction of physical sensitivity vectors.

[0056] S124. Normalize the physical sensitivity corresponding to each calibration parameter and construct a physical sensitivity vector; The "physical sensitivity vector" refers to the vector obtained by combining the normalized physical sensitivities corresponding to multiple calibration parameters according to the order of the calibration parameters in the calibration parameter vector.

[0057] In some embodiments, the maximum value of the physical sensitivity corresponding to multiple calibration parameters is determined, and the physical sensitivity corresponding to each calibration parameter and the maximum value are used for normalization calculation so that the normalized physical sensitivity is within the numerical range of zero to one; then, the multiple normalized physical sensitivities are arranged according to the order of each calibration parameter in the calibration parameter vector to form a physical sensitivity vector.

[0058] S125. Discretize the working space of the calibration board to obtain multiple discrete grid points corresponding to different positions and attitudes; Among them, "workspace" refers to the range of positions that the index calibration plate can reach and the range of attitudes that it can form during the multi-camera calibration process.

[0059] "Discrete grid points" refers to the combination of positions and orientations formed after discretizing the calibration board's workspace.

[0060] In some embodiments, the range of three-dimensional positions that the calibration plate can reach is divided into multiple three-dimensional spatial grids, and the range of attitudes that the calibration plate can form is divided into multiple discrete attitudes. Then, different positions and attitudes are combined to obtain multiple discrete grid points.

[0061] S126. Construct the physical sensitivity map based on the position and orientation of each discrete grid point.

[0062] In some embodiments, the calibration board is adjusted to the position and attitude corresponding to each discrete grid point, and the corresponding multi-camera calibration data is obtained; the calibration parameters corresponding to each discrete grid point are determined according to the multi-camera calibration data, and the physical sensitivity vector corresponding to each discrete grid point is determined according to the aforementioned physical sensitivity calculation method; then, the physical sensitivity vectors corresponding to multiple discrete grid points are interpolated to determine the physical sensitivity vectors corresponding to continuous positions and attitudes, thereby constructing a continuous physical sensitivity map.

[0063] In some embodiments, for any continuous position and attitude, multiple discrete grid points adjacent to the spatial position and attitude can be selected, and the corresponding physical sensitivity vector can be weighted and calculated based on the distance between each discrete grid point and the current continuous position and attitude. Linear interpolation or spline interpolation can be used to improve the continuity of physical sensitivity queries between discrete grid points.

[0064] In this embodiment, parameter perturbation is applied to each calibration parameter in the calibration parameter vector, and the corresponding physical sensitivity is determined based on the change in physical consistency score before and after the perturbation. At the same time, the physical sensitivity is normalized and a physical sensitivity vector is constructed. A physical sensitivity map can be constructed by combining discrete grid points corresponding to different positions and attitudes in the calibration board workspace, so that the physical sensitivity map reflects the physical sensitivity of each calibration parameter under different positions and attitudes.

[0065] In some embodiments, S126 specifically includes: S1261. Based on the position and attitude of each discrete grid point, obtain the multi-camera calibration data corresponding to each discrete grid point; Here, "the position and attitude corresponding to the discrete grid point" refers to the spatial position and attitude of each discrete grid point after the calibration board's workspace has been discretized. The spatial position can be represented by three-dimensional coordinates, and the spatial attitude can be represented by a rotation matrix or other attitude parameters.

[0066] "Multi-camera calibration data" refers to the data collected by multiple cameras when the calibration board is in the corresponding position and attitude, which is used to perform multi-camera calibration.

[0067] In some embodiments, the calibration board is sequentially adjusted to the position and orientation corresponding to each discrete grid point, and after the calibration board reaches the corresponding position and orientation, multiple cameras acquire images of the calibration board to obtain multi-camera calibration data corresponding to each discrete grid point.

[0068] S1262. Based on the multi-camera calibration data corresponding to each discrete grid point, determine the calibration parameters corresponding to each discrete grid point; Among them, "calibration parameters corresponding to discrete grid points" refers to camera calibration parameters calculated based on multi-camera calibration data collected when the calibration board is located at the corresponding discrete grid points.

[0069] In some embodiments, calibration calculations are performed on the multi-camera calibration data corresponding to each discrete grid point to obtain the camera intrinsic parameters, camera extrinsic parameters, and distortion coefficients corresponding to each discrete grid point. Based on the obtained parameters, calibration parameters corresponding to each discrete grid point are formed to reflect the calibration parameter state when the calibration board is in different positions and attitudes.

[0070] S1263. Based on the calibration parameters corresponding to each discrete grid point, determine the physical sensitivity vector corresponding to each discrete grid point; Among them, the "physical sensitivity vector corresponding to discrete grid points" refers to the vector formed by calculating the degree of influence of each calibration parameter on the physical consistency score based on the calibration parameters corresponding to the current discrete grid points.

[0071] In some embodiments, for each calibration parameter corresponding to a discrete grid point, parameter perturbation is applied to each calibration parameter, and the change in physical consistency score before and after parameter perturbation is determined by a physical consistency scoring network; the physical sensitivity corresponding to each calibration parameter is determined based on the score change, and multiple physical sensitivities are normalized and ordered to obtain the physical sensitivity vector corresponding to each discrete grid point.

[0072] S1264. Based on the physical sensitivity vectors corresponding to multiple discrete grid points, perform interpolation processing to determine the physical sensitivity vectors corresponding to continuous positions and attitudes. "Interpolation processing" refers to the process of calculating the physical sensitivity vectors corresponding to the continuous positions and attitudes of discrete grid points using the physical sensitivity vectors corresponding to multiple known discrete grid points. Interpolation processing can employ linear interpolation, spline interpolation, or distance-weighted interpolation methods.

[0073] "Physical sensitivity vector corresponding to continuous position and attitude" refers to the physical sensitivity vector obtained by interpolating the physical sensitivity vectors corresponding to adjacent discrete grid points for positions and attitudes that are not directly set as discrete grid points in the calibration board's workspace.

[0074] In some embodiments, for any continuous position and attitude in the calibration board workspace, multiple discrete grid points adjacent to the current continuous position and attitude are selected, for example, eight adjacent discrete grid points are selected; interpolation weights are determined based on the distance between each discrete grid point and the current continuous position and attitude, and the physical sensitivity vectors corresponding to the multiple discrete grid points are weighted and calculated to obtain the physical sensitivity vector corresponding to the current continuous position and attitude.

[0075] S1265. Construct the physical sensitivity map based on the physical sensitivity vectors corresponding to the continuous positions and attitudes.

[0076] In some embodiments, physical sensitivity vectors corresponding to multiple consecutive positions and orientations within the calibration board's workspace are organized and stored to form a physical sensitivity map that provides physical sensitivity information corresponding to different positions and orientations. The physical sensitivity map can be stored in the form of a lookup table, or a regression neural network can be trained using the positions, orientations, and physical sensitivity vectors corresponding to multiple discrete grid points to determine the physical sensitivity vectors corresponding to consecutive positions and orientations.

[0077] In this embodiment, multi-camera calibration data is obtained based on the position and attitude of each discrete grid point, and the corresponding calibration parameters and physical sensitivity vectors are determined based on the multi-camera calibration data. At the same time, the physical sensitivity vectors corresponding to multiple discrete grid points are interpolated to determine the physical sensitivity vectors corresponding to continuous positions and attitudes, thereby constructing a physical sensitivity map that reflects the physical sensitivity vectors corresponding to continuous positions and attitudes.

[0078] In some embodiments, S130 specifically includes: S131. Determine the current state based on the physical consistency score and the physical sensitivity map; Here, "current state" refers to the state information used to characterize the current multi-camera calibration status and serve as input for reinforcement learning.

[0079] In some embodiments, the physical consistency score corresponding to the current calibration result is combined with the currently constructed physical sensitivity map to form the current state corresponding to the reinforcement learning process.

[0080] S132. Determine the reward function based on the improvement amount of the physical consistency score, the motion smoothness penalty, and the physical constraint violation penalty; The "improvement in physical consistency score" refers to the change in the physical consistency score before and after the calibration plate adjustment, used to evaluate the impact of the current adjustment on calibration quality. A positive improvement in the physical consistency score indicates that the current adjustment is beneficial to improving the physical consistency of the calibration results.

[0081] "Motion smoothness penalty" refers to a penalty used to limit the amplitude or degree of motion variation of the calibration board. The motion smoothness penalty can be determined based on the norm corresponding to the motion command. The larger the amplitude of motion, the larger the corresponding motion smoothness penalty can be, thereby reducing the possibility of generating violent motion.

[0082] "Physical constraint violation penalty" refers to the penalty item used to evaluate whether the calibration board violates preset physical constraints after performing movement. Physical constraints may include calibration board workspace constraints. When the position or orientation of the calibration board after movement exceeds the allowable workspace, a physical constraint violation penalty can be added.

[0083] A reward function is a function used to evaluate the rewards corresponding to different motion behaviors during reinforcement learning. The reward function can combine the improvement in physical consistency score, motion smoothness penalty, and physical constraint violation penalty to ensure that the reinforcement learning process balances calibration quality improvement, motion smoothness, and motion executability.

[0084] In some embodiments, the improvement in physical consistency score is calculated based on the physical consistency score before and after the calibration board is moved, and a motion smoothness penalty is determined based on the magnitude of the motion command. At the same time, a physical constraint violation penalty is determined based on whether the calibration board exceeds the workspace after the motion. Then, the improvement in physical consistency score, motion smoothness penalty, and physical constraint violation penalty are combined to obtain the reward function used in the reinforcement learning training process, thereby guiding the motion planning strategy to be updated in a direction that can improve calibration quality and meet physical constraints.

[0085] S133. Based on the current state and the reward function, train the motion planning policy network using a deep deterministic policy gradient algorithm; Among them, "deep deterministic policy gradient algorithm" refers to a reinforcement learning algorithm applicable to continuous action spaces.

[0086] A "motion planning strategy network" refers to a neural network used to generate calibration board motion instructions based on the current state. The motion planning strategy network can include a feature extraction layer, a state encoding layer, a feature fusion layer, and an instruction generation layer. Specifically, the feature extraction layer extracts sensitivity features from the physical sensitivity map, the state encoding layer extracts state features corresponding to the physical consistency score, the feature fusion layer fuses sensitivity features and state features, and the instruction generation layer generates calibration board motion instructions based on the fused features.

[0087] In some embodiments, the current state is input into the motion planning policy network to obtain candidate motion instructions, which are then executed. Based on the improvement in physical consistency score, motion smoothness penalty, and physical constraint violation penalty after executing the candidate motion instructions, a corresponding reward value is calculated using a reward function. The reward value is then used to train a value network, and the motion planning policy network is updated based on the evaluation results of the value network. By repeatedly executing state acquisition, motion instruction generation, reward calculation, and network parameter updates, the motion planning policy network can gradually learn motion planning strategies that improve calibration quality.

[0088] S134. Based on the current state, determine the motion command of the calibration board through the trained motion planning strategy network.

[0089] In some embodiments, the current state formed by the current physical consistency score and the current physical sensitivity map is input into the trained motion planning strategy network. The fused features corresponding to the current calibration state are obtained through feature extraction, state encoding and feature fusion. Then, the motion instructions of the calibration board are generated based on the fused features.

[0090] In this embodiment, the current state is determined based on the physical consistency score and the physical sensitivity map, and the reward function is determined based on the increase in the physical consistency score, the motion smoothness penalty, and the physical constraint violation penalty. At the same time, the motion planning policy network is trained by the deep deterministic policy gradient algorithm based on the current state and the reward function. This allows the trained motion planning policy network to determine the motion instructions of the calibration board based on the current state, thereby improving the pertinence and adaptability of the calibration board's motion planning.

[0091] In some embodiments, S150 specifically includes: S151. Based on the multi-camera calibration data after pose adjustment, determine the calibration parameters, geometric error, and physical consistency score; Among them, "calibration parameters" refer to the parameters obtained after calibration calculation based on the multi-camera calibration data after pose adjustment, which may include camera intrinsic parameters, camera extrinsic parameters, distortion coefficients, etc.

[0092] "Geometric error" refers to the error index used to evaluate the geometric accuracy of the current calibration result, and may include reprojection error.

[0093] In some embodiments, calibration calculations are performed based on the pose-adjusted multi-camera calibration data to obtain the calibration parameters corresponding to the current calibration process and to calculate the corresponding geometric errors. Then, the calibration parameters and the corresponding spatial distribution statistical characteristics of the calibration errors are input into the physical consistency scoring network to obtain the physical consistency score corresponding to the current calibration parameters, thereby simultaneously obtaining evaluation information reflecting geometric accuracy and physical consistency, providing a data foundation for the subsequent construction of a Gaussian process model.

[0094] S152. Based on the calibration parameters and the physical consistency score, construct a Gaussian process model; Among them, the "Gaussian process model" refers to a probabilistic model used to model the relationship between calibration parameters and physical consistency scores.

[0095] In some embodiments, calibration parameters and physical consistency scores are used as training data to construct a Gaussian process model that characterizes the relationship between calibration parameters and physical consistency scores.

[0096] S153. Based on the Gaussian process model, determine the predicted value and uncertainty of the physical consistency score corresponding to each sampling point; Among them, "sampling point" is the position of candidate parameter in the index parameter search space used to evaluate the sampling value, and each sampling point can correspond to a set of candidate calibration parameters.

[0097] "Predicted value" refers to the physical consistency score predicted by the Gaussian process model for the calibration parameters corresponding to the current sampling point, which can be represented by the mean of the posterior prediction distribution.

[0098] "Uncertainty" refers to the evaluation information of the credibility of the current prediction result by the Gaussian process model, which can be represented by the variance of the posterior prediction distribution. The greater the uncertainty, the fewer the existing calibration data near the current sampling point or the lower the credibility of the prediction.

[0099] In some embodiments, multiple sampling points in the parameter space are input into the trained Gaussian process model, and the predicted value and uncertainty of the physical consistency score corresponding to each sampling point are obtained through posterior inference.

[0100] S154. Based on the geometric error, the predicted value, and the uncertainty, determine the physical-guided acquisition function; Among them, the "physically guided acquisition function" refers to the function used to evaluate the sampling value of each sampling point in the parameter space.

[0101] In some embodiments, the desired improvement term is determined based on the geometric error. When the geometric error corresponding to a candidate sampling point is better than the current optimal geometric error, the improvement amount can be determined based on the degree of reduction in geometric error, and the desired improvement term can be determined based on the Gaussian process prediction distribution, thereby guiding the parameter search towards the region that can reduce the geometric error.

[0102] In some embodiments, a physical consistency guide is determined based on the predicted value of the physical consistency score. Regions with lower physical consistency scores have a higher demand for further exploration and can be given a greater guiding effect, causing subsequent sampling to focus more on parameter regions with poor physical consistency.

[0103] In some embodiments, the exploration reward is determined based on the uncertainty output by the Gaussian process model. Greater uncertainty allows for a larger exploration reward, thereby increasing the sampling probability of regions with unknown parameters.

[0104] Furthermore, the expected improvement term, physical consistency guidance term, and exploration reward term are weighted and combined to obtain the acquisition function value corresponding to each sampling point. The weights of each part can be adjusted through reinforcement learning, so that the acquisition function can dynamically balance geometric accuracy improvement, physical consistency guidance, and exploration of unknown regions according to the current Gaussian process model and physical consistency score.

[0105] S155. Based on the acquisition function, the calibration parameter vector is iteratively optimized using physical-guided Bayesian optimization to obtain the optimized calibration parameter vector.

[0106] In some embodiments, the acquisition function values ​​corresponding to multiple candidate sampling points in the parameter space are calculated using the acquisition function, and the sampling point with the largest acquisition function value is selected as the next sampling point; new multi-camera calibration data is obtained based on the position and attitude corresponding to the next sampling point, and new calibration parameters, geometric errors, and physical consistency scores are determined based on the new multi-camera calibration data; then, the Gaussian process model is updated using the newly added calibration parameters and physical consistency scores, and the acquisition function is recalculated based on the updated Gaussian process model to continue determining the next sampling point.

[0107] In some embodiments, a maximum number of iterations is set, and the iteration count is updated after each acquisition of data for a new sampling point and update of the Gaussian process model. When the current iteration count has not reached the maximum number of iterations, the next sampling point is determined according to the updated acquisition function, and the next round of optimization is performed; when the current iteration count reaches the maximum number of iterations, the iteration stops, and the optimized calibration parameter vector is determined according to the calibration results obtained during the iteration process.

[0108] In this embodiment, calibration parameters, geometric errors, and physical consistency scores are determined based on the multi-camera calibration data after pose adjustment. A Gaussian process model is constructed using the calibration parameters and physical consistency scores. Simultaneously, the predicted values ​​and uncertainties corresponding to each sampling point are determined based on the Gaussian process model. The physical-guided acquisition function can be determined by combining the geometric errors, predicted values, and uncertainties. Iterative optimization of the calibration parameter vector is achieved through physical-guided Bayesian optimization, thereby improving the accuracy and physical consistency of the multi-camera calibration results.

[0109] In some embodiments, S152 specifically includes: S1521. Determine the physical sensing kernel function based on the physical distance between different calibration parameters; "Physical distance" refers to a parameter used to characterize the degree of difference between different calibration parameters in a physical sense. It can be determined based on the differences between camera intrinsic parameters, camera extrinsic parameters, and distortion coefficients contained in the different calibration parameters. Physical distance can include the distance between rotation matrices, the distance between translation vectors, the distance between distortion coefficients, etc.

[0110] The "physical perception kernel function" refers to a kernel function that determines the covariance based on the physical distance between different calibration parameters. It is used to introduce physical correlation information between calibration parameters during Gaussian process modeling. The smaller the physical distance between different calibration parameters, the larger the corresponding covariance can be; conversely, the larger the physical distance between different calibration parameters, the smaller the corresponding covariance can be.

[0111] In some embodiments, for any two calibration parameters, the distances between their corresponding rotation matrices, translation vectors, and distortion coefficients are calculated, and the physical distance between the two calibration parameters is determined based on the calculated distances. Then, the covariance between the two calibration parameters is calculated based on the physical distance, thereby forming a physical sensing kernel function. By introducing the physical differences between the calibration parameters into the kernel function, calibration parameters with similar physical properties can have a high correlation in the Gaussian process model.

[0112] S1522. Based on the physical sensing kernel function and the radial basis kernel function, construct a combined kernel function; Among them, the "radial basis kernel function" refers to a kernel function that determines the degree of similarity based on the numerical distance between different calibration parameters.

[0113] "Combined kernel function" refers to a kernel function formed by combining the physical sensing kernel function and the radial basis kernel function.

[0114] In some embodiments, corresponding weights are assigned to the physical sensing kernel function and the radial basis function, respectively, and the two kernel functions are weighted and combined to obtain a combined kernel function. The radial basis function is used to capture the similarity relationship between calibration parameters in the parameter space, while the physical sensing kernel function is used to introduce physical correlation information between calibration parameters.

[0115] S1523. Based on the combined kernel function, the calibration parameters, and the physical consistency score, construct the Gaussian process model.

[0116] In some embodiments, multiple existing calibration parameters and the physical consistency scores corresponding to each calibration parameter are used as training data, and the covariance between different calibration parameters is calculated using a combined kernel function, thereby constructing a Gaussian process model to describe the relationship between calibration parameters and physical consistency scores.

[0117] In this embodiment, a physical sensing kernel function is determined based on the physical distance between different calibration parameters, and a combined kernel function is obtained by combining the physical sensing kernel function with the radial basis kernel function. At the same time, a Gaussian process model is constructed by combining the calibration parameters and the physical consistency score. This allows the Gaussian process model to consider both the physical distance between different calibration parameters and the physical consistency score corresponding to the calibration parameters, thereby improving the accuracy of the Gaussian process model.

[0118] In some embodiments, S154 specifically includes: S1541. Based on the geometric error, determine the desired improvement items; The "expected improvement term" refers to an index used to evaluate the degree of improvement in geometric error that a candidate sampling point may produce relative to the current optimal calibration result. When the geometric error corresponding to a candidate sampling point is lower than the current optimal geometric error, the corresponding improvement amount can be determined based on the reduction in geometric error; when the geometric error corresponding to a candidate sampling point is not lower than the current optimal geometric error, the corresponding improvement amount can be determined to be zero.

[0119] In some embodiments, the current optimal geometric error is determined based on the currently obtained geometric error, and for candidate sampling points in the parameter space, the possibility of geometric error improvement for the candidate sampling points is determined according to the prediction results corresponding to the Gaussian process model. Then, the expected amount of improvement is calculated to obtain the expected improvement term corresponding to the candidate sampling point.

[0120] S1542. Based on the physical consistency score, determine the physical consistency guiding item; The "physical consistency guide" refers to an indicator used to adjust the parameter search direction based on the degree of physical consistency of the current calibration results. The lower the physical consistency score, the worse the physical consistency of the calibration results in the corresponding region, and the larger the corresponding physical consistency guide can be; the higher the physical consistency score, the better the physical consistency of the corresponding region, and the smaller the corresponding physical consistency guide can be.

[0121] In some embodiments, a corresponding physical consistency guide is determined based on the physical consistency score. For example, the physical consistency guide can be calculated in a way that is inversely related to the physical consistency score, so that the parameter region with a lower physical consistency score can receive greater guidance, thereby making subsequent parameter searches focus more on the region with relatively poor physical consistency.

[0122] S1543. Based on the aforementioned uncertainty, determine the exploration reward items; The "exploration reward" refers to an indicator used to evaluate the exploration value of the parameter region corresponding to the candidate sampling point. The greater the uncertainty, the less information the current Gaussian process model has about the parameter region, and the larger the corresponding exploration reward can be; the smaller the uncertainty, the more sufficient the calibration data for the parameter region already exists, and the smaller the corresponding exploration reward can be.

[0123] In some embodiments, the prediction variance output by the Gaussian process model for each candidate sampling point is taken as the corresponding uncertainty, and the exploration reward is determined based on the uncertainty, so that the candidate sampling points with higher prediction uncertainty can obtain higher exploration value, thereby increasing the possibility of sampling the unknown parameter region and gradually improving the description of the parameter space by the Gaussian process model.

[0124] S1544. Based on the current Gaussian process model and the physical consistency score, the weights corresponding to the expected improvement term, the physical consistency guidance term, and the exploration reward term are determined through reinforcement learning. In some embodiments, the current Gaussian process model and physical consistency score are used as the state information of reinforcement learning, and the improvement in calibration quality is used as the reward. The results of different weight adjustments are evaluated. By training the weight adjustment network through reinforcement learning, the weights corresponding to the expected improvement term, the physical consistency guidance term, and the exploration reward term are determined. This enables the physical guidance acquisition function to dynamically adjust the influence of each component according to the current calibration situation, thereby achieving an adaptive balance between geometric error improvement, physical consistency enhancement, and exploration of unknown regions.

[0125] S1545. The expected improvement term, the physical consistency guidance term, and the exploration reward term are weighted and summed to obtain the physical guidance acquisition function.

[0126] In some embodiments, the expected improvement term, the physical consistency guidance term, and the exploration reward term are weighted using weights determined by reinforcement learning, and the three weighted components are summed to obtain a physical guidance acquisition function that integrates geometric error improvement, physical consistency guidance, and uncertainty exploration, thereby coordinating geometric accuracy improvement, physical consistency enhancement, and exploration of unknown regions.

[0127] In this embodiment, the expected improvement term, physical consistency guidance term, and exploration reward term are determined based on geometric error, physical consistency score, and uncertainty, respectively. The weights of each term are determined through reinforcement learning based on the current Gaussian process model and physical consistency score. The weighted summation of each term yields the physical guidance acquisition function, thereby achieving coordination among the expected improvement term, physical consistency guidance term, and exploration reward term.

[0128] In some embodiments, S155 specifically includes: S1551. Based on the acquisition function, determine the next sampling point; Here, "next sampling point" refers to the sampling position selected from the candidate parameter space according to the acquisition function during the current Bayesian optimization iteration, used for the next round of calibration data acquisition and parameter evaluation. The next sampling point can correspond to a position and orientation of the calibration board.

[0129] In some embodiments, the acquisition function value corresponding to each candidate sampling point in the parameter space is calculated by the acquisition function, and the acquisition function values ​​corresponding to each candidate sampling point are compared. The candidate sampling point with the largest acquisition function value is determined as the next sampling point.

[0130] S1552. Based on the multi-camera calibration data corresponding to the next sampling point, determine the calibration parameters and physical consistency score corresponding to the next sampling point; Among them, "multi-camera calibration data corresponding to the next sampling point" is the calibration data collected by multiple cameras after the index calibration plate reaches the position and attitude corresponding to the next sampling point.

[0131] In some embodiments, the calibration board is adjusted to the position and attitude corresponding to the next sampling point, and the corresponding multi-camera calibration data is collected; calibration calculation is performed based on the collected multi-camera calibration data to obtain the calibration parameters corresponding to the next sampling point, and the physical consistency score corresponding to the next sampling point is determined through the physical consistency scoring network according to the calibration parameters and the corresponding calibration error spatial distribution statistical characteristics, thereby obtaining new calibration data for updating the Gaussian process model.

[0132] S1553. Update the Gaussian process model based on the calibration parameters and physical consistency score corresponding to the next sampling point; In some embodiments, the calibration parameters and physical consistency scores corresponding to the next sampling point are added to the existing calibration parameter and physical consistency score data, and the Gaussian process model is updated using the added data.

[0133] S1554. Based on the updated Gaussian process model, the calibration parameter vector is iteratively optimized to obtain the optimized calibration parameter vector.

[0134] In some embodiments, the predicted value and uncertainty of the physical consistency score corresponding to each candidate sampling point are re-determined based on the updated Gaussian process model, and the acquisition function is further updated. The new next sampling point is determined according to the updated acquisition function. The process of determining the next sampling point, acquiring multi-camera calibration data, determining calibration parameters and physical consistency scores, and updating the Gaussian process model is repeated until the maximum number of iterations is reached. The optimized calibration parameter vector is determined based on the calibration results obtained during the iteration process.

[0135] In this embodiment, the next sampling point is determined according to the acquisition function, and the calibration parameters and physical consistency score are determined according to the multi-camera calibration data corresponding to the next sampling point. At the same time, the Gaussian process model is updated using the calibration parameters and physical consistency score. The calibration parameter vector can be iteratively optimized based on the updated Gaussian process model, thereby improving the geometric accuracy and physical consistency of the multi-camera calibration results.

[0136] Figure 2 This is a schematic diagram of the architecture of the multi-camera calibration quality optimization device provided in an embodiment of this application. Figure 2 As shown, the multi-camera calibration quality optimization device 200 includes: a first determining module 210, a constructing module 220, a second determining module 230, an adjusting module 240, and an optimizing module 250, wherein: The first determining module 210 is used to determine the physical consistency score based on the spatial distribution statistical characteristics of the calibration parameter vector and the calibration error through a meta-learning physical consistency scoring network. Module 220 is used to construct a physical sensitivity map based on the calibration parameter vector and the physical consistency score; The second determining module 230 is used to determine the motion command of the calibration board through reinforcement learning based on the physical consistency score and the physical sensitivity map. The adjustment module 240 is used to adjust the pose of the calibration plate based on the motion command and to acquire the multi-camera calibration data after the pose adjustment. The optimization module 250 is used to iteratively optimize the calibration parameter vector based on the pose-adjusted multi-camera calibration data through physically guided Bayesian optimization to obtain the optimized calibration parameter vector.

[0137] In some embodiments, the first determining module 210 is specifically configured to: acquire multiple meta-training tasks, and perform inner loop gradient updates on the physical consistency scoring network based on each meta-training task to obtain the weights of each meta-training task; determine the task loss of the physical consistency scoring network on the corresponding validation set based on the weights of each meta-training task, and sum the task losses corresponding to multiple meta-training tasks to obtain the meta-loss; perform outer loop updates on the weights of the physical consistency scoring network and the inner loop learning rate based on the meta-loss to obtain the meta-trained physical consistency scoring network; perform inner loop gradient updates on the meta-trained physical consistency scoring network based on the current calibration task to obtain the physical consistency scoring network corresponding to the current calibration task; input the calibration parameter vector and the spatial distribution statistical features of the calibration error into the physical consistency scoring network corresponding to the current calibration task to obtain the physical consistency score.

[0138] In some embodiments, the construction module 220 includes: a perturbation unit, a first determination unit, a second determination unit, a first processing unit, a second processing unit, and a first construction unit, wherein: the perturbation unit is used to apply parameter perturbation to each calibration parameter in the calibration parameter vector to obtain perturbed calibration parameters; the first determination unit is used to determine the perturbed physical consistency score based on the perturbed calibration parameters through the physical consistency scoring network; the second determination unit is used to determine the physical sensitivity corresponding to each calibration parameter based on the change between the physical consistency score before perturbation and the physical consistency score after perturbation; the first processing unit is used to normalize the physical sensitivity corresponding to each calibration parameter and construct a physical sensitivity vector; the second processing unit is used to discretize the workspace of the calibration board to obtain multiple discrete grid points corresponding to different positions and attitudes; and the first construction unit is used to construct the physical sensitivity map based on the position and attitude corresponding to each discrete grid point.

[0139] In some embodiments, the first construction unit is specifically used for: acquiring multi-camera calibration data corresponding to each discrete grid point based on the position and attitude of each discrete grid point; determining calibration parameters corresponding to each discrete grid point based on the multi-camera calibration data corresponding to each discrete grid point; determining physical sensitivity vectors corresponding to each discrete grid point based on the calibration parameters corresponding to each discrete grid point; performing interpolation processing on the physical sensitivity vectors corresponding to multiple discrete grid points to determine physical sensitivity vectors corresponding to continuous positions and attitudes; and constructing the physical sensitivity map based on the physical sensitivity vectors corresponding to the continuous positions and attitudes.

[0140] In some embodiments, the second determining module 230 is specifically configured to: determine the current state based on the physical consistency score and the physical sensitivity map; determine a reward function based on the increase in the physical consistency score, the motion smoothness penalty, and the physical constraint violation penalty; train a motion planning policy network using a deep deterministic policy gradient algorithm based on the current state and the reward function; and determine the motion instructions of the calibration board using the trained motion planning policy network based on the current state.

[0141] In some embodiments, the optimization module 250 includes: a third determining unit, a second constructing unit, a fourth determining unit, a fifth determining unit, and an optimization unit, wherein: the third determining unit is used to determine calibration parameters, geometric errors, and physical consistency scores based on the pose-adjusted multi-camera calibration data; the second constructing unit is used to construct a Gaussian process model based on the calibration parameters and the physical consistency score; the fourth determining unit is used to determine the predicted value and uncertainty of the physical consistency score corresponding to each sampling point based on the Gaussian process model; the fifth determining unit is used to determine a physically guided acquisition function based on the geometric errors, the predicted value, and the uncertainty; and the optimization unit is used to iteratively optimize the calibration parameter vector based on the acquisition function using physically guided Bayesian optimization to obtain the optimized calibration parameter vector.

[0142] In some embodiments, the second construction unit is specifically used to: determine a physical sensing kernel function based on the physical distance between different calibration parameters; construct a combined kernel function based on the physical sensing kernel function and the radial basis kernel function; and construct the Gaussian process model based on the combined kernel function, the calibration parameters, and the physical consistency score.

[0143] In some embodiments, the fifth determining unit is specifically used for: determining a desired improvement term based on the geometric error; determining a physical consistency guiding term based on the physical consistency score; determining an exploration reward term based on the uncertainty; determining the weights corresponding to the desired improvement term, the physical consistency guiding term, and the exploration reward term through reinforcement learning based on the current Gaussian process model and the physical consistency score; and performing a weighted summation of the desired improvement term, the physical consistency guiding term, and the exploration reward term to obtain the physical guidance acquisition function.

[0144] In some embodiments, the optimization unit is specifically used for: determining the next sampling point based on the acquisition function; determining the calibration parameters and physical consistency score corresponding to the next sampling point based on the multi-camera calibration data corresponding to the next sampling point; updating the Gaussian process model based on the calibration parameters and physical consistency score corresponding to the next sampling point; and iteratively optimizing the calibration parameter vector based on the updated Gaussian process model to obtain the optimized calibration parameter vector.

[0145] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the functional modules described above can be referred to the corresponding method steps in the foregoing embodiments, and will not be repeated here. Those skilled in the art can use different methods to implement the described functions for each specific application. For example, a computer software program containing the steps of the above method embodiments can be stored in a computer-readable storage medium so that, when executed, the program can implement one or more steps of the above method embodiments.

[0146] Figure 3 The diagram shows the structure of an electronic device according to an embodiment of this application. This embodiment does not limit the specific implementation of the electronic device.

[0147] like Figure 3 As shown, the electronic device 400 may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440.

[0148] The processor 410, communication interface 420, and memory 430 communicate with each other via communication bus 440. Communication interface 420 is used for communication connections with other external devices. The processor 410 executes program 450 to implement the methods described in one or more of the above embodiments.

[0149] Specifically, program 450 may include program code that includes computer operation instructions. When program 450 is invoked, processor 410 executes the computer operation instructions to implement the steps in one or more embodiments of the method.

[0150] Depending on the actual application scenario, the processor 410 can be of the appropriate type, including but not limited to mainstream embedded processors such as microcontrollers (MCUs) and ARM architecture processors, as well as other types of processors such as digital signal processors (DSPs), application-specific integrated circuits (ASICs), and field-programmable gate arrays (FPGAs), as long as they can provide the computing and control capabilities required by the actual application scenario.

[0151] The memory 430 is used to store the program 450. It includes a program storage area and a data storage area. The program storage area is used to store firmware programs, embedded applications, and various functional modules; the data storage area is used to store data and calculation results during program execution. For example, the memory 430 may include: on-chip RAM (for temporary data storage during program execution); on-chip Flash memory (for storing program code and configuration data); and EEPROM or other types of non-volatile memory (for storing parameters that need to be retained when power is off).

[0152] This application also provides a computer-readable storage medium. This computer-readable storage medium can be a non-volatile computer-readable storage medium. This computer-readable storage medium stores a computer program.

[0153] When executed by a processor, the computer program implements one or more steps of the method disclosed in the embodiments of this application. A complete computer program product is embodied on one or more computer-readable storage media containing the computer program disclosed in the embodiments of this application.

[0154] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of this application as described above. For the sake of brevity, they are not provided in detail. Although this application 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 of the technical features. 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 this application.

Claims

1. A method for optimizing the quality of multi-camera calibration, characterized in that, The method includes: Based on the spatial distribution statistical characteristics of the calibration parameter vector and calibration error, the physical consistency score is determined through a meta-learning physical consistency scoring network. Based on the calibration parameter vector and the physical consistency score, a physical sensitivity map is constructed; Based on the physical consistency score and the physical sensitivity map, the motion commands of the calibration board are determined through reinforcement learning. The pose of the calibration board is adjusted based on the motion command, and the multi-camera calibration data after pose adjustment is obtained. Based on the pose-adjusted multi-camera calibration data, the calibration parameter vector is iteratively optimized using physically guided Bayesian optimization to obtain the optimized calibration parameter vector.

2. The method according to claim 1, characterized in that, The physical consistency score is determined by a meta-learning physical consistency scoring network based on the spatial distribution statistical characteristics of the calibration parameter vector and calibration error, including: Multiple meta-training tasks are obtained, and the physical consistency scoring network is updated with an inner loop based on each meta-training task to obtain the weight of each meta-training task. Based on the weight of each meta-training task, the task loss of the physical consistency scoring network on the corresponding validation set is determined, and the task losses corresponding to multiple meta-training tasks are summed to obtain the meta-loss. The weights and inner loop learning rate of the physical consistency scoring network are updated by the outer loop based on the meta-loss to obtain the meta-trained physical consistency scoring network. Based on the current calibration task, the meta-trained physical consistency scoring network is updated with an inner loop gradient to obtain the physical consistency scoring network corresponding to the current calibration task. The calibration parameter vector and the spatial distribution statistical characteristics of the calibration error are input into the physical consistency scoring network corresponding to the current calibration task to obtain the physical consistency score.

3. The method according to claim 1, characterized in that, The construction of a physical sensitivity map based on the calibration parameter vector and the physical consistency score includes: Apply parameter perturbation to each calibration parameter in the calibration parameter vector to obtain the perturbed calibration parameters; Based on the perturbed calibration parameters, the perturbed physical consistency score is determined through the physical consistency scoring network; The physical sensitivity of each calibration parameter is determined based on the change between the physical consistency score before the perturbation and the physical consistency score after the perturbation. The physical sensitivity corresponding to each calibration parameter is normalized, and a physical sensitivity vector is constructed. The workspace of the calibration board is discretized to obtain multiple discrete grid points corresponding to different positions and orientations; The physical sensitivity map is constructed based on the position and orientation of each discrete grid point.

4. The method according to claim 3, characterized in that, The construction of the physical sensitivity map based on the position and orientation of each discrete grid point includes: Based on the position and attitude of each discrete grid point, obtain the multi-camera calibration data corresponding to each discrete grid point; Based on the multi-camera calibration data corresponding to each discrete grid point, determine the calibration parameters corresponding to each discrete grid point; Based on the calibration parameters corresponding to each discrete grid point, determine the physical sensitivity vector corresponding to each discrete grid point; Interpolation is performed based on the physical sensitivity vectors corresponding to multiple discrete grid points to determine the physical sensitivity vectors corresponding to continuous positions and attitudes. The physical sensitivity map is constructed based on the physical sensitivity vectors corresponding to the continuous positions and attitudes.

5. The method according to claim 1, characterized in that, The process of determining the motion commands of the calibration board through reinforcement learning based on the physical consistency score and the physical sensitivity map includes: Based on the physical consistency score and the physical sensitivity map, the current state is determined; The reward function is determined based on the improvement in the physical consistency score, the motion smoothness penalty, and the physical constraint violation penalty. Based on the current state and the reward function, a motion planning policy network is trained using a deep deterministic policy gradient algorithm. Based on the current state, the motion commands for the calibration board are determined through the trained motion planning strategy network.

6. The method according to any one of claims 1 to 5, characterized in that, The calibration parameter vector, based on the pose-adjusted multi-camera calibration data, is iteratively optimized using physically guided Bayesian optimization to obtain the optimized calibration parameter vector, including: Based on the pose-adjusted multi-camera calibration data, the calibration parameters, geometric error, and physical consistency score are determined. Based on the calibration parameters and the physical consistency score, a Gaussian process model is constructed; Based on the Gaussian process model, the predicted value and uncertainty of the physical consistency score corresponding to each sampling point are determined; Based on the geometric error, the predicted value, and the uncertainty, a physically guided acquisition function is determined; Based on the acquisition function, the calibration parameter vector is iteratively optimized through physical-guided Bayesian optimization to obtain the optimized calibration parameter vector.

7. The method according to claim 6, characterized in that, The construction of the Gaussian process model based on the calibration parameters and the physical consistency score includes: The physical sensing kernel function is determined based on the physical distance between different calibration parameters; Based on the aforementioned physical sensing kernel function and radial basis kernel function, a combined kernel function is constructed; The Gaussian process model is constructed based on the combined kernel function, the calibration parameters, and the physical consistency score.

8. The method according to claim 6, characterized in that, The determination of the physically guided acquisition function based on the geometric error, the predicted value, and the uncertainty includes: Based on the aforementioned geometric error, the desired improvement items are determined; Based on the physical consistency score, physical consistency guiding items are determined; Based on the aforementioned uncertainties, the exploration reward items are determined; Based on the current Gaussian process model and the physical consistency score, the weights corresponding to the expected improvement term, the physical consistency guidance term, and the exploration reward term are determined through reinforcement learning. The expected improvement term, the physical consistency guidance term, and the exploration reward term are weighted and summed to obtain the physical guidance acquisition function.

9. The method according to claim 6, characterized in that, The step of iteratively optimizing the calibration parameter vector based on the acquisition function using physically guided Bayesian optimization to obtain the optimized calibration parameter vector includes: Based on the acquisition function, determine the next sampling point; Based on the multi-camera calibration data corresponding to the next sampling point, determine the calibration parameters and physical consistency score corresponding to the next sampling point; The Gaussian process model is updated based on the calibration parameters and physical consistency score corresponding to the next sampling point; Based on the updated Gaussian process model, the calibration parameter vector is iteratively optimized to obtain the optimized calibration parameter vector.

10. An electronic device, characterized in that, include: A processor and a memory, wherein the memory stores computer program instructions that, when invoked by the processor, cause the processor to execute the multi-camera calibration quality optimization method as described in any one of claims 1-9.