Skip to main content
Camera configuration settings. Contains intrinsic camera parameters, distortion coefficients, extrinsic transformation matrix, and other camera-specific configuration.

Fields

Optional[float]
Focal length in x direction (pixels)
Optional[float]
Focal length in y direction (pixels)
Optional[float]
Principal point x coordinate (pixels)
Optional[float]
Principal point y coordinate (pixels)
Optional[list[float]]
Distortion coefficients. A list, a tuple or a vector-shaped array (1-D, (1, N) or (N, 1), as OpenCV returns) is stored as a flat list.
Optional[CameraModel]
Camera projection model. A recognized string (“pinhole”, “fisheye”) is converted to its CameraModel member. An unknown value raises ValueError.
Optional[ImageType]
Type of images captured. A recognized string (“rgb”, “depth”, …) is converted to its ImageType member. An unknown value raises ValueError.
Optional[tuple[int, int]]
Image resolution (width, height) as two integers.
Optional[np.ndarray]
4x4 transformation matrix representing the camera pose relative to a reference frame (e.g., robot base or end-effector). None if not configured.

Constructor

Signature

Methods

from_dict()

Signature
Deserialize from dictionary. This reader is tolerant: it ignores an unknown key, and it reads a field that holds an invalid value as None and logs a warning. A compatible number is converted, for example "600.5" to 600.5. A boolean is not a number, and resolution takes integers only, as in the constructor.
dict
required
Dictionary containing camera settings data
Returns: CameraSettings: Reconstructed camera settings object

to_dict()

Signature
Serialize to dictionary for JSON transfer. Returns: dict: Dictionary representation of the camera settings