pyorc.Video.get_frame#

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

Retrieve one frame.

Parameters:
  • n (int) – frame number to retrieve

  • 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