This is a web application built using Flask for detecting brain tumors from MRI images.
- Upload MRI Images: Users can upload MRI images of the brain.
- Tumor Detection: The uploaded images are processed using a machine learning model to detect the presence of a brain tumor.
- Display Results: The application displays the prediction results to the user.
-
Clone the repository:
git clone https://github.com/crazykaran/brain-tumor-detection-app.git
-
Navigate to the project directory:
cd brain-tumor-detection-app
-
Install and create virtual environment:
pip install virtualenv virtualenv env .\env\Scripts\activate.ps1
-
Install the dependencies:
pip install -r requirements.txt
-
Start the Flask server:
python app.py
-
Open your web browser and navigate to http://localhost:5000.
-
Upload an MRI image of the brain using the provided form.
-
Wait for the application to process the image and display the prediction results.
app.py
: Main Flask application file.model/
: Directory containing the trained machine learning model.static/
: Directory for static files (e.g., CSS, JavaScript, images).templates/
: Directory for HTML templates.
- Flask: Web framework for Python.
- Keras: Deep learning library.
- TensorFlow: Machine learning library.
Contributions are welcome! Please create a pull request with your changes.