# ZED Calibration - Multiple distortion coefficients - What are these?

**URL:** <https://community.stereolabs.com/t/zed-calibration-multiple-distortion-coefficients-what-are-these/3337>\
**Category:** Python\
**Tags:** python, calibration\
**Created:** [August 21, 2023, 11:53am UTC](https://community.stereolabs.com/t/zed-calibration-multiple-distortion-coefficients-what-are-these/3337 "2023-08-21T11:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfntn](https://community.stereolabs.com/user_avatar/community.stereolabs.com/nfntn/32/1619_2.png) [@nfntn](https://community.stereolabs.com/u/nfntn)\
**Post date:** [August 21, 2023, 11:53am UTC](https://community.stereolabs.com/t/zed-calibration-multiple-distortion-coefficients-what-are-these/3337/1 "2023-08-21T11:53:20Z")

</div>

Hi,

I am not sure to understand what the different distortion coefficients present in the factory calibration represents and how do they get updated.

The configuration file presents both per camera, per resolution distortion values

> [LEFT\_CAM\_2K]  
> …  
> k1=-0.0620869  
> k2=0.0404839  
> p1=-0.000180545  
> p2=0.00043134  
> k3=-0.0164286

and per camera distortion values:

> [LEFT\_DISTO]  
> k1=-1.54086  
> k2=3.71464  
> k3=-0.0835021  
> k4=-1.45078  
> k5=3.57006  
> k6=0.107865  
> p1=-0.000324935  
> p2=0.000233897

- What is the difference between?
- How are they both used?
- Do they both get potentially updated by the camera online self calibration?

Best

---

<div class="post-metadata">

**Author:** ![SL-PY](https://community.stereolabs.com/user_avatar/community.stereolabs.com/sl-py/32/3_2.png) [@SL-PY](https://community.stereolabs.com/u/SL-PY)\
**Post date:** [August 21, 2023, 12:18pm UTC](https://community.stereolabs.com/t/zed-calibration-multiple-distortion-coefficients-what-are-these/3337/2 "2023-08-21T12:18:21Z")

</div>

Hi,  
Per resolution distortion is a legacy behavior, for SDK version \< 3.5.  
The distortion is the same for every resolution so a new field was added, if it is available it overwrites per resolution distortion. It is an extend (more coefficient) of the per resolution distortion.  
If you want more information about them you can take a look at this documentation:  
[https://docs.opencv.org/4.x/d9/d0c/group\_\_calib3d.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a](https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a)  
we follow the same convention.  
Our self calibration does not update the distortion.
