annotate_image
Annotate images with rectangles, circles, and labels, then save the marked image and return the output path for further use.
Instructions
在图片上画矩形框/圆点/标签(圈画标记),保存标注图并返回路径。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| items | Yes | 标注项数组或单个对象:[{label, box 或 point, color}],box=[x1,y1,x2,y2],point=[x,y] | |
| style | No | {line_width, font_size, color} | |
| coords | No | 坐标单位,默认 pixel | |
| out_path | No | 输出路径(必须位于输出目录内),默认自动命名 |