nicetoolbox.detectors.data_handlers.video_handler

Video/frame data handler for the NICE Toolbox.

Handles frame extraction from video files and preparation of image sequences. Also owns camera calibration loading since calibration is video-specific.

Classes

VideoDataHandler

Handles video/frame data preparation.

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

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

get_recipe() VideoInputRecipe[source]

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

property modality_name: str

Return the name of this modality (e.g., ‘video’, ‘audio’).

prepare() None[source]

Prepare data for this modality.