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.38.tar.gz
(79.2 kB
view details)
Built Distribution
EXCAT_Sync-0.0.38-py3-none-any.whl
(154.7 kB
view details)
File details
Details for the file EXCAT-Sync-0.0.38.tar.gz
.
File metadata
- Download URL: EXCAT-Sync-0.0.38.tar.gz
- Upload date:
- Size: 79.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a166add6c53f89ed369763f1955ad352a49ac0c54d4e1af1cd35dc0148f54dc |
|
MD5 | 5e313638da1498f3cecc570c4e873436 |
|
BLAKE2b-256 | a8991d5dbcaca4f30d411ace78a5add6fe676344e48674e73d806fd53caad46a |
File details
Details for the file EXCAT_Sync-0.0.38-py3-none-any.whl
.
File metadata
- Download URL: EXCAT_Sync-0.0.38-py3-none-any.whl
- Upload date:
- Size: 154.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e7d9ff6db0f2f20ce11d3aca884b52a734e5b6953c942ca0d1752b73a19731 |
|
MD5 | f1a8dd7e09c47650358ffe2e67588c0d |
|
BLAKE2b-256 | 3ede7bd0c44a8c61455558740e775a0aeead875af28c8b9e524de7ad85315275 |