2.1mm vs 4mm focal length

Hi,

How can I figure out whether my camera’s (Zed 2i) focal length is 2.1 mm or 4 mm?

1 Like

Hi @hutchisonandrew
you can check at runtime the value of the hfov parameter of the camera calibration:
https://www.stereolabs.com/docs/api/structsl_1_1CameraParameters.html

The values is ~55° for 4mm lenses and ~100° for 2.1mm lenses

1 Like

There’s an actual focal_length_metric attribute in CameraParameters that directly gives you the focal length, rather than checking hfov.