Plots the trajectories of various bodyparts across the video. Parameters ---------- config: str Full path of the config.yaml file. videos: list[str] Full paths to videos for analysis or a path to the directory, where all the videos with same extension are st
(
config,
videos,
video_extensions: str | Sequence[str] | None = None,
shuffle=1,
trainingsetindex=0,
filtered=False,
displayedbodyparts="all",
displayedindividuals="all",
showfigures=False,
destfolder=None,
modelprefix="",
imagetype=".png",
resolution=100,
linewidth=1.0,
track_method="",
pcutoff: float | None = None,
**kwargs,
)
| 172 | |
| 173 | @renamed_parameter(old="videotype", new="video_extensions", since="3.0.0") |
| 174 | def plot_trajectories( |
| 175 | config, |
| 176 | videos, |
| 177 | video_extensions: str | Sequence[str] | None = None, |
| 178 | shuffle=1, |
| 179 | trainingsetindex=0, |
| 180 | filtered=False, |
| 181 | displayedbodyparts="all", |
| 182 | displayedindividuals="all", |
| 183 | showfigures=False, |
| 184 | destfolder=None, |
| 185 | modelprefix="", |
| 186 | imagetype=".png", |
| 187 | resolution=100, |
| 188 | linewidth=1.0, |
| 189 | track_method="", |
| 190 | pcutoff: float | None = None, |
| 191 | **kwargs, |
| 192 | ): |
| 193 | """Plots the trajectories of various bodyparts across the video. |
| 194 | |
| 195 | Parameters |
| 196 | ---------- |
| 197 | config: str |
| 198 | Full path of the config.yaml file. |
| 199 | |
| 200 | videos: list[str] |
| 201 | Full paths to videos for analysis or a path to the directory, where all the |
| 202 | videos with same extension are stored. |
| 203 | |
| 204 | video_extensions : str | Sequence[str] | None, optional, default=None |
| 205 | Controls how ``videos`` are filtered, based on file extension. |
| 206 | File paths and directory contents are treated differently: |
| 207 | - ``None`` (default): file paths are accepted as-is; directories are |
| 208 | scanned for files with a recognized video extension. |
| 209 | - ``str`` or ``Sequence[str]`` (e.g. ``"mp4"`` or ``["mp4", "avi"]``): |
| 210 | both file paths and directory contents are filtered by the given |
| 211 | extension(s). |
| 212 | |
| 213 | shuffle: int, optional, default=1 |
| 214 | Integer specifying the shuffle index of the training dataset. |
| 215 | |
| 216 | trainingsetindex: int, optional, default=0 |
| 217 | Integer specifying which TrainingsetFraction to use. |
| 218 | Note that TrainingFraction is a list in config.yaml. |
| 219 | |
| 220 | filtered: bool, optional, default=False |
| 221 | Boolean variable indicating if filtered output should be plotted rather than |
| 222 | frame-by-frame predictions. Filtered version can be calculated with |
| 223 | ``deeplabcut.filterpredictions``. |
| 224 | |
| 225 | displayedbodyparts: list[str] or str, optional, default="all" |
| 226 | This select the body parts that are plotted in the video. |
| 227 | Either ``all``, then all body parts from config.yaml are used, |
| 228 | or a list of strings that are a subset of the full list. |
| 229 | E.g. ['hand','Joystick'] for the demo Reaching-Mackenzie-2018-08-30/config.yaml |
| 230 | to select only these two body parts. |
| 231 |
nothing calls this directly
no test coverage detected