Obtain a sample list by page.
You can debug this API in which supports automatic authentication. API Explorer can automatically generate SDK code examples and provide the SDK code example debugging.
GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples
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. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
No |
String |
Email address of a labeling team member |
|
high_score |
No |
String |
Upper limit of the confidence score. The default value is 1. |
label_name |
No |
String |
Label name |
label_type |
No |
Integer |
Labeling Type: Options: |
limit |
No |
Integer |
Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10. |
locale |
No |
String |
Language |
low_score |
No |
String |
Lower limit of the confidence score. The default value is 0. |
offset |
No |
Integer |
Start page for pagination display. The default value is 0. |
order |
No |
String |
Sorting sequence of the query. Options: |
preview |
No |
Boolean |
Whether preview is supported. Options: |
process_parameter |
No |
String |
Image resize configuration, which is the same as OBS settings. For details, see "Feature Guide" in Object Storage Service User Guide. For example, image/resize,m_lfit,h_200 indicates that the target image is resized proportionally and the height is set to 200 pixels. |
sample_state |
No |
String |
Sample status. Options: |
sample_type |
No |
Integer |
Sample file type. Options: |
search_conditions |
No |
String |
Multi-dimensional search condition after URL encoding. The relationship between multiple search conditions is AND. |
version_id |
No |
String |
Dataset version ID |
None
Status code: 200
Parameter |
Type |
Description |
---|---|---|
sample_count |
Integer |
Number of samples |
samples |
Array of DescribeSampleResp objects |
List of samples |
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: |
Run the following command to obtain a sample list by page:
GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/samples
Status code: 200
OK
{ "sample_count" : 2, "samples" : [ { "sample_id" : "012f99f3cf405860130b6ed2350c2228", "sample_type" : 0, "labels" : [ { "name" : "car", "type" : 0, "property" : { } } ], "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36502.jpg?AccessKeyId=RciyO7RHmhNTfOZVryUH&Expires=1606296688&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=icyvHhFew9vnmy3zh1uZMP15Mbg%3D", "metadata" : { "@modelarts:import_origin" : 0 }, "sample_time" : 1589190552106, "sample_status" : "MANUAL_ANNOTATION", "labelers" : [ { "email" : "xxx@xxx.com", "worker_id" : "5d8d4033b428fed5ac158942c33940a2", "role" : 0 } ] }, { "sample_id" : "0192f3acfb000666033a0f85c21577c7", "sample_type" : 0, "labels" : [ { "name" : "car", "type" : 0, "property" : { } } ], "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36139.jpg?AccessKeyId=RciyO7RHmhNTfOZVryUH&Expires=1606296688&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=RRr9r2cghLCXk%2B0%2BfHtYJi8eZ4k%3D", "metadata" : { "@modelarts:import_origin" : 0 }, "sample_time" : 1589190543327, "sample_status" : "MANUAL_ANNOTATION", "labelers" : [ { "email" : "xxx@xxx.com", "worker_id" : "a2abd3f27b4e92c593c15282f8b6bd29", "role" : 0 } ] } ] }
Status Code |
Description |
---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
For details, see Error Codes.