Shortcuts

mmcv.image.bgr2hls

mmcv.image.bgr2hls(img: numpy.ndarray)numpy.ndarray
Convert a BGR image to HLS

image.

Parameters

img (ndarray or str) – The input image.

Returns

The converted HLS image.

Return type

ndarray