pyorc.Video.get_frames_chunk#
- Video.get_frames_chunk(n_start: int, n_end: int, method: Optional[Literal['grayscale', 'rgb', 'hsv', 'bgr']] = 'grayscale') ndarray [source]#
Retrieve a chunk of frames in one go.
- Parameters:
n_start (int) – frame number to initiate retrieval
n_end (int) – last frame number of retrieval
method (str) – can be “rgb”, “grayscale”, or “hsv”, default: “grayscale”
- Returns:
frame – 2d array (grayscale) or 3d (rgb/hsv) with frame
- Return type:
np.ndarray