Camera loader#

Functions to get Camera class automatic from different data source

get_camera_from_dict()#

camera_dict_selector.get_camera_from_dict() CameraBasePerspective#

Create a camera model from a parameter dictionary.

Exceptions raised by the underlying camera from_dict implementations are propagated unchanged.

Parameters:

camera_dict (dict) – Dictionary as received by CameraBasePerspective.param_dict.

Returns:

Camera model instance.

Return type:

CameraBasePerspective

Raises:
  • KeyError – If the dictionary key type is missing or required camera parameters are missing.

  • ValueError – If configuration values are invalid or the camera type is unsupported.

  • TypeError – If configuration values have incompatible types.