class documentation

Base class for an annotation.

Static Method combine_to_numpy Combine multiple annotations into a single numpy array.
@staticmethod
@abstractmethod
def combine_to_numpy(annotations: list[Annotation], classes: list[int], n_classes: int) -> np.ndarray: ΒΆ

Combine multiple annotations into a single numpy array.

Parameters
annotations:list[Annotation]Annotations to combine.
classes:list[int]Class IDs corresponding to each annotation.
n_classes:intTotal number of classes.
Returns
np.ndarrayCombined annotation representation.