BasicAI CE Open & Plugin API
  1. Model
BasicAI CE Open & Plugin API
  • Open API
    • Dataset
      • Create Dataset
      • Edit Dataset
      • Delete Dataset
      • Query a single dataset
      • Query the list of datasets
      • Upload the dataset compressed package
      • Query the processing progress of the compressed dataset
      • Query the data under the dataset
      • Delete multiple data
      • Query a single data
      • Query multiple data
      • Generate presigned file upload url
      • Upload file through presigned url
    • Annotation
      • Get data and result information
      • Download dataset annotation results
    • Model
      • Image object detection
      • Point cloud object detection
  • Plugin API
    • Model
      • Point cloud object detection
        POST
      • Image object detection
        POST
  1. Model

Point cloud object detection

Developing
Docker Compose
http://localhost:8293
Docker Compose
http://localhost:8293
POST
http://localhost:8293
/pointCloud/objectDetection
Identify objects in point cloud data.
In the response result, the top-level error code indicates whether the request was successful, such as invalid parameters. Regardless of whether each data is successfully processed, the error code on each data in the lower layer indicates whether the data is successfully processed.
The host and path are for reference only. When adding your own model service, you need to specify the interface address.

Request

Body Params application/json
datas
array [object {4}] 
required
List of point cloud data to recognize
id
integer 
required
ID
pointCloudUrl
string 
required
Point cloud file download address
imageUrls
array[string]
required
Camera picture download address list. In order of camera number
cameraConfigUrl
string 
required
Camera parameter file download address
Example
{
  "datas": [
    {
      "id": 1,
      "pointCloudUrl": "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/point_cloud/000001.pcd",
      "imageUrls": [
        "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/image0/000001.jpg",
        "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/image1/000001.jpg",
        "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/image2/000001.jpg"
      ],
      "cameraConfigUrl": "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/camera_config/000001.json"
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8293/pointCloud/objectDetection' \
--header 'Content-Type: application/json' \
--data-raw '{
    "datas": [
        {
            "id": 1,
            "pointCloudUrl": "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/point_cloud/000001.pcd",
            "imageUrls": [
                "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/image0/000001.jpg",
                "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/image1/000001.jpg",
                "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/image2/000001.jpg"
            ],
            "cameraConfigUrl": "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/camera_config/000001.json"
        }
    ]
}'

Responses

🟢200Successful
application/json
Body
code
string 
Error code
required
Error code. OK means success, the rest are failures
message
string 
Error description
required
Error description. It can be empty
data
array [object {5}] 
Data
required
Data
id
integer 
required
Data ID
code
string 
required
Error code (single data). OK means success, the rest means failure
message
string 
required
Error description. It can be empty.
objects
array [object {11}] 
required
A list of objects identified in the current data.
confidence
number 
optional
Overall Data Confidence
Example
{
  "code": "OK",
  "message": "",
  "data": [
    {
      "id": 1,
      "code": "OK",
      "message": "",
      "objects": [
        {
          "label": "CAR",
          "confidence": 0.883,
          "x": -5.662,
          "y": -0.147,
          "z": 0.854,
          "dx": 4.354,
          "dy": 1.839,
          "dz": 1.605,
          "rotX": 0,
          "rotY": 0,
          "rotZ": 0.845
        }
      ],
      "confidence": 0.8
    }
  ]
}
Previous
Point cloud object detection
Next
Image object detection
Built with