Contents:
Helper function to load video segments.
cap (cv2.VideoCapture object) –
cv2.VideoCapture
idxs (array-like) – frame indices into video
array-like
obj – returned frames of shape shape (n_frames, y_pix, x_pix)