Import 3D labels for a dataset

URL

POST https://tools.deepen.ai/api/v2/datasets/{datasetId}/labels?labelSetId={labelSetId}

Request

Path parameters

Parameter NameParameter TypeDescription

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 NameProperty TypeDescription

type

string

Type of the file uploaded for labels import. Supported values : “json”

labels

array

Array of objects of type LabelResource

Example body

{
    "type": "json",
    "labels": [
        {
            "file_id": "10.pcd",
            "sensor_id": "lidar",
            "label_type": "3d_bbox",
            "label_cateogry_id": "car",
            "label_id": "car:5",
            "three_d_bbox": {
                "cx": 6.417910191363102,
                "cy": 37.40165669339892,
                "cz": -2.026788515715022,
                "rot_z": -1.4502365175856688,
                "h": 1.6082608226905268,
                "l": 4.062483053079639,
                "w": 1.8871934665515997
            }
        },
        {
            "file_id": "11.pcd",
            "sensor_id": "lidar",
            "label_type": "3d_bbox",
            "label_cateogry_id": "bus",
            "label_id": "bus:5",
            "three_d_bbox": {
                "cx": 6.417910191363102,
                "cy": 37.40165669339892,
                "cz": -2.026788515715022,
                "rot_z": -1.4502365175856688,
                "h": 1.6082608226905268,
                "l": 4.062483053079639,
                "w": 1.8871934665515997
            }
        }
    ]
}

Response

Returns empty response on successful completion

Last updated