diplomat.core_ops.track_and_interact
- diplomat.core_ops.track_and_interact(config: List[PathLike | str] | PathLike | str, videos: List[PathLike | str] | PathLike | str | None = None, frame_stores: List[PathLike | str] | PathLike | str | None = None, num_outputs: int | None = None, settings: Dict[str, Any] | None = None, help_extra: bool = False, **extra_args) None[source]
Run diplomat in interactive tracking mode on the specified config and videos or frame stores. An alias for DIPLOMAT track_with with the SupervisedSegmentedFramePassEngine predictor.
- 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 to run analysis on.
frame_stores – A single path or list of paths to frame store files to run analysis on.
num_outputs – An integer, the number of bodies to track in the video. Defaults to 1.
settings – An optional dictionary, listing the settings to use for the SupervisedSegmentedFramePassEngine predictor plugin. If not specified, the frontend will determine the settings in a frontend specific manner. To see the settings the SupervisedSegmentedFramePassEngine supports, use the “diplomat predictors list_settings -p SupervisedSegmentedFramePassEngine” command or “diplomat.get_predictor_settings(‘SupervisedSegmentedFramePassEngine’)”. To get more information about how a frontend gets settings if not passed, set the help_extra parameter to True to print additional settings for the selected frontend instead of running tracking.
help_extra – Boolean, if set to true print extra settings for the automatically selected frontend instead of running tracking.
extra_args – Any additional arguments (if the CLI, flags starting with ‘–’) are passed to the automatically selected frontend. To see valid values, run track with extra_help flag set to true.