---
title: "Point cloud segmentation"
method: POST
path: "/pointCloud/segmentation"
tags: ["Plugin API/Model/Point Cloud"]
---

# Point cloud segmentation

`POST /pointCloud/segmentation`

This API integrates your LiDAR segmentation model into BasicAI. This API only works with Point Cloud data in LiDAR Fusion

## Headers

- `Authorization` string

## Request body

- object
  - `data` PointCloudModelData, required
    - `id` integer, required — ID
    - `pointCloudUrl` string, required — The URL of PointCloud
    - `cameraImageUrls` string[] — the array of the URLs of camera images
    - `cameraConfigUrl` string — The URL of camera config

## Response `200`

Successful

- object
  - `code` string, required — Error code, OK indicates success, while others indicate failure
  - `message` string, required — Error message
  - `data` object, required — Null, there is none
    - `objects` PointCloudModelSegmentationObject[], required — The array of segmentation objects, will be null or an empty array if there is none
      - `label` object, required — Class or label
        - `id` integer, required — ID, start from 1
        - `name` string, required — Name, case sensitive
      - `minDistance` number — Takes the nearest point for the shortest distance from the origin on the XY plane. If empty, related QA will not be supported.
      - `maxDistance` number — Takes the furthest point for the furthest distance from the origin on the XY plane. If empty, related QA will not be supported.
      - `minHeight` number — Takes the lowest point on the Z-axis for the minimum height. If empty, related QA will not be supported.
      - `maxHeight` number — Takes the highest point on the Z-axis for the maximum height. If empty, related QA will not be supported.
      - `pointCount` integer — The points inside the object. If empty, related QA will not be supported.
    - `labelmap` string, required — Tag map, in PCD format, marking the label ID of each point, needs to be Base64 encoded.

---

[API](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api.md) · [All operations](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/basic/basicai-cloud-open-plugin-api/revisions/f6b5a226c6da/schema)
