diplomat.utils

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

Modules

cli_tools

Provides functions for turning typecaster annotated functions into CLI commands.

clustering

colormaps

Provides utility functions for colormap conversion and iteration.

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.

frame_store_api

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

frame_store_fmt

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

graph_ops

lazy_import

pluginloader

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

point_spread_patterns

pretty_printer

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

scipy_hungarian

shapes

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

track_formats

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.

video_info

Provides functions for extracting certain metadata from videos.

video_io

video_splitter

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