# ZED Calibration file unsuspected auto-download

**URL:** <https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341>\
**Category:** Python\
**Tags:** python, calibration\
**Created:** [August 21, 2023, 4:10pm UTC](https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341 "2023-08-21T16:10:34Z")\
**Posts on this page:** 5\
**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, 4:10pm UTC](https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341/1 "2023-08-21T16:10:35Z")

</div>

Hi,

While messing around with the values in the calibration files (.conf) to ensure these get applied, I experienced that ZED SDK may choose to automatically redownload the factory calibration and overwrite the file I had modified.

What does trigger a camera calibration values to be redownloaded despite the .conf file already being present?

Best

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [August 22, 2023, 8:11am UTC](https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341/2 "2023-08-22T08:11:07Z")

</div>

Hi,

Some values set to 0 such as the disto, baseline, convergence can trigger a re download of the calibration file.

You can look into this guide : [https://www.stereolabs.com/docs/opencv/calibration/](https://www.stereolabs.com/docs/opencv/calibration/) to see how to use a custom calibration file.

Stereolabs Support

---

<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 22, 2023, 9:37am UTC](https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341/3 "2023-08-22T09:37:15Z")

</div>

Thanks.

Whereas the current default zed configuration file supports a 8 parameter distortion model,  
[How to Calibrate your ZED camera with OpenCV - Stereolabs](https://www.stereolabs.com/docs/opencv/calibration/) only mentions the 5 parameter distortion model

> Left and Right Distortion coefficients : as 5x1 Matrix [k1, K2, P1, P2, K3]

Does ZED loading the opencv based yaml format support 8 parameters distortion?

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [August 22, 2023, 9:42am UTC](https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341/4 "2023-08-22T09:42:16Z")

</div>

not for the moment, this will be updated in the coming release, probably in v4.0.7 of the ZED SDK.

---

<div class="post-metadata">

**Author:** ![bmegli](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/b/57b2e6/32.png) [@bmegli](https://community.stereolabs.com/u/bmegli)\
**Post date:** [February 1, 2024, 2:49pm UTC](https://community.stereolabs.com/t/zed-calibration-file-unsuspected-auto-download/3341/5 "2024-02-01T14:49:02Z")

</div>

Auto download of calibration files may also lead to interesting problems when running from docker container.

As mapping calibration file path from container to host storage is not documented for docker:

- calibration file doesn’t survive after restart of container
- offline docker system may have even trouble starting correctly

Some notes in:

> <https://github.com/stereolabs/zed-docker/issues/52>
>
> \### Preliminary Checks
> 
> \- \[X\] This issue is not a duplicate. Before opening a …new issue, please search existing issues.
> \- \[X\] This issue is not a question, feature request, or anything other than a bug report directly related to this project.
> 
> \### Description
> 
> Docker camera system fails in offline (no internet) setup.
> 
> The reason is ZED SDK downloads camera calibration file over internet (when online) to:
> \- \`/usr/local/zed/settings\`
> - this is not mapped from docker to host container
> - in consequence when running offline docker container is unable to get this file
> - and doesn't have it from running online
> 
> Mapping this path is not documented anywhere (docker docs are in several places), as far as I see.
> 
> \### Steps to Reproduce
> 
> 1. Unplug ZED-X system from the internet 
> 2. Run docker container for ZED-X
> 3. System fails
> 
> Probably problem is similar for other ZED cameras
> 
> \### Expected Result
> 
> Offline system with camera(s) works just the same as online (with internet access).
> 
> \### Actual Result
> 
> Offline system doesn't work.
> 
> \### ZED Camera model
> 
> ZED-X
> 
> \### Environment
> 
> \`\`\`shell
> OS: Ubuntu 20.04 (Jetson L4T)
> CPU: ARM64
> GPU: Nvidia Jetson AGX Orin
> ZED SDK: 4.0.8
> ROS: Noetic
> Docker image: based on \`stereolabs/zed:4.0-runtime-l4t-r35.3\`
> \`\`\`
> 
> 
> \### Anything else?
> 
> \_No response\_
> 
> \------------------------
> 
> Edit:
> \- changed phrasing
