Welcome to the Brain Tumor Detection Application! This project leverages the power of machine learning to assist in the early detection of brain tumors using MRI images. Built with Python and Flask, this application provides an intuitive web interface for users to upload MRI scans and receive immediate feedback on the presence of tumors.
- MRI Image Upload: Easily upload MRI images for analysis.
- Tumor Detection: Utilizes a trained machine learning model,VGG16 to detect brain tumors with high accuracy of 97%.
- Classification: Further classification of brain tumor into three type: Glioma Meningioma and Pituitary tumor.
- Result Visualization: Visualize the detection results directly on the MRI images with type of tumour(Glioma,Meningioma,Pituary or if no tumor is present then the model prints no_tumor).
- User-Friendly Interface: Simple and intuitive web interface powered by Flask.
- Download Report: Users can download the photocopy of tumor detected image right after prediction is completed.
- Scalable: Easily deployable on any server or cloud platform.
To get started with the Brain Tumor Detection Application, follow these steps:
-
Clone the repository:
git clone https://github.com/SahiLmb/Tumor_Detection_App.git cd Tumor_Detection_App -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.envfile in the root directory. - Add your environment variables following the format in
.env.example.
- Create a
-
Run the application:
flask run
Once the application is running, users need to:
- Open your web browser and go to
http://127.0.0.1:5000/. - Upload an MRI image using the provided interface.
- Click "Submit" to analyze the image.
- View the results to see if a brain tumor along with it's type has been detected.
Contributions to this project are welcome! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/my-feature). - Make your changes and commit them (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature/my-feature). - Create a new pull request.
Please ensure your contributions adhere to the code of conduct.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to reach out if you have any questions or need further assistance Sahil Bodke. Happy coding!
.png)
.png)
.png)