datumaro.plugins.data_formats.image_dir#
Classes
|
|
|
|
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 detect(context: FormatDetectionContext) FormatDetectionConfidence [source]#
- class datumaro.plugins.data_formats.image_dir.ImageDirBase(url: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#
Bases:
SubsetBase
- class datumaro.plugins.data_formats.image_dir.ImageDirExporter(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'#