nicetoolbox.detectors.data_handlers.video_handler.VideoDataHandler

class nicetoolbox.detectors.data_handlers.video_handler.VideoDataHandler(io: SequenceIO, sequence_context: SequenceRuntimeConfig)[source]

Bases: BaseModalityHandler

Handles 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

get_recipe

Generates the Recipe config to be injected into the subprocess TOML.

prepare

Prepare data for this modality.

Attributes

is_available

Whether data for this modality was successfully prepared.

modality_name

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’).

prepare() None[source]

Prepare data for this modality.