A package to download images and annotations from the EXACT Server https://github.com/ChristianMarzahl/Exact
Project description
EXACT-Sync
Rest API sync with the EXACT Server https://github.com/ChristianMarzahl/Exact
Example Notebooks
In the folder examples
Pip
pip install EXCAT-Sync
Tests
with a lot of implementation examples /exact_sync/v1/test
Basic features:
Connect to server
configuration = Configuration()
configuration.username = 'exact'
configuration.password = 'exact'
configuration.host = "http://127.0.0.1:8000"
client = ApiClient(configuration)
image_sets_api = ImageSetsApi(client)
annotations_api = AnnotationsApi(client)
annotation_types_api = AnnotationTypesApi(client)
images_api = ImagesApi(client)
product_api = ProductsApi(client)
team_api = TeamsApi(client)
Get image set information
image_sets = image_sets_api.list_image_sets(name="cluster_asthma_imageset")
image_sets
Upload image to image set
image_type = int(Image.ImageSourceTypes.DEFAULT)
image = images_api.create_image(file_path=target_file, image_type=image_type, image_set=image_set.id).results[0]
Donwload image from image set
images_api.download_image(id=image_id, target_path=image_path, original_image=True)
Download image annotations
annotations_api.list_annotations(pagination=False, async_req=True, image=image.id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
EXCAT-Sync-0.0.22.tar.gz
(60.0 kB
view hashes)
Built Distribution
EXCAT_Sync-0.0.22-py3-none-any.whl
(125.3 kB
view hashes)
Close
Hashes for EXCAT_Sync-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75902a311bb0f199eb84900f4a80132f0a6c13fccc171c58b21d72faee4993c3 |
|
MD5 | 4f4a68f62b2cfe70d449cb7826b0db27 |
|
BLAKE2b-256 | 4acd87a9b52ac9e7ab82c83ef79ae112a75b7c47e7eb0edd572797c4051dfdc8 |