The following error occurs when calling the sl.CalibrationParameters.get_camera_baseline() function to get the baseline: TypeError: unbound method CalibrationParameters.get_camera_baseline() needs an argument

The following error occurs when calling the sl.CalibrationParameters.get_camera_baseline() function to get the baseline: TypeError: unbound method CalibrationParameters.get_camera_baseline() needs an argument.
I can’t find in the API reference screen what the parameter to pass is.


Can you please tell me how to solve this problem?
Thank you very much for your reply.
ZED SDK Version:4.1
Python:3.9

Hi @Qiutx,

Welcome to the Stereolabs forums :wave:

Can you share how you call this method?
As the method is not static, it should be called from a sl.CalibrationParameters object which can be retrieved with:

zed.get_camera_information().camera_configuration.calibration_parameters

It’s true that I’m calling it the wrong way, the picture below shows how I’m calling it incorrectly. Thank you very much for your help!