deepof.visuals.output_cluster_video
- deepof.visuals.output_cluster_video(cap: Any, out: Any, frame_mask: list, v_width: int, v_height: int, path: str, frame_limit: int = inf)
Output a video with the frames corresponding to the cluster.
- Parameters:
cap – video capture object
out – video writer object
frame_mask – list of booleans indicating whether a frame should be written
v_width – video width
v_height – video height
path – path to the video file
frame_limit – maximum number of frames to render