diplomat sleap label_videos

Summary

Label videos tracked using the SLEAP frontend.

Usage

diplomat sleap label_videos [-h] --config FILE --videos
                                   [FILE, ...]|FILE [--body_parts_to_plot [STR, ...]]
                                   [--video_extension STR] [--pcutoff FLOAT]
                                   [--dotsize INT] [--alphavalue FLOAT]
                                   [--colormap TO_COLORMAP]
                                   [--shape_list [STR, ...]]
                                   [--line_thickness INT]
                                   [--skeleton [[STR, STR], ...]|{STR: [STR, ...], ...}|[STR, ...]|NONE|BOOL]
                                   [--skeleton_color TO_RGBA]
                                   [--output_codec CV2_FOURCC_STRING]
                                   [--draw_hidden_tracks BOOL]
                                   [--antialiasing BOOL]
                                   [--upscale_factor FLOAT]

Options

usage: diplomat sleap label_videos [-h] --config FILE --videos
                                   [FILE, ...]|FILE [--body_parts_to_plot [STR, ...]]
                                   [--video_extension STR] [--pcutoff FLOAT]
                                   [--dotsize INT] [--alphavalue FLOAT]
                                   [--colormap TO_COLORMAP]
                                   [--shape_list [STR, ...]]
                                   [--line_thickness INT]
                                   [--skeleton [[STR, STR], ...]|{STR: [STR, ...], ...}|[STR, ...]|NONE|BOOL]
                                   [--skeleton_color TO_RGBA]
                                   [--output_codec CV2_FOURCC_STRING]
                                   [--draw_hidden_tracks BOOL]
                                   [--antialiasing BOOL]
                                   [--upscale_factor FLOAT]

Label videos tracked using the SLEAP frontend.

optional arguments:
  -h, --help            show this help message and exit
  --config FILE, -c FILE
                        The path (or list of paths) to the sleap model(s) used
                        for inference, each as either as a folder or zip file.
  --videos [FILE, ...]|FILE, -v [FILE, ...]|FILE
                        Paths to the sleap label files, or .slp files, to make
                        minor modifications to, NOT the video files.
  --body_parts_to_plot [STR, ...], -bptp [STR, ...]
                        An optional list of body part names to plot in the
                        labeled video. Defaults to None, meaning plot all body
                        parts.
  --video_extension STR, -ve STR
                        The file extension to use on the created labeled
                        video, excluding the dot. Defaults to 'mp4'.
  --pcutoff FLOAT       The probability to cutoff results below.
  --dotsize INT         The size of the dots.
  --alphavalue FLOAT    The alpha value of the dots.
  --colormap TO_COLORMAP
                        The colormap to use for tracked points in the video.
                        Can be a matplotlib colormap or a list of matplotlib
                        colors.
  --shape_list [STR, ...]
                        A list of shape names, shapes to use for drawing each
                        individual's dots.
  --line_thickness INT  Thickness of lines drawn.
  --skeleton [[STR, STR], ...]|{STR: [STR, ...], ...}|[STR, ...]|NONE|BOOL
                        The skeleton to use for this this run of DIPLOMAT.
                        Defaults to None, which uses the skeleton associated
                        with the sleap project. Can be a list of strings, a
                        list of tuples of strings, a dictionary of strings to
                        strings or listsof strings, or True/False (True
                        connects all parts, False connects no parts, disabling
                        the skeleton).
  --skeleton_color TO_RGBA
                        Color of the skeleton.
  --output_codec CV2_FOURCC_STRING
                        The codec to use for the labeled video...
  --draw_hidden_tracks BOOL
                        Whether or not to draw locations under the pcutoff
                        value.
  --antialiasing BOOL   Use antialiasing when drawing points.
  --upscale_factor FLOAT
                        A optional integer multiplier to use for increasing
                        the size of the output video.