Skip to content

CardiacSegNet Backend is a robust server-side application designed to handle the processing and analysis of cardiac MRI images.

Notifications You must be signed in to change notification settings

fahad-git/cardiacsegnet-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardiacSegNet Backend

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.

Features

  • 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.

CardiacSegNet

Prerequisites

Before setting up the project, ensure you have the following installed:

  • Python 3.8+
  • pip (Python package installer)
  • Virtual Environment (optional but recommended)

Installation

Follow these steps to set up the project locally:

  1. Clone the Repository:

    git clone https://github.com/fahad-git/cardiacsegnet-backend.git
  2. Navigate to the Project Directory:

    cd cardiacsegnet-backend
  3. Create and Activate a Virtual Environment (Optional):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  4. Install Dependencies:

    pip install -r requirements.txt

Usage

To start the development server:

python main.py

The server will start, and the API endpoints will be accessible at http://localhost:8000.

API Endpoints

  • 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.

Testing

To run the test suite:

pytest

Ensure all tests pass before deploying or contributing to the project.

Contributing

Contributions are welcome! To contribute:

  1. Fork the Repository: Click on the 'Fork' button at the top right corner of the repository page.
  2. Create a New Branch: Use git checkout -b feature-name to create a branch for your feature or bug fix.
  3. Commit Your Changes: After making changes, commit them with a descriptive message.
  4. Push to the Branch: Use git push origin feature-name to push your changes to your forked repository.
  5. 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.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

Special thanks to the contributors and the open-source community for their support and resources.

About

CardiacSegNet Backend is a robust server-side application designed to handle the processing and analysis of cardiac MRI images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages