Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 77 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ while True:

> Please wait a second before sending another requests!


#### Update Tasks

Update a signle task.
Update a single task.

```python
task_id = client.update_image_task(
Expand Down Expand Up @@ -300,7 +301,6 @@ Example when the project type is Image - Pose Estimation
}
```


### Image Classification

Supported following project types:
Expand Down Expand Up @@ -344,9 +344,10 @@ Get tasks. (Up to 1000 tasks)
tasks = client.get_image_classification_tasks(project="YOUR_PROJECT_SLUG")
```


#### Update Tasks

Update a signle task.
Update a single task.

```python
task_id = client.update_image_classification_task(
Expand Down Expand Up @@ -460,6 +461,30 @@ Get tasks.
tasks = client.get_multi_image_tasks(project="YOUR_PROJECT_SLUG")
```

#### Update Task

Update a single task.

```python
task_id = client.update_multi_image_task(
task_id="YOUR_TASK_ID",
status="approved",
assignee="USER_SLUG",
tags=["tag1", "tag2"],
annotations=[
{
"type": "bbox",
"value": "cat",
"content": "cat1.jpg",
"attributes": [
{ "key": "key", "value": "value1" }
],
"points": [990, 560, 980, 550]
}
]
)
```

#### Response

Example of a single task object
Expand Down Expand Up @@ -592,9 +617,55 @@ Get tasks. (Up to 10 tasks)
tasks = client.get_video_tasks(project="YOUR_PROJECT_SLUG")
```

#### Update Task

Update a single task.

```python
task_id = client.update_video_task(
task_id="YOUR_TASK_ID",
status="approved",
assignee="USER_SLUG",
tags=["tag1", "tag2"],
annotations=[{
"type": "bbox",
"value": "bird",
"points": {
"1": {
"value": [
100,
100,
200,
200
],
"autogenerated": False
},
"2": {
"value": [
110,
110,
220,
220
],
"autogenerated": True
},
"3": {
"value": [
120,
120,
240,
240
],
"autogenerated": False
}
}
}]
)
```

#### Response

Example of a single image classification task object
Example of a single vide task object

```python
{
Expand Down Expand Up @@ -701,7 +772,7 @@ tasks = client.get_video_classification_tasks(project="YOUR_PROJECT_SLUG")

#### Update Tasks

Update a signle task.
Update a single task.

```python
task_id = client.update_video_classification_task(
Expand Down Expand Up @@ -751,7 +822,7 @@ id_name_map = client.get_task_id_name_map(project="YOUR_PROJECT_SLUG")

## Annotation

### Create Annotaion
### Create Annotation

Create a new annotation.

Expand Down
Loading