vuba.Frames
- class vuba.Frames(reader, start, stop, step, low_memory, grayscale)[source]
Container for frames that is used in
Video.read
.- Parameters
reader (callable) – Frame reader method supplied from
Video
class.start (int) – Index of first frame.
stop (int) – Index of last frame.
step (int) – Step size.
low_memory (bool) – Whether to import frames into memory.
grayscale (bool) – Whether to convert frames to grayscale.
- Returns
frames – Container for frames.
- Return type
Notes
Frames are imported into memory at initiation if low_memory=False.
See also
Methods
__init__
(reader, start, stop, step, ...)Import the declared frames into a contiguous numpy array.