mmcv.image.imconvert¶ mmcv.image.imconvert(img: ndarray, src: str, dst: str) → 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