# IMU calibration info

**URL:** <https://community.stereolabs.com/t/imu-calibration-info/2147>\
**Category:** Software\
**Tags:** calibration\
**Created:** [February 21, 2023, 9:15am UTC](https://community.stereolabs.com/t/imu-calibration-info/2147 "2023-02-21T09:15:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo](https://community.stereolabs.com/user_avatar/community.stereolabs.com/paolo/32/1071_2.png) [@Paolo](https://community.stereolabs.com/u/Paolo)\
**Post date:** [February 21, 2023, 9:15am UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/1 "2023-02-21T09:15:00Z")

</div>

How can I know what camera calibration consists of?  
In other words, what is considered in this process?  
I looked for documentation on the Internet but I didn’t find anything. I only found something about the reasons why calibrate is necessary and similar, but this is not what I want to know.  
Thank you

---

<div class="post-metadata">

**Author:** ![Paolo](https://community.stereolabs.com/user_avatar/community.stereolabs.com/paolo/32/1071_2.png) [@Paolo](https://community.stereolabs.com/u/Paolo)\
**Post date:** [February 21, 2023, 1:55pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/2 "2023-02-21T13:55:08Z")

</div>

maybe I was thinking about autotuning algorithm to calibrate the sensors. How does it work?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 21, 2023, 2:01pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/3 "2023-02-21T14:01:04Z")

</div>

Hi @Paolo  
camera calibration is a Computer Vision process required to create a mathematical model of the camera optics:

> **[What Is Camera Calibration?
- MATLAB & Simulink](https://www.mathworks.com/help/vision/ug/camera-calibration.html)**
>
> Estimate the parameters of a lens and image sensor of an image or video camera.

> **[Pinhole camera model](https://en.wikipedia.org/wiki/Pinhole_camera_model)**
>
> The pinhole camera model describes the mathematical relationship between the coordinates of a point in three-dimensional space and its projection onto the image plane of an ideal pinhole camera, where the camera aperture is described as a point and no lenses are used to focus light. The model does not include, for example, geometric distortions or blurring of unfocused objects caused by lenses and finite sized apertures. It also does not take into account that most practical cameras have only d...

[https://docs.opencv.org/2.4/modules/calib3d/doc/camera\_calibration\_and\_3d\_reconstruction.html](https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html)

We provide these parameters within the ZED SDK thanks to our factory calibration procedure performed with precise robotic arms:  
[https://www.stereolabs.com/docs/video/camera-calibration/](https://www.stereolabs.com/docs/video/camera-calibration/)

---

<div class="post-metadata">

**Author:** ![Paolo](https://community.stereolabs.com/user_avatar/community.stereolabs.com/paolo/32/1071_2.png) [@Paolo](https://community.stereolabs.com/u/Paolo)\
**Post date:** [February 21, 2023, 2:03pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/4 "2023-02-21T14:03:56Z")

</div>

I am sorry, I am interested in IMU sensor calibration and not camera calibration

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 21, 2023, 2:33pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/5 "2023-02-21T14:33:31Z")

</div>

For IMU sensor calibration you can use the Kalibr tool.

We provided a guide in the support section of the website to use it, it’s an old guide, but the main concepts are still valid:

> **[How can I use Kalibr with the ZED Mini camera in ROS?](https://support.stereolabs.com/hc/en-us/articles/360012749113-How-can-I-use-Kalibr-with-the-ZED-Mini-camera-in-ROS-)**
>
> This tutorial illustrates how to use the Kalibr software to correctly get the camera/IMU calibration parameters for the ZED mini.
> Preliminar operations
> Install Kalibr following the installation gui...

---

<div class="post-metadata">

**Author:** ![Paolo](https://community.stereolabs.com/user_avatar/community.stereolabs.com/paolo/32/1071_2.png) [@Paolo](https://community.stereolabs.com/u/Paolo)\
**Post date:** [February 21, 2023, 2:45pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/6 "2023-02-21T14:45:16Z")

</div>

I try to explain it better.  
When I switch on my zed2i camera I have to a few minutes to let the sensors calibrate themselves.  
During this period an autotuning algorithm is used to calibrate the sensors and I would like to know what this algorithm does.  
Keeping the camera steady and fixed on the floor, how does it calibrate the sensors?  
Thank you

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 21, 2023, 2:59pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/7 "2023-02-21T14:59:35Z")

</div>

Ah ok, this is a very easy algorithm.  
The gyroscope sensors have an intrinsic systematic error called “bias”.  
There are 3 biases, one for each axis, that change when the temperature of the sensor change.  
So when you start to use the camera and the temperature increases the 3 biases change until the temperature reaches a stable level.  
The ZED SDK is designed to measure the values of the biases and internally store the averages of the bias of each axis, so it can remove it from the acquired values and provide a stable measure of the angular speeds of the camera.

---

<div class="post-metadata">

**Author:** ![Paolo](https://community.stereolabs.com/user_avatar/community.stereolabs.com/paolo/32/1071_2.png) [@Paolo](https://community.stereolabs.com/u/Paolo)\
**Post date:** [February 21, 2023, 3:04pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/8 "2023-02-21T15:04:51Z")

</div>

ok, thank you.  
So the waiting time is only due to gyroscope biases and not to accelerometer biases too?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 21, 2023, 4:22pm UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/9 "2023-02-21T16:22:07Z")

</div>

Exactly, it’s only an angular velocities issue.

---

<div class="post-metadata">

**Author:** ![Paolo](https://community.stereolabs.com/user_avatar/community.stereolabs.com/paolo/32/1071_2.png) [@Paolo](https://community.stereolabs.com/u/Paolo)\
**Post date:** [February 24, 2023, 8:02am UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/10 "2023-02-24T08:02:49Z")

</div>

I have another question.  
I saw it’s available the terminal command `"ZED Sensor Calibration.exe" --cimu` to reset the biases values.  
When is this operation necessary? Is it good to do this every time I switch my camera on? Or are there any specifics moments to do this?

Thank you so much

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 24, 2023, 8:48am UTC](https://community.stereolabs.com/t/imu-calibration-info/2147/11 "2023-02-24T08:48:45Z")

</div>

That’s required only if the camera orientation continues to drift even after the warmup.  
For the ZED2i it simply removes the bias values stored in the internal EEPROM of the camera.
