All formats

JPEG 2000 libraries for Python

All three libraries use OpenJPEG for the actual decoding and encoding:

For DICOM, pydicom decodes JPEG 2000 pixel data with pylibjpeg-openjpeg or Pillow. OpenCV also reads and writes .jp2 with cv2.imread / cv2.imwrite when built with OpenJPEG.