AnyMotion SDK for Python
Project description
AnyMotion Python SDK
AnyMotion SDK for Python.
Installation
Install using pip:
$ pip install anymotion-sdk
Usage
Set the client id and client secret issued by the AnyMotion Portal.
from anymotion_sdk import Client
# Setup client
client = Client(client_id="your_client_id", client_secret="your_client_secret")
# Upload image file
upload_result = client.upload("image.jpg")
# Extract keypoint
keypoint_id = client.extract_keypoint(image_id=upload_result.image_id)
extraction_result = client.wait_for_extraction(keypoint_id)
# Get keypoint data from result
keypoint = extraction_result.json
# Get keypoint data from keypoint_id
keypoint = client.get_keypoint(keypoint_id)
Example
See AnyMotion Examples.
Change Log
See CHANGELOG.md.
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
anymotion-sdk-1.0.1.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for anymotion_sdk-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf7a43bb2ef6eda7c8ff69c8c1ad94e9abefa64ba85d4e2fe91ac23efd5c5d1e |
|
MD5 | efaa20102324073e015ff01452151307 |
|
BLAKE2b-256 | 9696c0f425a0dd5a565500a7c56e7e7275a1438f95f3adeca9ed3487476858d7 |