From 1ddf1169eca3991c0f4b86e60b32c608306f8270 Mon Sep 17 00:00:00 2001 From: ammkk Date: Mon, 22 Jul 2024 14:48:15 +0900 Subject: [PATCH 1/2] update readme --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index e95e62b..925fd0a 100644 --- a/README.md +++ b/README.md @@ -2512,6 +2512,7 @@ dataset_object = client.create_dataset_object( ], "attributes": [ { + "type": "text", "value": "Scottish field", "key": "kind" } @@ -2591,6 +2592,32 @@ See API docs for details. } ``` +If you would like to create with classification type annotations, please pass empty points and value of the annotation named 'classification'. + +```python +dataset_object = client.create_dataset_object( + dataset="YOUR_DATASET_NAME", + name="brushwood_dog.jpg", + file_path="./brushwood_dog.jpg", + tags=["dog"], # max 5 tags per dataset object. + licenses=["MIT", "my-license"], # max 10 licenses per dataset object + annotations=[ + { + "type": "classification", + "value": "classification", + "points": [], + "attributes": [ + { + "type": "text", + "value": "Scottish field", + "key": "kind" + } + ] + } + ] +) +``` + ### Find Dataset Object Find a single dataset object. From 872925095e9ebfebeca15d0f90130c0d53984170 Mon Sep 17 00:00:00 2001 From: ammkk Date: Mon, 22 Jul 2024 16:47:26 +0900 Subject: [PATCH 2/2] fix the text and its placement --- README.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 925fd0a..5b2e95a 100644 --- a/README.md +++ b/README.md @@ -2533,6 +2533,32 @@ dataset_object = client.create_dataset_object( ) ``` +If you would like to create a new dataset object with classification type annotations, please pass empty points and value of the annotation named 'classification'. + +```python +dataset_object = client.create_dataset_object( + dataset="YOUR_DATASET_NAME", + name="brushwood_dog.jpg", + file_path="./brushwood_dog.jpg", + tags=["dog"], # max 5 tags per dataset object. + licenses=["MIT", "my-license"], # max 10 licenses per dataset object + annotations=[ + { + "type": "classification", + "value": "classification", + "points": [], + "attributes": [ + { + "type": "text", + "value": "Scottish field", + "key": "kind" + } + ] + } + ] +) +``` + #### Response Dataset Object See API docs for details. @@ -2592,32 +2618,6 @@ See API docs for details. } ``` -If you would like to create with classification type annotations, please pass empty points and value of the annotation named 'classification'. - -```python -dataset_object = client.create_dataset_object( - dataset="YOUR_DATASET_NAME", - name="brushwood_dog.jpg", - file_path="./brushwood_dog.jpg", - tags=["dog"], # max 5 tags per dataset object. - licenses=["MIT", "my-license"], # max 10 licenses per dataset object - annotations=[ - { - "type": "classification", - "value": "classification", - "points": [], - "attributes": [ - { - "type": "text", - "value": "Scottish field", - "key": "kind" - } - ] - } - ] -) -``` - ### Find Dataset Object Find a single dataset object.