output.media_writer

Description

Writes the output image/video to file.

class Node(config=None, **kwargs)[source]

Outputs the processed image or video to a file. A timestamp is appended to the end of the file name.

Inputs

img (numpy.ndarray): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.

filename (str): The filename of video/image being read.

saved_video_fps (float): FPS of the recorded video, upon filming.

pipeline_end (bool): A boolean that evaluates to True when the pipeline is completed. Suitable for operations that require the entire inference pipeline to be completed before running.

Outputs

none: No outputs produced.

Configs

output_dir (str) – default = “PeekingDuck/data/output”.
Output directory for files to be written locally.