Obtaining Details About a Team Labeling Sample
Function
Obtain samples labeled by a team. The API can be called only after an acceptance task is initiated.
Debugging
You can debug this API in API Explorer which supports automatic authentication. API Explorer can automatically generate SDK code examples and provide the SDK code example debugging.
URI
GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples/{sample_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
dataset_id |
Yes |
String |
Dataset ID |
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
sample_id |
Yes |
String |
Sample ID |
workforce_task_id |
Yes |
String |
Labeling task ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
locale |
No |
String |
Language Options:
|
sample_state |
No |
String |
Sample status. Options: |
worker_id |
No |
String |
ID of a labeling team member |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
check_accept |
Boolean |
Whether the acceptance is passed, which is used for team labeling. Options: |
check_comment |
String |
Acceptance comment, which is used for team labeling. |
check_score |
String |
Acceptance score, which is used for team labeling. |
deletion_reasons |
Array of strings |
Reason for deleting a sample, which is used for healthcare. |
hard_details |
Map<String,HardDetail> |
Difficult problem details, including description, causes, and suggestions of difficult problems. |
labelers |
Array of Worker objects |
Labeling personnel list of sample allocation. The list records the team members receiving the samples, which is used for team labeling. |
labels |
Array of SampleLabel objects |
List of sample labels |
metadata |
SampleMetadata object |
Attribute key-value pair of the sample metadata |
review_accept |
Boolean |
Whether to accept the review, which is used for team labeling. Options: |
review_comment |
String |
Review comment, which is used for team labeling. |
review_score |
String |
Review score, which is used for team labeling. |
sample_data |
Array of strings |
List of sample data |
sample_dir |
String |
Path for storing a sample |
sample_id |
String |
Sample ID |
sample_name |
String |
Sample name |
sample_size |
Long |
Sample size or text length, in bytes |
sample_status |
String |
Sample status. Options: |
sample_time |
Long |
Sample time, when OBS is last modified. |
sample_type |
Integer |
Sample type. Options: |
score |
String |
Comprehensive score, which is used for team labeling. |
source |
String |
Source address of sample data |
sub_sample_url |
String |
Subsample URL, which is used for healthcare. |
worker_id |
String |
ID of a labeling team member, which is used for team labeling. |
Parameter |
Type |
Description |
---|---|---|
alo_name |
String |
Alias |
id |
Integer |
Reason ID |
reason |
String |
Reason description |
suggestion |
String |
Handling suggestion |
Parameter |
Type |
Description |
---|---|---|
create_time |
Long |
Worker creation time |
description |
String |
Labeling team member description. The value contains 0 to 256 characters. Special characters (^!<>=&"') are not allowed. |
|
String |
Email address of a labeling team member |
role |
Integer |
Role. Options: |
status |
Integer |
Current login status of a labeled member. Options: |
update_time |
Long |
Worker update time |
worker_id |
String |
ID of a labeling team member |
workforce_id |
String |
ID of a labeling team |
Parameter |
Type |
Description |
---|---|---|
annotated_by |
String |
Video labeling method, which is used to determine whether a video is labeled manually or automatically. Options: |
id |
String |
Label ID |
name |
String |
Label name |
property |
SampleLabelProperty object |
Attribute key-value pair of the sample label, such as the object shape and shape feature |
score |
Float |
Confidence. The value ranges from 0 to 1. |
type |
Integer |
Label type. Options: |
Request Example
Run the following command to obtain details about a team labeling sample:
GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples/{sample_id}
Response Example
Status code: 200
OK
{ "sample_id" : "26c6dd793d80d3274eb89349ec76d678", "sample_type" : 0, "labels" : [ ], "source" : "https://test-obs.obs.xxx.com:443/detect/data/dataset-car-and-person/IMG_kitti_0000_000016.png?AccessKeyId=4D34AYDTK93HUY79NSD7&Expires=1606300437&x-obs-security-token=gQpjbi1ub3J0aC03jELficNKUP87aSTIhvsHQAvImcyVbXlYTrU2XJIc28F7kiXanJ3TyJV39iXl0yi5mzQ...", "metadata" : { "@modelarts:import_origin" : 0, "@modelarts:size" : [ 1242, 375, 3 ] }, "sample_time" : 1598263639997, "sample_status" : "UN_ANNOTATION", "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f", "labelers" : [ { "email" : "xxx@xxx.com", "worker_id" : "afdda13895bc66322ffbf36ae833bcf0", "role" : 0 } ] }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot