raillabel.filter._filter_abc module

class raillabel.filter._filter_abc._AnnotationLevelFilter

Bases: _FilterAbc

Base class of all filter classes applied to the annotations.

_abc_impl = <_abc._abc_data object>
abstractmethod passes_filter(annotation_id: UUID, annotation: Bbox | Cuboid | Poly2d | Poly3d | Seg3d, scene: Scene) bool

Assess if an annotation passes this filter.

class raillabel.filter._filter_abc._FilterAbc

Bases: ABC

Base class of all filter classes regardless of level.

_abc_impl = <_abc._abc_data object>
class raillabel.filter._filter_abc._FrameLevelFilter

Bases: _FilterAbc

Base class of all filter classes applied to the frames.

_abc_impl = <_abc._abc_data object>
abstractmethod passes_filter(frame_id: int, frame: Frame) bool

Assess if a frame passes this filter.