vuba.gray

vuba.gray(frame)[source]

Convert a frame to grayscale.

Parameters

frame (ndarray) – Frame to grayscale.

Returns

frame – Grayscale frame.

Return type

ndarray

Raises

ValueError – If the supplied image is not of BGR format.

See also

bgr, hsv