mmcv.image.imconvert¶ mmcv.image.imconvert(img: numpy.ndarray, src: str, dst: str) → numpy.ndarray[源代码]¶ Convert an image from the src colorspace to dst colorspace. 参数 img (ndarray) – The input image. src (str) – The source colorspace, e.g., ‘rgb’, ‘hsv’. dst (str) – The destination colorspace, e.g., ‘rgb’, ‘hsv’. 返回 The converted image. 返回类型 ndarray