diplomat.utils.video_io.ContextVideoWriter

diplomat.utils.video_io.ContextVideoWriter

An implementation of cv2.VideoWriter that supports opening the file with the python ‘with’ statement.

Methods

__init__(*args[, throw_on_unopened])

Create a new {clazz}.

read()

Read a frame from the video file.

write(frame)

Write a frame from the video file.