LabelStore#

class LabelStore[source]#

Bases: ABC

This defines how to store prediction labels for a scene.

Attributes

bbox

Bounding box applied to the source.

crs_transformer

Associated CRSTransformer.

__init__()#

Methods

__init__()

get_labels()

Loads Labels from this label store.

save(labels)

Save.

set_bbox(extent)

Set self.extent to the given value.

abstract get_labels()[source]#

Loads Labels from this label store.

abstract save(labels)[source]#

Save.

Parameters:
  • saved (labels - Labels to be) – of pipeline.

  • type (the type of which will be dependent on the) – of pipeline.

abstract set_bbox(extent: Box) None[source]#

Set self.extent to the given value.

Note

This method is idempotent.

Parameters:

extent (Box) – User-specified extent in pixel coordinates.

Return type:

None

abstract property bbox: Box | None#

Bounding box applied to the source.

abstract property crs_transformer: CRSTransformer#

Associated CRSTransformer.