Annotate detections
Try it interactively →POST /api/image-annotate-detectionsRender bounding boxes and labels onto an image. Accepts the JSON output of any of the detection tools (faces / barcodes / QR / contours / etc.) and produces a visual overlay.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Input image bytes. |
| detections* | string | — | JSON-encoded array of `{x, y, width, height, label?, score?, color?}` (or any object with `box: [x,y,w,h]`). |
| lineWidth | number (1…32) | 3 | Rectangle stroke width. |
| defaultColor | string | "#ff3366" | Stroke colour fallback (CSS hex). |
| fontScale | number (0…4) | 0.6 | Label font scale (0 = no labels). |
| format | enum (jpeg | png) | "jpeg" | Output encoding. |
| quality | number (1…100) | 90 | JPEG quality. |
Response
Modes: binary, json. Cache: yes (24h TTL).