CameraInformation Class Reference

Structure containing information of a single camera (serial number, model, calibration, etc.)That information about the camera will be returned by Camera.get_camera_information() More...

Functions

def __cinit__ (self, Camera py_camera, resizer=Resolution(0, 0))
 Constructor. More...
 
def sensors_configuration (self)
 Device Sensors configuration as defined in SensorsConfiguration.
 
def camera_configuration (self)
 Camera configuration as defined in CameraConfiguration.
 
def input_type (self)
 Input type used in SDK.
 
def camera_resolution (self)
 Resolution of the camera
 
def camera_fps (self)
  FPS of the camera
 
def camera_model (self)
 The model of the camera (ZED, ZED2 or ZED-M).
 
def calibration_parameters (self)
 Intrinsic and Extrinsic stereo CalibrationParameters for rectified/undistorded images (default).
 
def calibration_parameters_raw (self)
 Intrinsic and Extrinsic stereo CalibrationParameters for original images (unrectified/distorded).
 
def camera_imu_transform (self)
 IMU to Left camera transform matrix, that contains rotation and translation between IMU frame and camera frame. More...
 
def serial_number (self)
 The serial number of the camera.
 
def camera_firmware_version (self)
 The internal firmware version of the camera.
 
def sensors_firmware_version (self)
 The internal firmware version of the sensors of ZEDM or ZED2.
 

Detailed Description

Structure containing information of a single camera (serial number, model, calibration, etc.)

That information about the camera will be returned by Camera.get_camera_information()

Note
This object is meant to be used as a read-only container, editing any of its fields won't impact the SDK.  
Warning
CalibrationParameters are returned in COORDINATE_SYSTEM.IMAGE , they are not impacted by the InitParameters.coordinate_system

Functions

◆ __cinit__()

def __cinit__ (   self,
Camera  py_camera,
  resizer = Resolution(0,0) 
)

Constructor.

Gets the CameraParameters from a Camera object.

Parameters
py_camera: Camera object.  
resizer: You can specify a Resolution different from default image size to get the scaled camera information. default = (0,0) meaning original image size.
cam = sl.Camera()
res = sl.Resolution(0,0)
cam_info = sl.CameraInformation(cam, res)

◆ camera_imu_transform()

def camera_imu_transform (   self)

IMU to Left camera transform matrix, that contains rotation and translation between IMU frame and camera frame.

Note that this transform was applied to the fused quaternion provided in get_imu_data() in v2.4 but not anymore starting from v2.5. See Camera.get_sensors_data() for more info.

Referenced by SensorsConfiguration.camera_imu_transform().