diff --git a/README.md b/README.md index a36d863..d853d96 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ task_id = client.create_image_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", file_path="./sample.jpg", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "bbox", "value": "annotation-value", @@ -182,6 +183,7 @@ Update a single task. task_id = client.update_image_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -215,6 +217,7 @@ Example of a single image task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -254,6 +257,7 @@ Example when the project type is Image - Pose Estimation "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -401,6 +405,7 @@ task_id = client.create_image_classification_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", file_path="./sample.jpg", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -444,6 +449,7 @@ Update a single task. task_id = client.update_image_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -468,6 +474,7 @@ Example of a single image classification task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -505,6 +512,7 @@ task = client.create_multi_image_task( project="YOUR_PROJECT_SLUG", name="sample", folder_path="./sample", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "segmentation", "value": "annotation-value", @@ -569,6 +577,7 @@ task_id = client.update_multi_image_task( status="approved", assignee="USER_SLUG", tags=["tag1", "tag2"], + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "bbox", @@ -601,6 +610,7 @@ Example of a single task object ], "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -660,6 +670,7 @@ task_id = client.create_video_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", file_path="./sample.mp4", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "bbox", "value": "person", @@ -732,6 +743,7 @@ Update a single task. task_id = client.update_video_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -813,6 +825,7 @@ Example of a single vide task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -876,6 +889,7 @@ task_id = client.create_video_classification_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", file_path="./sample.mp4", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -919,6 +933,7 @@ Update a single task. task_id = client.update_video_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -955,6 +970,7 @@ task_id = client.create_text_task( project="YOUR_PROJECT_SLUG", name="sample.txt", file_path="./sample.txt", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "ner", "value": "person", @@ -999,6 +1015,7 @@ Update a single task. task_id = client.update_text_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -1022,6 +1039,7 @@ Example of a single text task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1059,6 +1077,7 @@ task_id = client.create_text_classification_task( project="YOUR_PROJECT_SLUG", name="sample.txt", file_path="./sample.txt", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -1102,6 +1121,7 @@ Update a single task. task_id = client.update_text_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -1138,6 +1158,7 @@ task_id = client.create_audio_task( project="YOUR_PROJECT_SLUG", name="sample.mp3", file_path="./sample.mp3", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "segmentation", "value": "person", @@ -1181,6 +1202,7 @@ Update a single task. task_id = client.update_audio_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -1203,6 +1225,7 @@ Example of a single audio task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1289,6 +1312,7 @@ task_id = client.create_audio_classification_task( project="YOUR_PROJECT_SLUG", name="sample.mp3", file_path="./sample.mp3", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -1332,6 +1356,7 @@ Update a single task. task_id = client.update_audio_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -1371,6 +1396,7 @@ task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", file_path="./sample.pcd", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "cuboid", @@ -1398,6 +1424,7 @@ task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", file_path="./sample.pcd", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "segmentation", @@ -1442,6 +1469,7 @@ Update a single task. task_id = client.update_pcd_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -1475,6 +1503,7 @@ Example of a single PCD task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": ["tag1", "tag2"], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1533,6 +1562,7 @@ task_id = client.create_sequential_pcd_task( project="YOUR_PROJECT_SLUG", name="drive_record", folder_path="./drive_record/", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "cuboid", # annotation class type @@ -1622,6 +1652,7 @@ Update a single task. task_id = client.update_sequential_pcd_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -1673,6 +1704,7 @@ Example of a single Sequential PCD task object "name": "YOUR_TASK_NAME", "status": "registered", "externalStatus": "registered", + "priority": 10, "annotations": [ { "id": "YOUR_TASK_ANNOTATION_ID", @@ -1751,6 +1783,7 @@ Update a single task status, tags and assignee. task_id = client.update_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 tags=["tag1", "tag2"], assignee="USER_SLUG" )