annotate_infer
Annotate images with boxes, lines, arrows, and circles to inject spatial annotations into visual models, guiding reasoning on relationship questions without modifying the original image.
Instructions
虚拟标注 + 增强图形推理:把框/点/连线/箭头/圆等标注(不修改原图)注入视觉模型,引导空间关系推理。mode=virtual 用坐标文本注入;mode=overlay 生成半透明叠加图。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | virtual=坐标文本注入(默认,原图零修改);overlay=半透明叠加图 | |
| alpha | No | overlay 模式叠加透明度 (0,1],默认 0.35 | |
| image | Yes | ||
| items | Yes | 标注数组或单个对象:[{id?, type: box|point|line|arrow|circle|polygon|bubble, label, color, coords, box/point/from/to/center/radius/points/text/direction}] | |
| detail | No | 细节程度 | |
| question | Yes | 推理问题,如:框A中的元件是什么?A到B的连线代表什么连接关系? | |
| auto_boxes | No | 自动框选:字符串或目标数组(如 '所有按钮'),内部 locate 后生成紫色框参与推理 | |
| corrections | No | 多轮修正操作数组:[{op: add|remove|move|resize|set, id, delta/to/box/point/...}],基于 items 修正后推理 |