Skip to content

Commit 804689e

Browse files
authored
Merge pull request #62 from fastlabel/hotfix/update-status
update external status
2 parents 671e635 + 3b48712 commit 804689e

File tree

3 files changed

+149
-29
lines changed

3 files changed

+149
-29
lines changed

README.md

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ tasks = client.get_image_tasks(project="YOUR_PROJECT_SLUG")
130130
```python
131131
tasks = client.get_image_tasks(
132132
project="YOUR_PROJECT_SLUG",
133-
status="approved", # status can be 'registered', 'completed', 'skipped', 'sent_back', 'approved', 'customer_sent_back', 'customer_approved'
133+
status="approved", # status can be 'pending', 'registered', 'completed', 'skipped', 'sent_back', 'approved'
134134
tags=["tag1", "tag2"] # up to 10 tags
135135
)
136136
```
@@ -169,10 +169,12 @@ Example of a single image task object
169169
"height": 100, # image height
170170
"url": "YOUR_TASK_URL",
171171
"status": "registered",
172+
"externalStatus": "registered",
172173
"tags": [],
173174
"assignee": "ASSIGNEE_NAME",
174175
"reviewer": "REVIEWER_NAME",
175-
"customerReviewer": "CUSTOMER_REVIEWER_NAME",
176+
"externalAssignee": "EXTERNAL_ASSIGNEE_NAME",
177+
"externalReviewer": "EXTERNAL_REVIEWER_NAME",
176178
"annotations": [
177179
{
178180
"attributes": [
@@ -265,10 +267,12 @@ Example of a single image classification task object
265267
"height": 100, # image height
266268
"url": "YOUR_TASK_URL",
267269
"status": "registered",
270+
"externalStatus": "registered",
268271
"tags": [],
269272
"assignee": "ASSIGNEE_NAME",
270273
"reviewer": "REVIEWER_NAME",
271-
"customerReviewer": "CUSTOMER_REVIEWER_NAME",
274+
"externalAssignee": "EXTERNAL_ASSIGNEE_NAME",
275+
"externalReviewer": "EXTERNAL_REVIEWER_NAME",
272276
"attributes": [
273277
{
274278
"key": "kind",
@@ -360,10 +364,12 @@ Example of a single task object
360364
}
361365
],
362366
"status": "registered",
367+
"externalStatus": "registered",
363368
"tags": [],
364369
"assignee": "ASSIGNEE_NAME",
365370
"reviewer": "REVIEWER_NAME",
366-
"customerReviewer": "CUSTOMER_REVIEWER_NAME",
371+
"externalAssignee": "EXTERNAL_ASSIGNEE_NAME",
372+
"externalReviewer": "EXTERNAL_REVIEWER_NAME",
367373
"annotations": [
368374
{
369375
"content": "content-name"
@@ -485,10 +491,12 @@ Example of a single image classification task object
485491
"duration": 16.0, # total duration of video
486492
"url": "YOUR_TASK_URL",
487493
"status": "registered",
494+
"externalStatus": "registered",
488495
"tags": [],
489496
"assignee": "ASSIGNEE_NAME",
490497
"reviewer": "REVIEWER_NAME",
491-
"customerReviewer": "CUSTOMER_REVIEWER_NAME",
498+
"externalAssignee": "EXTERNAL_ASSIGNEE_NAME",
499+
"externalReviewer": "EXTERNAL_REVIEWER_NAME",
492500
"annotations": [
493501
{
494502
"attributes": [],
@@ -538,6 +546,32 @@ Supported following project types:
538546

539547
- Video - Classification (Single)
540548

549+
#### Create Task
550+
551+
Create a new task.
552+
553+
```python
554+
task_id = client.create_video_classification_task(
555+
project="YOUR_PROJECT_SLUG",
556+
name="sample.mp4",
557+
file_path="./sample.mp4",
558+
attributes=[
559+
{
560+
"key": "attribute-key",
561+
"value": "attribute-value"
562+
}
563+
],
564+
)
565+
```
566+
567+
#### Find Task
568+
569+
Find a single task.
570+
571+
```python
572+
task = client.find_video_classification_task(task_id="YOUR_TASK_ID")
573+
```
574+
541575
#### Get Tasks
542576

543577
Get tasks. (Up to 1000 tasks)
@@ -805,9 +839,8 @@ Example of a project object
805839
"type": "image_bbox",
806840
"slug": "YOUR_PROJECT_SLUG",
807841
"name": "YOUR_PROJECT_NAME",
808-
"isBitmap": False,
842+
"isPixel": False,
809843
"jobSize": 10,
810-
"useAnnotationService": False,
811844
"status": "active",
812845
"createdAt": "2021-04-20T03:20:41.427Z",
813846
"updatedAt": "2021-04-20T03:20:41.427Z",

0 commit comments

Comments
 (0)