I was trying to convert DICOM to JPG with some code I found online:
import cv2 import numpy as np import pydicom as dicom import os from matplotlib import pyplot