datumaro.plugins.data_formats.image_dir#

Classes

ImageDirBase(url, *[, subset, ctx])

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

ImageDirImporter()

Reads images from a directory as a dataset.

class datumaro.plugins.data_formats.image_dir.ImageDirImporter[source]#

Bases: Importer

Reads images from a directory as a dataset.

DETECT_CONFIDENCE = 5#
classmethod build_cmdline_parser(**kwargs)[source]#
classmethod find_sources(path)[source]#
class datumaro.plugins.data_formats.image_dir.ImageDirBase(url: str, *, subset: Optional[str] = None, ctx: Optional[ImportContext] = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.image_dir.ImageDirExporter(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'#