Shortcuts

mmcv.image.use_backend

mmcv.image.use_backend(backend: str) None[source]

Select a backend for image decoding.

Parameters:
  • backend (str) – The image decoding backend type. Options are cv2,

  • pillow – //github.com/lilohuang/PyTurboJPEG)

  • https (turbojpeg (see) – //github.com/lilohuang/PyTurboJPEG)

  • .jpeg (and tifffile. turbojpeg is faster but it only supports)

  • format. (file)