mmcv.image.imconvert¶ mmcv.image.imconvert(img: numpy.ndarray, src: str, dst: str) → numpy.ndarray[source]¶ Convert an image from the src colorspace to dst colorspace. Parameters img (ndarray) – The input image. src (str) – The source colorspace, e.g., ‘rgb’, ‘hsv’. dst (str) – The destination colorspace, e.g., ‘rgb’, ‘hsv’. Returns The converted image. Return type ndarray