diplomat.core_ops.annotate

diplomat.core_ops.annotate(config: Union[List[Union[PathLike, str]], Union[PathLike, str]], videos: Optional[Union[List[Union[PathLike, str]], Union[PathLike, str]]] = None, help_extra: bool = False, **extra_args) None[source]

Have diplomat annotate, or label a video given it has already been tracked. Automatically searches for the correct frontend to do labeling based on the passed config argument.

Parameters
  • config – The path to the configuration file for the project. The format of this argument will depend on the frontend.

  • videos – A single path or list of paths to video files run annotation on.

  • help_extra – Boolean, if set to true print extra settings for the automatically selected frontend instead of running video annotation.

  • extra_args – Any additional arguments (if the CLI, flags starting with ‘–’) are passed to the automatically selected frontend. To see valid values, run annotate with extra_help flag set to true. Extra arguments that are not found in the frontend analysis function are thrown out.