som_locate
Locate objects in images using recursive numbered-grid cropping. Overlays numeric markers, zooms into chosen region, and returns precise coordinates for text-only LLMs.
Instructions
Set-of-Mark 编号网格递归定位:叠加编号标记,模型回答目标所在编号,逐轮裁切放大收敛;final=box(默认)时末轮在局部图上直接输出坐标框,精度远高于整图直接定位。对无 grounding 训练的通用 VLM(MiMo 等)比直接输出坐标更准。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | 网格划分 [列数, 行数],默认 [3,3],范围 1-12 | |
| color | No | final=cv 时的颜色提示(颜色名或 [r,g,b]),如 red/green | |
| final | No | 末轮模式:box=局部图直接输出坐标框(默认);number=全部选编号;cv=颜色分割精定位(备选,需 color,像素级) | |
| image | Yes | ||
| coords | No | 返回坐标单位:pixel(默认)或 norm(0-1000 归一化) | |
| expand | No | 每轮裁切边缘外扩比例,默认 0.15,范围 0-0.5 | |
| rounds | No | 递归轮数(每轮一次视觉调用),默认 2,范围 1-5 | |
| target | Yes | 要定位的目标,如:蓝色提交按钮 / 红色圆形 / 报错文字 | |
| out_path | No | 保存带编号标记的图(必须位于输出目录内) |