pydicom / deid

best effort anonymization for medical images using python
https://pydicom.github.io/deid/
MIT License
148 stars 44 forks source link

Anonymize pixel data #222

Open RobinFrcd opened 2 years ago

RobinFrcd commented 2 years ago

Hello, I'd like to anonymize pixel data in my dicom file.

If I understood well, this snippet should be enough, right ? Taken from the examples

from deid.dicom import DicomCleaner

client = DicomCleaner()
summary = client.detect(PATH)
client.clean()

The thing is, summary is empty: {'flagged': False, 'results': []} so nothing is happening.

What am I missing here ? Thanks

RobinFrcd commented 2 years ago

Alright, It's because the model name I have is not handled in the default deid. Is it possible to add it ?

LABEL Samsung # (AMBR)
  contains Manufacturer Samsung
  + contains Modality US
  + contains ManufacturerModelName HERA W9
  + equals Rows 872

Thanks

vsoch commented 2 years ago

Sure! Here is the file to PR to: https://github.com/pydicom/deid/blob/master/deid/data/deid.dicom