pyorc.Video.get_frames#

Video.get_frames(method: Optional[Literal['grayscale', 'rgb', 'hsv', 'bgr']] = 'grayscale') DataArray[source]#

Get a xr.DataArray, containing a dask array of frames, from start_frame until end_frame.

The xr.DataArray will contain all coordinate variables and attributes, needed for further processing. It may be lazy, so that frames can be read at a later stage.

Parameters:

method (str, optional) – method for color scaling, can be “grayscale” (default) or “rgb”

Returns:

frames – containing all requested frames

Return type:

xr.DataArray