# Convert OpenCV calibration file to .conf file

**URL:** <https://community.stereolabs.com/t/convert-opencv-calibration-file-to-conf-file/4126>\
**Category:** Software\
**Tags:** calibration\
**Created:** [December 11, 2023, 1:42pm UTC](https://community.stereolabs.com/t/convert-opencv-calibration-file-to-conf-file/4126 "2023-12-11T13:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![linh.nguyen](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/ecccb3/32.png) [@linh.nguyen](https://community.stereolabs.com/u/linh.nguyen)\
**Post date:** [December 11, 2023, 1:42pm UTC](https://community.stereolabs.com/t/convert-opencv-calibration-file-to-conf-file/4126/1 "2023-12-11T13:42:24Z")

</div>

Hi,

I’m using ZED X Mini underwater, I did calibration following this [How to Calibrate your ZED camera with OpenCV - Stereolabs](https://www.stereolabs.com/docs/opencv/calibration) . Got the YAML calib file as in the tutorial. But how can I apply the file into depth sensing? How can I convert YAML file into .conf to apply globally for SDK?

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:** [December 11, 2023, 1:49pm UTC](https://community.stereolabs.com/t/convert-opencv-calibration-file-to-conf-file/4126/2 "2023-12-11T13:49:58Z")

</div>

Hi @linh.nguyen  
Welcome to the Stereolabs community.

You can use the parameter [optional\_opencv\_calibration\_file](https://www.stereolabs.com/docs/api/structsl_1_1InitParameters.html#a9eab2753374ef3baec1d31960859ba19) of the [InitParameters](https://www.stereolabs.com/docs/api/structsl_1_1InitParameters.html) structure to directly use the OpenCV calibration file.

---

<div class="post-metadata">

**Author:** ![linh.nguyen](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/ecccb3/32.png) [@linh.nguyen](https://community.stereolabs.com/u/linh.nguyen)\
**Post date:** [December 11, 2023, 2:08pm UTC](https://community.stereolabs.com/t/convert-opencv-calibration-file-to-conf-file/4126/3 "2023-12-11T14:08:52Z")

</div>

Thank you for pointing it out. Exactly what I’m looking for.
