videolib.cvt_color.bgr2yuv

bgr2yuv(bgr, standard, range=None)[source]

Converts BGR to YUV. :type bgr: ndarray :param bgr: BGR array of shape (R, C, 3) :type standard: Standard :param standard: Color standard to which the data conforms. :type range: Union[int, float, None] :param range: Range of pixel values (Default: None - inferred from standard).

Return type:

ndarray

Returns:

YUV array of shape (R, C, 3)