视觉OCR
vision_ocrExtract all visible text from images (titles, body, labels, buttons) and return structured OCR results with text blocks and bounding boxes. Accepts local paths or URLs, with optional auto-scaling for large images.
Instructions
提取图片中的所有文字信息。
返回图片中所有可见的文字内容,包括标题、正文、标签、按钮文字等。
参数:
images: 图片路径或URL列表
max_dimension: 发送给VLM前自动缩放的最大边长(默认2048,设为0禁用)
返回:JSON格式的OCR结果,包含文字块列表和完整文字。 { "text_blocks": [ { "text": "文字内容", "bbox": { "x_min": 0.1, "y_min": 0.2, "x_max": 0.3, "y_max": 0.4 } } ], "full_text": "所有文字的完整拼接" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | Yes | 图片路径或URL列表(http/https开头为URL,否则为本地路径)。至少1张,最多8张。 | |
| max_dimension | No | 发送给VLM前自动缩放的最大边长(像素)。设为0禁用自动缩放。默认2048。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full_text | No | ||
| text_blocks | Yes |