vuba.Video

class vuba.Video(footage)[source]

Wrapper around various image readers that provides a simple API to achieve the same functions regardless of format.

Parameters

footage (str or cv2.VideoCapture or list.) – Full filename or VideoCapture object to a video (e.g. AVI or MP4), or a glob string or series of filenames to a series of individual images. Note that series of all individual filenames will be sorted prior to being read if a glob string is supplied.

Returns

video – Video handler for footage supplied.

Return type

Video

See also

open_video, Frames, Writer

Examples

For example usage of this handler please see example scripts located at examples/reading.

__init__(footage)[source]

Methods

__init__(footage)

close()

Close/teardown attached video handlers.

read(*args, **kwargs)

Read single or multiple frames from the provided footage.