datumaro.plugins.data_formats.mot#

Classes

MotLabel(value)

An enumeration.

MotPath()

MotSeqBase(path, *[, labels, ...])

MotSeqGtExporter(extractor, save_dir, *[, ...])

MotSeqImporter()

class datumaro.plugins.data_formats.mot.MotLabel(value)#

Bases: Enum

An enumeration.

pedestrian = 1#
car = 3#
bicycle = 4#
motorbike = 5#
distractor = 8#
occluder = 9#
reflection = 12#
class datumaro.plugins.data_formats.mot.MotPath[source]#

Bases: object

IMAGE_DIR = 'img1'#
SEQINFO_FILE = 'seqinfo.ini'#
LABELS_FILE = 'labels.txt'#
GT_FILENAME = 'gt.txt'#
DET_FILENAME = 'det.txt'#
IMAGE_EXT = '.jpg'#
FIELDS = ['frame_id', 'track_id', 'x', 'y', 'w', 'h', 'confidence', 'class_id', 'visibility']#
class datumaro.plugins.data_formats.mot.MotSeqBase(path: str, *, labels: Optional[Union[str, List[str]]] = None, occlusion_threshold: float = 0.0, is_gt: Optional[bool] = None, subset: Optional[str] = None, ctx: Optional[ImportContext] = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.mot.MotSeqImporter[source]#

Bases: Importer

classmethod detect(context: FormatDetectionContext) None[source]#
classmethod find_sources(path)[source]#
class datumaro.plugins.data_formats.mot.MotSeqGtExporter(extractor: IDataset, save_dir: str, *, save_media: Optional[bool] = None, image_ext: Optional[str] = None, default_image_ext: Optional[str] = None, save_dataset_meta: bool = False, save_hashkey_meta: bool = False, stream: bool = False, ctx: Optional[ExportContext] = None)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#