FrameLoader

class tools.manual.manual.FrameLoader(tk_globals: TkGlobals, frames_location: str, video_meta_data: dict[Literal['pts_time', 'keyframes'], list[int]] | None, file_list: list[str])

Bases: object

Loads the frames, sets the frame count to TkGlobals.frame_count and handles the return of the correct frame for the GUI.

Parameters:
  • tk_globals (TkGlobals) – The tkinter variables that apply to the whole of the GUI

  • frames_location (str) – The path to the input frames

  • video_meta_data (dict[T.Literal['pts_time', 'keyframes'], list[int]] | None) – The meta data held within the alignments file, if it exists and the input is a video

  • file_list (list[str]) – The list of filenames that exist within the alignments file

Attributes Summary

is_initialized

True if the Frame Loader has completed initialization.

video_meta_data

The pts_time and key frames for the loader.

Attributes Documentation

is_initialized

True if the Frame Loader has completed initialization.

video_meta_data

The pts_time and key frames for the loader.

property is_initialized: bool

True if the Frame Loader has completed initialization.

property video_meta_data: dict[Literal['pts_time', 'keyframes'], list[int]] | None

The pts_time and key frames for the loader.