Skip to content

Commit 8729250

Browse files
author
ammkk
committed
fix the text and its placement
1 parent 1ddf116 commit 8729250

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,32 @@ dataset_object = client.create_dataset_object(
25332533
)
25342534
```
25352535

2536+
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'.
2537+
2538+
```python
2539+
dataset_object = client.create_dataset_object(
2540+
dataset="YOUR_DATASET_NAME",
2541+
name="brushwood_dog.jpg",
2542+
file_path="./brushwood_dog.jpg",
2543+
tags=["dog"], # max 5 tags per dataset object.
2544+
licenses=["MIT", "my-license"], # max 10 licenses per dataset object
2545+
annotations=[
2546+
{
2547+
"type": "classification",
2548+
"value": "classification",
2549+
"points": [],
2550+
"attributes": [
2551+
{
2552+
"type": "text",
2553+
"value": "Scottish field",
2554+
"key": "kind"
2555+
}
2556+
]
2557+
}
2558+
]
2559+
)
2560+
```
2561+
25362562
#### Response Dataset Object
25372563

25382564
See API docs for details.
@@ -2592,32 +2618,6 @@ See API docs for details.
25922618
}
25932619
```
25942620

2595-
If you would like to create with classification type annotations, please pass empty points and value of the annotation named 'classification'.
2596-
2597-
```python
2598-
dataset_object = client.create_dataset_object(
2599-
dataset="YOUR_DATASET_NAME",
2600-
name="brushwood_dog.jpg",
2601-
file_path="./brushwood_dog.jpg",
2602-
tags=["dog"], # max 5 tags per dataset object.
2603-
licenses=["MIT", "my-license"], # max 10 licenses per dataset object
2604-
annotations=[
2605-
{
2606-
"type": "classification",
2607-
"value": "classification",
2608-
"points": [],
2609-
"attributes": [
2610-
{
2611-
"type": "text",
2612-
"value": "Scottish field",
2613-
"key": "kind"
2614-
}
2615-
]
2616-
}
2617-
]
2618-
)
2619-
```
2620-
26212621
### Find Dataset Object
26222622

26232623
Find a single dataset object.

0 commit comments

Comments
 (0)