diplomat.utils.extract_framesΒΆ

Provides utility functions for quickly extracting frames from diplomat frame store files, and also printing frame data to the terminal for debugging and display purposes.

Functions

extract_frames(dlfs_in, dlfs_out, frames[, ...])

Extract frames from a DIPLOMAT frame store and store them in another frame store.

extract_n_pack(dlfs_in, frames[, threshold, ...])

Extract frames from a DIPLOMAT Frame Store file and pack them into a base64 encoded byte string.

get_terminal_size([fallback])

Get the size of the terminal.

pretty_frame_string(data[, frame_idx, ...])

Return a DIPLOMAT Probability Frame in a pretty string for printing to the terminal.

pretty_print_frame(data[, frame_idx, ...])

Print a DIPLOMAT Probability Frame.

unpack_frame_string(frame_string[, ...])

Unpack a frame store string into a tracking data object for access to the original probability frame data.

Classes

BorderStyle(top_left, top_right, ...)

A named tuple, for representing a border style for the pretty print methods, mostly used internally...

FrameStringFormats()

Some pre-provided frame string format fonts, used to style frames when dumping them to the console.