The main idea we will depend on is that we can iterate over the DICOM files in a specific folder. Then we will iterate over the whole attributes in each file and extract only the attributes specified in advance. We will use the keywords of DICOM attributes as it’s the best choice because: Each DICOM attribute has its unique keyword. The keywords are better than tags as they are human-readable. There are dozens of attributes that can characterize DICOM files. So, you cannot just read all of them.