datumaro.plugins.data_formats.video#

Classes

VideoFramesBase(url, *[, name_pattern, ...])

VideoFramesImporter()

Reads video frames as a dataset.

VideoKeyframesBase(url, *[, subset, ...])

VideoKeyframesImporter()

Reads video frames as a dataset.

class datumaro.plugins.data_formats.video.VideoFramesImporter[source]#

Bases: Importer

Reads video frames as a dataset.

classmethod build_cmdline_parser(**kwargs)[source]#
classmethod detect(context: FormatDetectionContext) None[source]#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.video.VideoFramesBase(url: str, *, name_pattern: str = '%06d', step: int = 1, start_frame: int = 0, end_frame: int | None = None, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: DatasetBase

get(id, subset=None)[source]#

Provides random access to dataset items.

class datumaro.plugins.data_formats.video.VideoKeyframesImporter[source]#

Bases: VideoFramesImporter

Reads video frames as a dataset.

classmethod build_cmdline_parser(**kwargs)[source]#
classmethod find_sources(path)[source]#
class datumaro.plugins.data_formats.video.VideoKeyframesBase(url: str, *, subset: str | None = None, name_pattern: str = '%06d', step: int = 1, start_frame: int = 0, end_frame: int | None = None, resize: Tuple[int, int] = (64, 64), threshold: float = 0.3)[source]#

Bases: VideoFramesBase