diplomat.utils.video_info.get_frame_count_robust_fast

diplomat.utils.video_info.get_frame_count_robust_fast(video: ~diplomat.utils.video_io._create_cv2_manager.<locals>.cv2_context_manager) int[source]

Get an accurate frame count for a video.

Parameters:

video – The video to get the frame count for.

Returns:

An accurate frame count. Accuracy is better as this method opens the video and runs through all the frames in the file.