nicetoolbox.detectors.data_handlers.video_handler.VideoDataHandler¶
- class nicetoolbox.detectors.data_handlers.video_handler.VideoDataHandler(io: SequenceIO, sequence_context: SequenceRuntimeConfig)[source]¶
Bases:
BaseModalityHandlerHandles video/frame data preparation.
Responsibilities: - Validate camera names and locate one video file per camera - Validate that all cameras share the same FPS and frame count - Extract frames from video files (mp4, mov) - Validate existing frame sequences - Generate input recipes for frame loaders - Load camera calibration data
Methods
Generates the Recipe config to be injected into the subprocess TOML.
Prepare data for this modality.
Attributes
Whether data for this modality was successfully prepared.
Return the name of this modality (e.g., 'video', 'audio').
- get_recipe() VideoInputRecipe[source]¶
Generates the Recipe config to be injected into the subprocess TOML.
- property is_available: bool¶
Whether data for this modality was successfully prepared.
- property modality_name: str¶
Return the name of this modality (e.g., ‘video’, ‘audio’).