How lokesh272727/breast-cancer-histopathology-analysis works
This repository is a breast histopathology image-classification web app. The intended user flow is image upload, server-side prediction and image analysis, then display and download of a report. The source excerpts show the analysis internals and report rendering, but not the Flask routes or training implementation; those connections are therefore marked unverified. The repository also includes a dataset-preparation script and a saved CNN model. README content was empty.
Main entry points: image_analysis.py Image analysis · app.js Upload and reports · app.py Web server · prepare_data.py Dataset preparation
Components 14
Web interface
- Upload and reports
breast-cancer-histopathology-analysis/static/js/app.js - Web server
breast-cancer-histopathology-analysis/app.py
Image inference
- Image analysis
breast-cancer-histopathology-analysis/core/image_analysis.py - Grad-CAM heatmaps
breast-cancer-histopathology-analysis/core/image_analysis.py - Heatmap overlay
breast-cancer-histopathology-analysis/core/image_analysis.py - Attention regions
breast-cancer-histopathology-analysis/core/image_analysis.py - Image features
breast-cancer-histopathology-analysis/core/image_analysis.py - Feature interpretation
breast-cancer-histopathology-analysis/core/image_analysis.py
Model preparation
- Dataset preparation
breast-cancer-histopathology-analysis/scripts/prepare_data.py - CNN training
breast-cancer-histopathology-analysis/scripts/train_cnn.py
Model and data
- Image dataset
- Breast cancer CSV
breast-cancer-histopathology-analysis/data/breast cancer.csv - Saved CNN model
breast-cancer-histopathology-analysis/models/cnn_model.h5
Other components
- Image analyst
Connections 13
- Image analyst → Upload and reports: uploads images
breast-cancer-histopathology-analysis/static/js/app.js - Upload and reports → Web server: submits analysis
- Web server → Image analysis: requests analysis
- Image analysis → Grad-CAM heatmaps: generates heatmap
breast-cancer-histopathology-analysis/core/image_analysis.py - Image analysis → Heatmap overlay: creates overlay
breast-cancer-histopathology-analysis/core/image_analysis.py - Image analysis → Attention regions: analyzes regions
breast-cancer-histopathology-analysis/core/image_analysis.py - Image analysis → Image features: extracts features
breast-cancer-histopathology-analysis/core/image_analysis.py - Image analysis → Feature interpretation: interprets features
breast-cancer-histopathology-analysis/core/image_analysis.py - Web server → Saved CNN model: loads model
- Upload and reports → Image analyst: renders report
breast-cancer-histopathology-analysis/static/js/app.js - Image dataset → Dataset preparation: provides images
- Dataset preparation → CNN training: prepares next step
breast-cancer-histopathology-analysis/scripts/prepare_data.py - CNN training → Saved CNN model: trains model