INNER CODE UNIT · Python

extract_frames

DeepLabCut/DeepLabCut · deeplabcut/cli.py:151

def extract_frames(_, *args, **kwargs):
    """Extracts frames from the videos in the config.yaml file.

    Delegates to ``deeplabcut.extract_frames``.

    Only the videos in the config.yaml will be used to select the frames. Use the
    function ``add_new_videos`` at any stage of the project to add new videos to the
    config file and extract their frames.

    Args:
        config (string): Full path of the config.yaml file as a string.
        mode (string): Mode of extraction. Must be either ``automatic`` or ``manual``.
        algo (string, optional): For automatic extraction, the algorithm to use:
        ``kmeans`` or ``uniform``. Defaults to ``uniform``.
        crop (bool, optional): If True, crop frames according to config.yaml parameters.
        Defaults to False.

    Examples:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…