ZED 2 camera-IMU calibration with Open MVIS vs Kalibr (rolling-shutter readout, time offset, IMU intrinsics)

Hi all,

We calibrated a ZED 2 (stereo + IMU) with Open MVIS, a free, open-source camera-IMU calibration toolbox, and compared it with the Kalibr calibration published with the same recording. Sharing in case it is useful to others calibrating ZED cameras.

Data. The raw calibration recording of the WHUVID dataset (Wuhan University; Chen et al., Remote Sensing 14(9) 2033, 2022, CC BY 4.0): one ZED 2, 1280×720 mono at 19.7 Hz, IMU at about 381 Hz, AprilGrid 6×6, 74 s. This is one unit recorded by a third party, and the comparison is against their Kalibr result, not against the Stereolabs factory calibration (the recording does not include it).

Setup. Pinhole-radtan (Kalibr’s model), stereo camera-IMU solve with intrinsics free and the rolling-shutter readout estimated. Kalibr assumes a global shutter.

Open MVIS Kalibr (WHUVID) Difference
Rolling-shutter readout 14.1 / 14.0 ms (cam0 / cam1) not modelled
Median reprojection error 0.29 / 0.27 px 0.43 / 0.53 px
Time offset, mid-image row +4.54 / +4.55 ms +4.64 / +4.27 ms 0.1 / 0.3 ms
fx, fy cam0 532.5, 534.4 526.8, 529.3 +5.7, +5.1 px
fx, fy cam1 532.7, 536.0 524.9, 529.9 +7.8, +6.1 px
cx, cy cam0 636.9, 361.4 638.4, 363.0 −1.5, −1.6 px
cx, cy cam1 654.6, 340.7 656.2, 343.6 −1.6, −2.9 px
Stereo baseline 120.14 mm 120.10 mm 0.04 mm
Stereo rotation 2.8 mrad
Camera position in IMU frame, cam0 (−0.2, −24.1, −21.3) mm (1.8, −22.6, −22.5) mm 2.8 mm
Camera position in IMU frame, cam1 (−0.4, 96.0, −23.3) mm (3.0, 97.5, −23.1) mm 3.7 mm
Camera-IMU rotation 7.2 / 7.7 mrad*
IMU Kalibr calibrated model: ideal IMU, only biases estimated
Gyroscope scale x, y, z 1.0052, 0.9875, 0.9857 1, 1, 1 (fixed) +0.5, −1.2, −1.4 %
Gyroscope non-orthogonality (shear) −0.0023, 0.0050, −0.0029 0 (fixed)
Gyroscope-to-accelerometer misalignment 17.7 mrad (1.0°); rotation vector −13.2, 8.0, 8.6 mrad 0 (fixed) 17.7 mrad
Gyroscope-to-accelerometer time offset +3.1 ± 0.4 ms (accel later than gyro) ** 0 (fixed) 3.1 ms
Accelerometer scale x, y, z 0.9981, 0.9988, 1.0011 1, 1, 1 (fixed) −0.2, −0.1, +0.1 %
Accelerometer non-orthogonality (xy, xz, yz) −0.0063, 0.0044, 0.0125 0 (fixed)
Gyroscope bias x, y, z −0.40, 2.12, −0.84 mrad/s estimated, not reported
Accelerometer bias x, y, z 0.016, −0.023, −0.042 m/s² estimated, not reported
IMU noise densities from the WHUVID imu.yaml same

* 19–21 mrad in the accelerometer frame. MVIS also estimates a gyroscope-accelerometer misalignment of about 18 mrad, which Kalibr’s IMU model does not include; in the gyroscope frame the difference is 7.2 / 7.7 mrad.

** A solver-free check on the raw IMU stream (correlating the measured accelerometer derivative with the gyro-predicted one) gives +2 to +5 ms across frequency bands, about +4 ms in most, in line with the solver.

On this unit the IMU terms are not negligible: the gyroscope scales are off by up to 1.4 %, and the 1° gyro-accelerometer misalignment is why the camera-IMU rotations differ by 19–21 mrad in the accelerometer frame but only 7–8 mrad in the gyroscope frame.

What we took from it:

  1. The rolling shutter matters on the ZED 2. Estimating the readout (about 14 ms per frame) lowers the median reprojection error from 0.36 px (global-shutter model, same solver) to 0.28 px.
  2. The focal length moves with the shutter model. With a global-shutter model our camera-only fx matches Kalibr (526.6 vs 526.8 px); modelling the readout moves it to about 532 px. If you use ZED images with a global-shutter model, the Kalibr-style value is the consistent one.
  3. Time offset agrees with Kalibr within 0.1 ms on cam0 once the readout is referred to the middle row (MVIS reports it at the first row: −2.49 ms).
  4. Recording tip. Two IMU messages in this bag repeat the previous sample exactly. Tools that need strictly increasing IMU stamps reject the bag until they are dropped; a small script for this is with the results.

Device wiki page (results, configs, reports): Stereolabs ZED 2 camera–IMU calibration | OpenMVIS

Recording copy, configs and results on Hugging Face: calibench-vi/community · Datasets at Hugging Face (folder zed2). Everything is free to reuse under CC BY 4.0.

Next we would like to do the same with a ZED X or ZED 2i SVO2 recording and compare against the factory calibration file and camera_imu_transform. If anyone has a raw calibration recording they are happy to share, we will calibrate it for free and post the comparison here.

Open MVIS · contact@openmvis.com

Hi @Yulin Yang,

Thank you for sharing this detailed analysis with the community, it is a valuable reference for users calibrating their StereoLabs cameras with third-party tools.

A few notes that can help with the next comparison:

"Next we would like to do the same with a ZED X or ZED 2i SVO2 recording and compare against the factory calibration file and camera_imu_transform."

  • Shutter type: the ZED 2 and the ZED 2i use rolling shutter sensors, while the ZED X series uses global shutter sensors, so the readout term does not apply to ZED X recordings.

  • IMU data: the ZED SDK provides both corrected IMU data (bias, scale and misalignment compensated with the factory parameters stored in the camera firmware) and the raw uncalibrated values. For a fair comparison, please state which stream you are calibrating: IMU Output Data. The same section describes camera_imu_transform, and the noise density and random walk values are available from the API: Identifying Sensors Capabilities.

  • SVO2 recordings: SVO2 stores each sensor at its full rate, but it does not store the calibration of a real camera. The factory calibration file can be downloaded from https://calib.stereolabs.com/?SN=<serial_number> using the serial number of the recorded camera: The Calibration File, Using SVO2.

We look forward to reading your next results.

Hi @Myzhar , thanks for the comments.

BTW, is it possible that ZED can share some public calibration datasets for eval?

Thanks a lot.

Hi @openmvis
Unfortunately, we cannot undisclose such datasets.