How uzaam07/brain-tumor-detection works
This is a Flask brain-MRI classification app: a user selects an image, the server validates and saves it, preprocesses it for CNN inference, then displays a class, confidence, and tumor information. The README also describes training and result visualizations. The tree differs from the README’s example layout; the map uses paths that actually appear in the tree. The notebook and page contents were not sampled, so their internal behavior and wiring are not inferred.
Main entry points: app.py Flask routes · predict.html Upload page · index.html Home page · brain-tumor-checkpoint.ipynb CNN training
Components 11
Web experience
- Home page
index.html - Upload page
predict.html - Upload interactions
javascript.js - Flask routes
app.py - Uploaded image
app.py - Result visualization
result.html
Classification
- Image preprocessing
app.py - CNN classifier
- Tumor information
app.py
Model training
- CNN training
brain-tumor-checkpoint.ipynb
Other components
- MRI user
Connections 12
- MRI user → Home page: opens
README.md - Home page → Flask routes: requests home
app.py - Flask routes → Upload page: renders upload
app.py - MRI user → Upload page: selects image
README.md - Upload page → Upload interactions: supports upload
- MRI user → Flask routes: submits image
README.md - Flask routes → Uploaded image: saves upload
app.py - Flask routes → Image preprocessing: calls prediction
app.py - Image preprocessing → CNN classifier: predicts class
app.py - Flask routes → Tumor information: builds result
app.py - Flask routes → Result visualization: renders result
app.py - CNN training → CNN classifier: trains model