Import 2D labels for a dataset
URL
POST https://tools.deepen.ai/api/v2/datasets/{datasetId}/labels?labelSetId={labelSetId}
Request
Path parameters
Parameter Name
Parameter Type
Description
Dataset Id of the dataset for which the labels need to be imported
Label Set Id of the label set for which the labels need to be imported
Request body
Property Name
Property type
Description
Type of the file uploaded for labels import. Supported values : “json”
Array of objects of type LabelResource
Example body
{
"type": "json",
"labels": [
{
"file_id": "300.jpg",
"label_category_id": "Person",
"label_id": "Person:1",
"label_type": "box",
"stage_id": "Labelling",
"box": [
514.4814565070802,
220.88739042481458,
285.47538772757923,
152.2535401213756
],
"create_time_millis": 1612161758109,
"label_set_id": "default",
"sensor_id": "sensor1",
"dataset_name": "2D_Single Frame"
},
{
"file_id": "300.jpg",
"label_category_id": "Person",
"label_id": "Person:2",
"label_type": "box",
"stage_id": "Labelling",
"box": [
634.1092380310182,
110.32231962238708,
274.6001348617666,
112.37761294672958
],
"create_time_millis": 1612161759029,
"label_set_id": "default",
"sensor_id": "sensor1",
"dataset_name": "2D_Single Frame"
},
]
}
Response
Returns empty response on successful completion