This repository contains a FastAPI-based web application designed for brain tumor detection using machine learning models. The project integrates three distinct models to analyze MRI scans and provide comprehensive insights:
- Detection of Tumor Presence
- Tumor Localization
- Tumor Type Classification
- MRI Scan Analysis: Upload and analyze MRI scans for various aspects of brain tumor detection.
- Real-time Predictions: Immediate results with a user-friendly web interface.
- Model Integration: Utilizes three specialized models for detailed analysis.
-
First Model: Tumor Presence Detection
- Description: This model determines whether an MRI scan indicates the presence of a tumor.
- Link: First Model
-
Second Model: Tumor Localization
- Description: This model detects the location of the tumor within the MRI scan.
- Link: Second Model
-
Third Model: Tumor Type Classification
- Description: This model classifies the type of tumor present in the MRI scan.
- Link: Third Model
-
Dataset 1 : Brain Tumor Dataset
- Description: A dataset containing MRI scans for training the tumor detection models.
- Link: Dataset 1
-
Dataset 2 : Tumor Types Dataset
- Description: A dataset used for classifying tumor types.
- Link: Dataset 2
To set up the project locally, follow these steps:
- Clone the Repository:
git clone https://github.com/Abdelrahman-Kamel8886/Brain-Tumor-Detection-FastApi.git cd Brain-Tumor-Detection-FastApi
- Create a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install Dependencies:
pip install -r requirements.txt
- Run the Application:
uvicorn main:app --reload
Access the web application at http://127.0.0.1:8000.
- Open the application in your web browser.
- Use the provided interface to upload an MRI scan.
- The models will analyze the scan and display results regarding tumor presence, location, and type.
- Model Path: The pre-trained model files should be placed in the models directory.
- Environment Variables: Set any required environment variables in a .env file for configuration.
Contributions are welcome! If you have suggestions or improvements, please open an issue or submit a pull request.
- FastAPI: A modern, fast (high-performance) web framework for building APIs with Python 3.7+.
- Deep Learning Models: Pre-trained models for various aspects of brain tumor detection.
- Datasets: Essential for training and evaluating the models.
For any questions or inquiries, please contact:
-
- LinkedIn: LinkedIn Profile
- Email: [email protected]