VideoWriter

class imagepypelines.core.io.VideoWriter(filename='out_video.avi', fps=30.0, fourcc='XVID')[source]

Bases: object

a wrapper class for the cv2 Video Writer: https://docs.opencv.org/3.0-beta/modules/videoio/doc/reading_and_writing_video.html#videowriter-fourcc

This class will take a series of single frame imagery and

Methods Summary

release() closes the video writer
write(frame) writes a frame to the video file.

Methods Documentation

release()[source]

closes the video writer

Parameters:None
Returns:None
write(frame)[source]

writes a frame to the video file. automatically opens a video writer set to the input frame size

Parameters:frame (np.ndarray) – input frame to save to file
Returns:None