From 723ba6b855cf9d03176e4ff6feb20045f4efc2ba Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 21 Apr 2026 20:16:59 +0200 Subject: [PATCH] Document Platform segment label payloads (#24296) Signed-off-by: Glenn Jocher --- docs/en/platform/api/index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/en/platform/api/index.md b/docs/en/platform/api/index.md index cf2ff330..394a0b97 100644 --- a/docs/en/platform/api/index.md +++ b/docs/en/platform/api/index.md @@ -579,13 +579,17 @@ PUT /api/datasets/{datasetId}/images/{hash}/labels ```json { - "labels": [{ "classId": 0, "bbox": [0.5, 0.5, 0.2, 0.3] }] + "labels": [ + { "classId": 0, "bbox": [0.5, 0.5, 0.2, 0.3] }, + { "classId": 1, "segments": [0.1, 0.2, 0.3, 0.2, 0.2, 0.4] } + ] } ``` !!! info "Coordinate Format" - Bounding boxes use YOLO normalized format: `[x_center, y_center, width, height]` where all values are between 0 and 1. + Label coordinates use YOLO normalized values between 0 and 1. Bounding boxes use `[x_center, y_center, width, height]`. + Segmentation labels use `segments`, a flattened list of polygon vertices `[x1, y1, x2, y2, ...]`. #### Bulk Image Operations