Skip to content

Workflow for multi-view camera calibrationπŸ”—

Preparing the calibration input data for multi-view camera setupsπŸ”—

Before the actual calibration can be performed, prepare a calibration data model as described in Preparing the calibration input data for a single-view setup. For setups with multiple cameras, consider these additional aspects:

  • Define the number of cameras in the setup and the number of used calibration objects by calling create_calib_data.

  • When specifying the camera type with set_calib_data_cam_param, only cameras of the same type (that is, area scan or line scan) can be calibrated in a single setup.

  • Configure the calibration process, for example, specify the reference camera, using set_calib_data. You can also specify parameters for the complete setup or just configure parameters of individual cameras as well as calibration object poses in the setup.

Performing the calibrationπŸ”—

The calibration performed by calibrate_cameras depends on the camera types that are involved in the calibration setup. While different camera setups require specific conditions when acquiring images, the basic steps of the calibration procedure for setups including projective and/or telecentric cameras are similar:

  1. Building a chain of observation poses

    In the first step, the operator calibrate_cameras tries to build a valid chain of observation poses, which connects all cameras and calibration object poses to the reference camera. Depending on the setup, the conditions for a valid chain of poses differ. For specific information, see the respective sections below.

    If there is a camera that cannot be reached (meaning, it is not observing any calibration object pose that can be connected in the chain), the calibration process is terminated with an error. Otherwise, the algorithm initializes all calibration items’ poses by going down this chain.

  2. First optimization

    In this step, calibrate_cameras performs the actual optimization for all optimization parameters that were not explicitly excluded from the calibration.

  3. Second optimization

    Based on the cameras calibrated so far, the algorithm corrects all observations that contain mark contour information (see find_calib_object). Then, the calibration setup is optimized anew for the corrections to take effect. If no contour information was available, this step is skipped.

  4. Computing quality of parameter estimation

    In the last step, calibrate_cameras computes the standard deviations and the covariances of the calibrated internal camera parameters.