videolib.video.Frame¶
- class Frame(standard, quantization=None, dither=False)[source]¶
Bases:
objectClass defining a frame, either of a video or an image. Supported native color representations:
rgb,linear_rgb,bgr,linear_bgr,yuv,linear_yuv,xyz. Access asframe.<color_space>. For all others, use thecvt_colorsubmodule.Initializer.
- Parameters:
Methods
Quantize value to have
quantizationnumber of levels, while occupying the same input range.Plot image using matplotlib.
Attributes
Height of the Frame
Color primaries of the Frame's standard
Width of the Frame
- quantize(value)[source]¶
Quantize value to have
quantizationnumber of levels, while occupying the same input range.