dsh-tool-ocr
DSH 独立 OCR 工具插件,通过本地 newbee-ocr (nbocr) 引擎进行图像文字识别,专为无视觉输入能力的文本模型设计。
AI 分析
核心用途是为纯文本模型提供本地离线图片文字识别能力。适合无法使用多模态模型但又需要处理图片中文字提取任务的用户。必要条件是需编译并配置本地 nbocr 二进制文件。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗Configuration
| Field | Default | Meaning |
|---|---|---|
command | — (required) | The nbocr executable: absolute path or PATH-resolved name. |
args | [] | Extra arguments before the nbocr subcommand (no shell). |
env | {} | Extra environment entries. |
language | chinese | Recognition model/language alias. |
detModel | v6-tiny | Detection model tier. |
modelsDir | '' | Model directory for non-embedded models; empty uses embedded models. |
maxImageBytes | 26214400 | Largest accepted image in bytes. |
maxOutputBytes | 2000000 | Largest collected engine stdout in bytes. |
maxTextChars | 12000 | Largest recognized text returned in text. |
timeoutMs | 600000 | Tool-call timeout budget in ms. |
Tool usage
ocr { path | attachment_id, action?, include_boxes?, table?, max_text_chars? }
The model should call ocr with path for image files, or with attachment_id when the conversation already contains an image (shown as [image attachment ]). status probes readiness without engine work; check runs a real 1x1 probe recognition end to end.