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: Optional[ImportContext] = 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]#
class datumaro.plugins.data_formats.labelme.LabelMeExporter(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'#