ocr_by_path
Extract text from local image files with configurable OCR options. Choose output formats like plain, JSON, or Markdown, and apply enhancements like auto-rotate or binarization.
Instructions
对本地图像文件执行 OCR 识别。
Args:
image_path: 图像文件的绝对路径或相对路径
output_format: 输出格式 (plain/json/markdown/structured)
auto_enhance: 自动增强图像对比度和锐度
rotate: 自动旋转图像(基于 EXIF)
binarize: 二值化图像
Returns:
OCR 识别结果
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate | No | ||
| binarize | No | ||
| image_path | Yes | ||
| auto_enhance | No | ||
| output_format | No | json |