Skip to content

Upload Dataset

POSThttps://portal-prod.rosettalab.top/rosetta-open/dataset/upload/sync

This page will help you get started with uploading a local dataset zip file to Rosetta synchronously, the file size should be less than 100MB, and you need to put the files according to File tree.

headers

*Content-Typestring Defaults to multipart/form-data

body params [form]

*uploadFilefile Defaults to dataset.zip
Local zip file path
*fileTreeTypeinteger
File tree in zip file: 0 represents sensor oriented.
*dataTypeinteger
Data type: 2 represents 2D, 3 represents 3D.
*namestring
Dataset name, the maximum length limit is 60 bytes.
Examples
shell
curl https://portal-prod.rosettalab.top/rosetta-open/dataset/upload/sync \
 -X POST \
 -H "Content-Type: multipart/form-data" \
 -H "X-STARDUST-KEY: <X-STARDUST-KEY>" \
 -H "X-TS: <X-TS>" \
 -H "X-SIGN: <X-SIGN>" \
 -F uploadFile=@dataset.zip

response data

statusinteger
1 represents BUILDING, 2 represents READY, -1 represents ERROR
datasetIdstring
Dataset id passed in
mappingListobject[]
Mapping list between data id and scene id
*dataIdstring
Data Entry Id in our platform
*sceneIdstring
Data Entry Id from your file

examples

200
{
"code": 200,
"message": "Success",
"data": {
"status": 2,
"datasetId": "1",
"mappingList": [...]
},
"date": "2024-05-17 16:04:53",
"requestId": "71c3ddd6171593314607810011afb4",
"success": true
}
400
{
"code": 400,
"data": null,
"message": "Illegal Parameter",
"date": "2024-05-17 16:04:53",
"requestId": "71c3ddd6171593314607810011afb4",
"success": false
}

File tree

top_folder                    // top folder name which is same as the zip file
├── lidar-name_l0             // "name_l0" refers to your lidar name, the prefix "lidar-" is necessary
│   ├── scene_id_1234         // "scene_id_1234" refers to unique identifier of your scene data
│   │   ├── timestamp0.pcd    // "timestamp0" refers to sampling time, typically an integer in milliseconds
│   │   └── timestamp1.pcd
│   └── scene_id_2345
│       ├── timestamp0.pcd
│       └── timestamp1.pcd
├── lidar-name_l1
│   ├── scene_id_1234
│   │   ├── timestamp0.pcd
│   │   └── timestamp1.pcd
│   └── scene_id_2345
│       ├── timestamp0.pcd
│       └── timestamp1.pcd
├── camera-name_c0            // "name_c0" refers to your camera name, the prefix "camera-" is necessary
│   ├── scene_id_1234
│   │   ├── timestamp0.jpg
│   │   └── timestamp1.jpg
│   └── scene_id_2345
│       ├── timestamp0.jpg
│       └── timestamp1.jpg
├── camera-name_c1
│   ├── scene_id_1234
│   │   ├── timestamp0.jpg
│   │   └── timestamp1.jpg
│   └── scene_id_2345
│       ├── timestamp0.jpg
│       └── timestamp1.jpg
└── metadata.json
json
{
  "version": "1.0",
  "fileTreeType": 0,
  "dataType": 3,
  "lidarSequence": ["name_l0", "name_l1"],
  "cameraSequence": ["name_c0", "name_c1"],
  "cameraCoefficients": [
    {
      "name": "name_c0",
      "width": 1920,
      "height": 1080,
      "camera": {
        "type": "PinHole",
        "heading": {
          "w": 0.9998965768815161,
          "x": -0.008695232232469284,
          "y": -0.006971205169862502,
          "z": 0.009090147167644433
        },
        "position": {
          "x": 0.09735360749789024,
          "y": -0.006173595037573754,
          "z": -0.474067813586117
        },
        "intrinsic": {
          "fx": 8333.333333,
          "fy": 8333.33333,
          "cx": 959.5,
          "cy": 539.5
        },
        "skew": 0,
        "radial": {
          "k1": 0,
          "k2": 0,
          "k3": 0,
          "k4": 0
        },
        "tangential": {
          "p1": 0,
          "p2": 0
        }
      }
    },
    {
      "name": "name_c1",
      "width": 1920,
      "height": 1080,
      "camera": {
        "type": "Fisheye",
        "heading": {
          "w": 0.9998965768815161,
          "x": -0.008695232232469284,
          "y": -0.006971205169862502,
          "z": 0.009090147167644433
        },
        "position": {
          "x": 0.09735360749789024,
          "y": -0.006173595037573754,
          "z": -0.474067813586117
        },
        "intrinsic": {
          "fx": 0,
          "fy": 0,
          "cx": 0,
          "cy": 0
        },
        "skew": 0,
        "radial": {
          "k1": 0,
          "k2": 0,
          "k3": 0,
          "k4": 0
        },
        "tangential": {
          "p1": 0,
          "p2": 0
        }
      }
    }
  ]
}