Skip to content

This Flask-based web app uses a VGG19 model to predict brain tumor types from MRI images. It allows image uploads, performs predictions, and stores patient data in a MySQL database.

License

Notifications You must be signed in to change notification settings

GoldSharon/Tumor_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain Tumor Prediction Web Application

Overview

This project is a web application developed using Flask to predict brain tumor types based on MRI images. The application utilizes a pre-trained VGG19 model for image classification. It allows users to upload MRI images, processes them through the model, and provides predictions on the type of tumor present in the image. Furthermore, the application stores patient data and their corresponding predicted tumor types in a MySQL database.

Features

  • Brain Tumor Prediction: Upload MRI images to predict the type of brain tumor (glioma, meningioma, pituitary, or no tumor).
  • Patient Data Storage: Save patient names and predicted tumor types in a MySQL database.
  • User-Friendly Interface: A simple and intuitive web interface for easy interaction.

Technologies Used

  • Flask: Web framework used for building the application.
  • TensorFlow: Machine learning library for model loading and prediction.
  • MySQL: Database for storing patient data.
  • HTML/CSS: Front-end design for the web interface.

Installation

Prerequisites

  • Python 3.x
  • Git
  • MySQL

Steps

  1. Clone the repository:

    git clone https://github.com/GoldSharon/brain-tumor-prediction.git
  2. Navigate to the project directory:

    cd brain-tumor-prediction
  3. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Run the Flask application:

    python app.py
  2. Open your web browser and navigate to http://127.0.0.1:5000/.

  3. Upload an MRI image and enter the patient's name to predict the brain tumor type.

Database Configuration

The application uses a MySQL database to store patient data. Update the MySQL connection settings in the app.py file before running the application:

db = pymysql.connect(host='localhost',
                     user='root',
                     password='your-password',
                     database='patient_list')

About

This Flask-based web app uses a VGG19 model to predict brain tumor types from MRI images. It allows image uploads, performs predictions, and stores patient data in a MySQL database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published