CardiacSegNet Backend is a robust server-side application designed to handle the processing and analysis of cardiac MRI images. It provides RESTful APIs for managing image data, performing segmentation tasks, and facilitating communication with the frontend interface.
- Image Processing: Efficient handling and processing of cardiac MRI images.
- Segmentation Services: Implementation of advanced algorithms for accurate cardiac image segmentation.
- API Endpoints: Well-defined RESTful APIs for seamless integration with frontend applications.
- Data Management: Secure storage and retrieval of imaging data.
Before setting up the project, ensure you have the following installed:
- Python 3.8+
- pip (Python package installer)
- Virtual Environment (optional but recommended)
Follow these steps to set up the project locally:
-
Clone the Repository:
git clone https://github.com/fahad-git/cardiacsegnet-backend.git
-
Navigate to the Project Directory:
cd cardiacsegnet-backend
-
Create and Activate a Virtual Environment (Optional):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
To start the development server:
python main.py
The server will start, and the API endpoints will be accessible at http://localhost:8000
.
- GET /images: Retrieve a list of all cardiac MRI images.
- POST /images: Upload a new cardiac MRI image.
- GET /images/{id}: Retrieve a specific image by ID.
- PUT /images/{id}: Update details of a specific image.
- DELETE /images/{id}: Delete a specific image.
- POST /segment: Perform segmentation on a provided cardiac MRI image.
For detailed documentation of each endpoint, refer to the API documentation available at http://localhost:8000/docs
once the server is running.
To run the test suite:
pytest
Ensure all tests pass before deploying or contributing to the project.
Contributions are welcome! To contribute:
- Fork the Repository: Click on the 'Fork' button at the top right corner of the repository page.
- Create a New Branch: Use
git checkout -b feature-name
to create a branch for your feature or bug fix. - Commit Your Changes: After making changes, commit them with a descriptive message.
- Push to the Branch: Use
git push origin feature-name
to push your changes to your forked repository. - Open a Pull Request: Navigate to the original repository and click on 'New Pull Request' to submit your changes for review.
Please ensure your code adheres to the project's coding standards and includes relevant tests.
This project is licensed under the MIT License. See the LICENSE file for more details.
Special thanks to the contributors and the open-source community for their support and resources.