deepof.visuals.output_videos_per_cluster

deepof.visuals.output_videos_per_cluster(video_paths: list, breaks: list, soft_counts: list, frame_rate: int = 25, frame_limit_per_video: int = inf, single_output_resolution: tuple | None = None, window_length: int | None = None, min_confidence: float = 0.0, min_bout_duration: int | None = None, out_path: str = '.')

Given a list of videos, and a list of soft counts per video, outputs a video for each cluster.

Parameters:
  • video_paths – list of paths to the videos

  • breaks – list of breaks between videos

  • soft_counts – list of soft counts per video

  • frame_rate – frame rate of the videos

  • frame_limit_per_video – number of frames to render per video.

  • single_output_resolution – if single_output is provided, this is the resolution of the output video.

  • window_length – window length used to compute the soft counts.

  • min_confidence – minimum confidence threshold for a frame to be considered part of a cluster.

  • min_bout_duration – minimum duration of a bout to be considered.

  • out_path – path to the output directory.