How yashwanth161102/braintumourclassification works
BrainTumorClassification is a Flask-based brain MRI classifier. A user uploads an image, the app crops and resizes it, runs the saved model, maps its scores to a tumor class, and renders a result; it also serves an information page. The repository includes a training notebook and image datasets, but their contents were not sampled, so links from those assets to training and the saved model are unverified. The README gives only the project name, so the runtime flow is based on app.py.
Main entry points: app.py Flask routes · Training.ipynb Model training · model.h5 Saved classifier · Datasets MRI datasets
Components 10
Web application
- Flask routes
app.py
Image inference
- Image preprocessing
app.py - Saved classifier
model.h5 - Class mapping
app.py
Training assets
- MRI datasets
Datasets - Model training
Training.ipynb
Web views
- Upload page
templates/index.html - Result page
templates/result.html - Information page
templates/info.html
Other components
- Image uploader
Connections 9
- Image uploader → Flask routes: uploads image
app.py - Flask routes → Image preprocessing: prepares image
app.py - Flask routes → Saved classifier: predicts with
app.py - Flask routes → Class mapping: maps scores
app.py - Flask routes → Upload page: renders
app.py - Flask routes → Result page: renders result
app.py - Flask routes → Information page: renders info
app.py - MRI datasets → Model training: may train
- Model training → Saved classifier: may produce