Skip to content

A simple Flask web app that uses a deep learning model to detect brain tumors from MRI images

Notifications You must be signed in to change notification settings

ShrekBytes/tui_mor

Repository files navigation

🧠 Brain Tumor Detection Web App

A Flask-based web application that uses a trained deep learning model to detect brain tumors from MRI images.


📁 Folder Structure

project-root/
│
├── static/
├── templates/
├── model.h5                # Trained Keras model
├── label_map.json
├── app.py                  # Main Flask app
├── requirements.txt
└── README.md

🚀 Usage Guide

1️⃣ Clone the Repository

git clone https://github.com/ShrekBytes/tui_mor.git
cd tui_mor

2️⃣ Create and Activate Virtual Environment

python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Run the Flask App

python app.py

Visit the app in your browser:

http://127.0.0.1:5555

🧪 Features

  • Upload an MRI image
  • Predict tumor type: glioma, meningioma, pituitary, or no tumor
  • Display confidence score
  • View image with result overlay
  • Privacy focused (does not store any data, scan histories are stored on browser session)
  • JSON-based label mapping for easy customization

📸 Screenshots


📄 License

This project is licensed under the MIT License. Feel free to fork, modify, and use it for your own purposes.

About

A simple Flask web app that uses a deep learning model to detect brain tumors from MRI images

Resources

Stars

Watchers

Forks