Convert all DICOM (.dcm) images in a folder to JPG/PNG and extract all patients information in a '.csv' format in a go using python.

vivek8981 vivek8981 Last update: Mar 03, 2024

DICOM-to-JPG

Convert all DICOM (.dcm) images in a folder to JPG/PNG and extract all patients information in a '.csv' format in a go using python.

For image processing or image classification the most popular supported file system is JPG / PNG. So it's really difficult to work with a '.dcm' image. The following code will convert all your '.dcm' images in a folder to JPG or PNG just by specifying the folder path and also extract all information stored in DICOM file.

Subscribe to our newsletter