# Why can't get the calibration value

**URL:** <https://community.stereolabs.com/t/why-cant-get-the-calibration-value/1191>\
**Category:** Uncategorized\
**Tags:** python\
**Created:** [May 25, 2022, 2:43pm UTC](https://community.stereolabs.com/t/why-cant-get-the-calibration-value/1191 "2022-05-25T14:43:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkal](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/t/f14d63/32.png) [@tkal](https://community.stereolabs.com/u/tkal)\
**Post date:** [May 25, 2022, 2:43pm UTC](https://community.stereolabs.com/t/why-cant-get-the-calibration-value/1191/1 "2022-05-25T14:43:49Z")

</div>

Hi, According to [https://www.stereolabs.com/docs/api/structsl\_1\_1SensorParameters.html](https://www.stereolabs.com/docs/api/structsl_1_1SensorParameters.html) and [https://www.stereolabs.com/docs/api/structsl\_1\_1CameraInformation.html](https://www.stereolabs.com/docs/api/structsl_1_1CameraInformation.html)

But i got 0 value

```auto
# code like this
    sensors_param = sl.SensorParameters()
    cam = sl.Camera()
    res = sl.Resolution(0,0)
    cam_info = sl.CameraInformation(cam, res)
    print(cam_info.calibration_parameters_raw.left_cam.fx) # get 0 
    print(sensors_param.random_walk) # get 0
 

```

it’s something wrong ? thx for help

---

<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:** [May 25, 2022, 3:12pm UTC](https://community.stereolabs.com/t/why-cant-get-the-calibration-value/1191/2 "2022-05-25T15:12:29Z")

</div>

Hi @tkal  
the behavior is correct, you are asking for the camera parameters for a null resolution:  
`res = sl.Resolution(0,0)`  
Try to replace `0,0` with the correct width and height set when you opened the camera.

You can also use the following code, as described in the [documentation](https://www.stereolabs.com/docs/video/camera-calibration/):

```auto
calibration_params = zed.get_camera_information().camera_configuration.calibration_parameters
# Focal length of the left eye in pixels
focal_left_x = calibration_params.left_cam.fx
# First radial distortion coefficient
k1 = calibration_params.left_cam.disto[0]
# Translation between left and right eye on z-axis
tz = calibration_params.T.z
# Horizontal field of view of the left eye in degrees
h_fov = calibration_params.left_cam.h_fov

```
