poseinterface.clips.extract_clips_uniform#
- poseinterface.clips.extract_clips_uniform(video_path, duration, num_clips)[source]#
Extract clips with uniformly spaced starting frames from a video.
Clips are guaranteed to be fully within the video, but clips may overlap when
duration > (total_n_frames - duration) / num_clips.- Parameters:
video_path (
Path) – Path to the input.mp4video. Seeextract_single_clip()for naming conventions.duration (
int) – Number of frames per clip.num_clips (
int) – Number of clips to extract, spaced evenly across the video via_uniform_start_frames().
- Returns:
See
extract_clips().- Return type: