A deep learning-based web application for classifying brain MRI images as Tumor or Normal using a Convolutional Neural Network (CNN). The project features a user-friendly interface built with Flask, allowing users to upload an image and receive an instant diagnosis.
- β Classify brain MRI images as Tumor or Normal
- π§ Uses a trained CNN model with Keras and TensorFlow
- π Web interface built using Flask
- πΌοΈ Upload your own MRI scans for prediction
- π¦ Easy-to-run Python project
-
Clone the Repository
-
Install Dependencies
Make sure you have Python 3.x installed.
pip install -r requirements.txt
- Add the Trained Model
Place your trained model file as model.keras
in the project root directory.
- Run the Flask App
python main.py
- Access the Web Interface
Go to: http://127.0.0.1:5000/
- Input Shape:
(224, 224, 3)
- Model Type: CNN
- Framework: Keras (TensorFlow backend)
- Trained On: Brain MRI Dataset (Tumor vs Normal)
You can use this public dataset:
- Python
- Flask
- TensorFlow / Keras
- OpenCV
- HTML & CSS
Listed in requirements.txt
:
Flask
tensorflow
keras
numpy
opencv-python