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]#
class datumaro.plugins.data_formats.video.VideoFramesBase(url: str, *, name_pattern: str = '%06d', step: int = 1, start_frame: int = 0, end_frame: Optional[int] = None, subset: Optional[str] = None, ctx: Optional[ImportContext] = 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: Optional[str] = None, name_pattern: str = '%06d', step: int = 1, start_frame: int = 0, end_frame: Optional[int] = None, resize: Tuple[int, int] = (64, 64), threshold: float = 0.3)[source]#

Bases: VideoFramesBase