pyorc.Video.get_frame#

Video.get_frame(n: int, method: Optional[Literal['grayscale', 'rgb', 'hsv', 'bgr']] = 'grayscale') ndarray[source]#

Retrieve one frame.

Parameters:#

nint

frame number to retrieve

methodstr

can be “rgb”, “grayscale”, or “hsv”, default: “grayscale”

returns:

frame – 2d array (grayscale) or 3d (rgb/hsv) with frame

rtype:

np.ndarray