GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - turgunbaevaa/dicom-kafka-pipeline: A microservice architecture for ingesting DICOM medical images using a Kafka producer-consumer model. The producer scans a folder for DICOM files and streams them to Kafka; the consumer extracts metadata and saves it to MongoDB. Includes Mongo Express UI for database inspection. All services are containerized with Docker.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
consumer
consumer
 
 
dicom_scans
dicom_scans
 
 
images
images
 
 
producer
producer
 
 
venv
venv
 
 
.DS_Store
.DS_Store
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

This README.md provides a quick reference for command-line operations to set up, run, and manage the DICOM processing pipeline.

1. Clone the repository:

git clone [dicom-kafka-pipeline link]
cd [your-project-folder-name]

2. Create input/output directories:

mkdir dicom_scans
mkdir images

3. I already uploaded .dcm files, so, you do not need. Or, if you want, you can do that.

Put your .dcm files into the dicom_scans directory (e.g., dicom_scans/case1/mri_scan.dcm). If you already have your DICOM files in this folder, you can skip this step.

4. Build and run all services in detached mode:

docker compose up --build -d

5. Verify services are running:

docker compose ps

6. Manual File Upload (Selective Processing)

To process specific DICOM files, run the producer as a one-off command. Ensure core services (Kafka, Mongo, Consumer) are already running via docker compose up -d zookeeper kafka mongo mongo-express consumer.

docker compose run producer python producer.py ./dicom_scans/case1/your_file.dcm

7. View real-time processing logs from the consumer:

docker logs -f mri_data-consumer-1

8. Viewing Generated Images

Check your local images folder (at the project root) for generated PNGs, organized by case folder.

Access the Mongo Express web UI in your browser:

http://localhost:8081 
admin for both user and password

Troubleshooting

Stop and remove all services, images, and volumes (clean slate):

docker compose down --volumes
docker system prune -a --volumes

(Caution: This will delete all Docker-related data, including MongoDB data and named volumes.)

Then, retry running the pipeline from scratch:

docker compose up --build -d

About

A microservice architecture for ingesting DICOM medical images using a Kafka producer-consumer model. The producer scans a folder for DICOM files and streams them to Kafka; the consumer extracts metadata and saves it to MongoDB. Includes Mongo Express UI for database inspection. All services are containerized with Docker.

Topics

consumerdicom-imagesdockerkafkaproducerpython3

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.