This repo has Brain Tumor Classification project, where we leverage the power of deep learning and Convolutional Neural Networks (CNNs) to accurately diagnose brain tumors from MRI scans. This application, seamlessly deployed using Flask, offers a user-friendly interface for uploading and predicting tumor types in real-time.
CNN project.ipynb/
: Contains the Jupyter notebook used for developing and training the CNN model.code_py.py
: The main Flask application script.templates/
: Directory for HTML templates.CNN_deploy.html
: HTML file for uploading images.pred.html
: HTML file for displaying predictions.
Brain_tumor_classification.h5
: The trained CNN model.
-
Python 3.7 or higher
-
TensorFlow
-
Flask
-
OpenCV
-
PIL (Pillow)
-
NumPy
The CNN model was developed using TensorFlow and trained on a dataset of brain MRI images. The model is designed to classify images into one of the following categories:
- No Tumor
- Pituitary Tumor
- Meningioma Tumor
- Glioma Tumor
The Flask application serves as a web interface for users to upload brain scan images and receive predictions from the CNN model. The application consists of two main HTML pages:
- CNN_deploy.html: Allows users to upload images and displays the uploaded images using JavaScript.
- pred.html: Displays the predicted tumor type for the uploaded images.