Shortcuts

ToPIL

class mmcls.datasets.transforms.ToPIL[源代码]

Convert the image from OpenCV format to PIL.Image.Image.

Required Keys:

  • img

Modified Keys:

  • img

transform(results)[源代码]

Method to convert images to PIL.Image.Image.