datumaro.plugins.data_formats.labelme#

Classes

LabelMeBase(path, *[, ctx])

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

LabelMeImporter()

LabelMePath()

class datumaro.plugins.data_formats.labelme.LabelMePath[source]#

Bases: object

IMAGES_DIR = 'Images'#
ANNOTATIONS_DIR = 'Annotations'#
MASKS_DIR = 'Masks'#
IMAGE_EXT = '.jpg'#
ATTR_IMPORT_ESCAPES = [('\\=', '%%{eq}%%'), ('\\"', '%%{doublequote}%%'), ('\\,', '%%{comma}%%'), ('\\\\', '%%{backslash}%%')]#
ATTR_EXPORT_ESCAPES = [('\\', '\\\\'), ('=', '\\='), ('"', '\\"'), (',', '\\,')]#
class datumaro.plugins.data_formats.labelme.LabelMeBase(path: str, *, ctx: ImportContext | None = None)[source]#

Bases: DatasetBase

categories()[source]#

Returns metainfo about dataset labels.

class datumaro.plugins.data_formats.labelme.LabelMeImporter[source]#

Bases: Importer

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

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#