ferstar/dsh-tool-ocr0

dsh-tool-ocr

DSH 独立 OCR 工具插件,通过本地 newbee-ocr (nbocr) 引擎进行图像文字识别,专为无视觉输入能力的文本模型设计。

AI 分析

核心用途是为纯文本模型提供本地离线图片文字识别能力。适合无法使用多模态模型但又需要处理图片中文字提取任务的用户。必要条件是需编译并配置本地 nbocr 二进制文件。

套件
dsh-tool-ocr
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Configuration

FieldDefaultMeaning
command— (required)The nbocr executable: absolute path or PATH-resolved name.
args[]Extra arguments before the nbocr subcommand (no shell).
env{}Extra environment entries.
languagechineseRecognition model/language alias.
detModelv6-tinyDetection model tier.
modelsDir''Model directory for non-embedded models; empty uses embedded models.
maxImageBytes26214400Largest accepted image in bytes.
maxOutputBytes2000000Largest collected engine stdout in bytes.
maxTextChars12000Largest recognized text returned in text.
timeoutMs600000Tool-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.