This project uses a machine learning model to identify brain tumors based on MRI images. It supports classification into four categories:
- Pituitary Tumor
- No Tumor
- Meningioma
- Glioma
The model is deployed on Streamlit and provides an intuitive interface for users to upload MRI images, view predictions, and analyze probabilities for each class.
- Upload and test MRI images.
- View predictions with confidence probabilities.
- Intuitive UI hosted on Streamlit.
- Real-time processing and results display.
You can access the project here.
- Upload an MRI image (JPG, PNG, JPEG).
- The image is preprocessed and passed through a pre-trained model.
- The model predicts the tumor type or indicates if no tumor is present.
- Results and probabilities are displayed instantly.
- Clone the repository:
git clone https://github.com/Sandeep0900/brain-tumor-detection.git cd brain-tumor-detection - Install the required packages:
pip install -r requirements.txt
- Place the
keras_model.h5file in themodelsdirectory. - Run the Streamlit app:
streamlit run app.py
- Open the app in your browser at
http://localhost:8501.
- Improve model accuracy with additional data.
- Add more tumor classifications.
- Deploy on additional platforms for broader accessibility.
Feel free to explore, contribute, and give feedback. Let's make diagnostics smarter together! 🚀