Skip to content

Paritt/WYVERN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‰ WYVERN

This project provides a GUI for chest X-ray (CXR) inspiration and rotation inspection. 🩻✨

πŸ› οΈ How It Works

The WYVERN application uses deep learning models to analyze chest X-ray images. Through its graphical user interface, you can:

  • Click "Select Img" to choose images (.dcm or .png or .jpg) for inspection
  • Click "Analyze" button to start the process
  • We detect inspiration by segmenting the lungs and 9th posterior rib and calculate overlap ratio called 'Rib over Lung (ROL)' to determine if the inspiration is sufficient. If it above a certain threshold, we classify it as 'Adequate Inspiration', otherwise 'Inadequate Inspiration'.
  • For rotation, we analyze the x position medial end of clavicles and the spinous process to determine if the patient is rotated. We calculate 'Alpha' which is quantify metric for access symmetry. If the alpha is above a certain threshold, we classify it as 'Rotated', otherwise 'Not Rotated'.

The models in src/models are used to perform the image analysis, ensuring accurate and fast inspection. The GUI makes it easy for users to operate without needing to write code.

alt text

πŸš€ How to Run

  1. πŸ“¦ Install the required Python packages:

    pip install -r requirements.txt
  2. 🧠 Place the required model files in the src/models directory.

  3. πŸŽ‰ Run the main application:

    python main.py

πŸ“‚ Directory Structure

β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ main.py                                 # main application file for the GUI (runs the application)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ logo/
|   |   β”œβ”€β”€ Logo.png
|   |   β”œβ”€β”€ icon.png
|   |   β”œβ”€β”€ icon.ico
|   β”‚   └── demo.png
β”‚   └── models/
β”‚       β”œβ”€β”€ lung_segmentation_model.pth     # pre-trained model for lung segmentation
β”‚       β”œβ”€β”€ rib_segmentation_model.pth      # pre-trained model for rib segmentation
β”‚       └── rotation_model.pth              # pre-trained model for rotation detection
β”œβ”€β”€ result/
|   └── result.png                          # result image will be saved here
└── example_images/                         # example images for testing
    β”œβ”€β”€ EX166/                              # DICOM images
    β”œβ”€β”€ artifact/                           # images with artifacts
    β”œβ”€β”€ not full/                           # images with inadequate inspiration
    └── full/                               # images with adequate inspiration

About

This project provides a GUI for chest X-ray (CXR) inspiration and rotation inspection. 🩻✨

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages