视觉检测
vision_detectDetect specified objects, text, or UI elements in images, returning labeled normalized bounding boxes with confidence scores.
Instructions
在图片中检测指定目标,返回结构化的位置信息(0-1归一化包围盒)。
传入图片和要检测的目标描述,返回所有检测到的目标的位置信息。
参数:
images: 图片路径或URL列表
target: 要检测的目标描述(如"按钮"、"标题"、"红色文字"等)
max_dimension: 发送给VLM前自动缩放的最大边长(默认2048,设为0禁用)
返回:JSON格式的检测结果,包含每个目标的标签、归一化包围盒和置信度。 { "detections": [ { "label": "对象描述", "bbox": { "x_min": 0.1, "y_min": 0.2, "x_max": 0.3, "y_max": 0.4 }, "confidence": 0.95 } ] } 包围盒坐标为0-1归一化值,x_min/y_min为左上角,x_max/y_max为右下角。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | Yes | 图片路径或URL列表(http/https开头为URL,否则为本地路径)。至少1张,最多8张。 | |
| target | Yes | 要检测的目标描述 | |
| max_dimension | No | 发送给VLM前自动缩放的最大边长(像素)。设为0禁用自动缩放。默认2048。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detections | Yes |