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

Optimized routines for performing agglomerative clustering on weighted graphs.

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 DIPLOMAT Frame Store format.

graph_ops

Contains various optimized graph routines, including counting components, minimum spanning tree, and min cost matching.

lazy_import

Contains utilities for lazily importing and resolving python modules.

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

Contains utility functions for converting pose objects to and from DIPLOMAT CSV pose estimate files.

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

Contains utilities for reading and writing video files using OpenCV.

video_splitter

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