roboflow_upload_annotation
Upload annotations to your Roboflow project images. Supports COCO, YOLO, Pascal VOC, CreateML, and Roboflow JSON formats.
Instructions
Attach an annotation to an image.
Supported formats (annotation_format literal):
"coco""yolo"(YOLOv5/v8/v11-compatible .txt)"pascal_voc"(XML)"createml"(Apple CreateML JSON)"roboflow_json"
Pass annotation as a string (raw file contents) or a dict
(Python object; we serialize to JSON). Optional labelmap
is a class-id to name map Roboflow uses for YOLO formats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| image_id | Yes | ||
| annotation | Yes | ||
| annotation_format | Yes | ||
| workspace | No | ||
| labelmap | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |