diplomat.utils

This module includes general utility classes and functions used extensively in diplomat.

Modules

diplomat.utils.cli_tools

Provides functions for turning typecaster annotated functions into CLI commands.

diplomat.utils.colormaps

Provides utility functions for colormap conversion and iteration.

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.

diplomat.utils.frame_store_api

Provides a generic API and some core data structures for frame store formats, or files which store model outputs on disk.

diplomat.utils.frame_store_fmt

Contains 2 Utility Classes for reading and writing the DeepLabCut Frame Store format.

diplomat.utils.graph_ops

diplomat.utils.lazy_import

diplomat.utils.pluginloader

Module includes methods useful to loading all plugins placed in a folder, or module.

diplomat.utils.pretty_printer

Provides utilities for printing results to the console in a well formatted manner.

diplomat.utils.shapes

Provides utilities and interfaces for drawing shape markers, and iterating lists of shapes and converting lists of shapes names to shapes.

diplomat.utils.track_formats

diplomat.utils.tweak_ui

Contains utilities for loading user tracks into a lighter version of the interactive UI to allow for minor modifications to user saved tracking data.

diplomat.utils.video_info

Provides functions for extracting certain metadata from videos.

diplomat.utils.video_io

diplomat.utils.video_splitter

Provides a function for splitting videos into consecutive chunks at provided intervals or at exact locations.