DICOM Image Anonymization Python Script
🔒 A simple and practical Python script for anonymizing DICOM medical imaging datasets using pydicom.
🩺 This tool demonstrates how to remove or replace common patient-identifying information (PHI) from DICOM headers while preserving the original image pixel data.
🎯 Perfect for:
• Medical physics
• Radiology research
• AI dataset preparation
• Academic projects
• DICOM learning and education
• Medical imaging workflow automation
✨ Features:
✔ Replace patient name and patient ID
✔ Remove common identifying DICOM tags
✔ Generate new DICOM UIDs
✔ Remove private vendor tags
✔ Preserve original image pixel data
✔ Lightweight and easy to understand
✔ Beginner-friendly Python example
📦 Included:
• Python anonymization script
• Example workflow
• Commented code for learning purposes
⚠️ Important Notes:
This product is intended for educational and research workflow demonstration purposes. Real-world clinical anonymization workflows may require additional validation depending on institutional, regulatory, and project requirements.
🖥 Requirements:
• Python 3
• pydicom library
📚 Great for anyone learning:
• DICOM structure
• Medical imaging informatics
• DICOM metadata handling
• Imaging data preparation for research and AI