Compare commits

...

3 commits

Author SHA1 Message Date
Lakshantha Dissanayake fe54d1e55e
Merge a6044e3037 into 723ba6b855 2026-04-21 16:38:44 -07:00
Lakshantha Dissanayake a6044e3037
Merge branch 'main' into openvino-benchmarks 2026-04-21 16:38:42 -07:00
Glenn Jocher 723ba6b855
Document Platform segment label payloads (#24296)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2026-04-21 20:16:59 +02:00

View file

@ -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