DICOM Flask App β Multi-Tab Lesion Detector π Overview This Flask web app allows users to upload DICOM files, detect lesions using DeepLesion (Faster R-CNN), and classify them with ResNet50. The UI features a multi-tab layout with a sidebar for smooth navigation.
β Upload & Process DICOM Files β Detect & Classify Lesions Automatically β Multi-Tab UI with Sidebar Navigation β Sample DICOM File Included for Testing
π Installation & Setup 1οΈβ£ Clone the Repository bash Copy Edit git clone https://github.com/YOUR_GITHUB_USERNAME/DICOM-Flask-App.git cd DICOM-Flask-App 2οΈβ£ Install Dependencies bash Copy Edit pip install -r requirements.txt (If requirements.txt is missing, install manually:)
bash Copy Edit pip install flask torch torchvision pydicom numpy matplotlib opencv-python 3οΈβ£ Run the Flask App bash Copy Edit python app.py Then, open http://127.0.0.1:5000/ in your browser.
π Project Structure graphql Copy Edit DICOM-Flask-App/ βββ static/ # CSS & processed images β βββ style.css # UI Styling (Velvet Room Theme) βββ templates/ # HTML Templates for Flask β βββ index.html # Main UI (Tabs: Upload, Results) βββ uploads/ # Stores uploaded DICOM files βββ sample.dcm # Sample DICOM file for testing β βββ app.py # Flask Application βββ requirements.txt # Dependencies βββ README.md # This documentation π How to Use 1οΈβ£ Upload a DICOM File Go to http://127.0.0.1:5000/ Click "Upload DICOM", select a file, and click "Upload & Process" 2οΈβ£ View Results Click the "Results" tab to see detected lesions. Lesions are shown with bounding boxes and classified as Tumor, Cyst, Hemorrhage, or Inflammation. π Sample DICOM File A sample DICOM file (se.dcm) is included in the repo for convenience.
If you donβt have a DICOM file, use this one for testing. π₯ Future Upgrades πΉ Grad-CAM Heatmaps β Highlight lesion focus areas. πΉ DICOM Export β Save processed images back into DICOM format. πΉ Automatic Report Generation β AI-generated text reports for findings.