raillabel_providerkit.convert package

Subpackages

Submodules

raillabel_providerkit.convert.convert module

raillabel_providerkit.convert.convert.convert(data: dict, loader_class: type[LoaderABC] | None = None) Scene

Convert annotation data from provider formats into raillabel.

Parameters:
  • data (dict) – Raw data in the provider format, that should be converted.

  • loader_class (child-class of raillabel_providerkit.LoaderABC, optional) – Class used for converting the provider formatted data. If None is provided, then one is chosen based on criteria present in the data. Default is None.

Returns:

scene – Scene with the loaded data in the raillabel format.

Return type:

raillabel.Scene

Raises:

raillabel.UnsupportedFormatError – if the annotation file does not match any loaders.

Module contents

Package for converting annotations in a provider format to raillabel.