Import 2D labels for a dataset
URL
Request
Path parameters
Parameter Name | Parameter Type | Description |
---|---|---|
datasetId | string | Dataset Id of the dataset for which the labels need to be imported |
labelSetId (Optional) | string | Label Set Id of the label set for which the labels need to be imported |
Request body
Property Name | Property type | Description |
---|---|---|
type | string | Type of the file uploaded for labels import. Supported values : “json” |
labels | array | Array of objects of type LabelResource |
Example body
1
{
2
"type": "json",
3
"labels": [
4
{
5
"file_id": "300.jpg",
6
"label_category_id": "Person",
7
"label_id": "Person:1",
8
"label_type": "box",
9
"stage_id": "Labelling",
10
"box": [
11
514.4814565070802,
12
220.88739042481458,
13
285.47538772757923,
14
152.2535401213756
15
],
16
"create_time_millis": 1612161758109,
17
"label_set_id": "default",
18
"sensor_id": "sensor1",
19
"dataset_name": "2D_Single Frame"
20
},
21
{
22
"file_id": "300.jpg",
23
"label_category_id": "Person",
24
"label_id": "Person:2",
25
"label_type": "box",
26
"stage_id": "Labelling",
27
"box": [
28
634.1092380310182,
29
110.32231962238708,
30
274.6001348617666,
31
112.37761294672958
32
],
33
"create_time_millis": 1612161759029,
34
"label_set_id": "default",
35
"sensor_id": "sensor1",
36
"dataset_name": "2D_Single Frame"
37
},
38
]
39
}
Response
Returns empty response on successful completion