MultiVideoReaderCV2
Python template · sinapsis_data_readers.templates.video_readers.video_reader_cv2
Overview
This template provides functionality to read multiple videos, each of them assigned to its own DataContainer and to its own reader process. Similar to its base class, it supports reading in different color spaces, and distributes the resources properly, Attributes for the MultiVideoReaderBase video_file_path (list[str] | str): path or list of paths to the video(s) interleaved (bool): Whether to load the videos interleaving them parallel_exec (bool): Whether to load the frames of the videos
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-data-readers==1.0.0uv pip install sinapsis-data-readers==1.0.0uv add sinapsis-data-readers==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Optional
Default: "cpu"
Optional
Default: null
Optional
Default: null
Optional
Default: 1
Whether to load the videos interleaving them
Optional
Default: false
Optional
Default: false
Optional
Default: "836c104a-f9c8-4ee5-865c-e96f413a0b21"
Whether to load the frames of the videos
Optional
Default: false
path or list of paths to the video(s)
Required
Default: null
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "MultiVideoReaderCV2"
class_name: "MultiVideoReaderCV2"
attributes:
device: "cpu"
root_dir: null
batch_size: 1
interleaved: false
loop_forever: false
video_source: "836c104a-f9c8-4ee5-865c-e96f413a0b21"
parallel_exec: false
video_file_path: "<required>"
Inheritance
sinapsis_data_readers.templates.video_readers.base_video_reader.MultiVideoReaderBaseEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.