Get Camera's maximum depth

How do I get the maximum depth measurement for a given Zed camera in python?

Hi @frigusgulo,

You can retrieve the maximum depth measurement for a ZED camera by leaving the default value to the initParameters object and retrieving it after opening the camera, as the camera model is determined when opening the camera.

import as sl

def main():
    # Create a Camera object
    zed = sl.Camera()

    # Initialize a Camera configuration
    init_params = sl.InitParameters()
    init_params.depth_mode = sl.DEPTH_MODE.PERFORMANCE 
    init_params.coordinate_units = sl.UNIT.CENTIMETER  # Unit of measurement

    # Open the camera
    err =
    if err != sl.ERROR_CODE.SUCCESS:

    print(f"Maximum Depth Range: {zed.get_init_parameters().depth_maximum_distance} centimeters")

    # Close the camera

if __name__ == "__main__":