kid-tea/dsh-rapid-ocr-ui0

dsh-rapid-ocr-ui

Dual-face (host + client) plugin: independent text-output ocr_image tool + tools/execute read_image capability dispatch + ctx.ocr seam, with a conversation.input.left OCR toggle button.

包名
dsh-rapid-ocr-ui
版本
0.1.0
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kid-tea/dsh-rapid-ocr-ui

使用

  1. 重启后,纯文本会话里贴一张图;
  2. Agent 的提示词已被告知:提取文字用 ocr_image(file_path)
  3. 也可以手动打开输入栏左侧的「OCR 模式」开关,按需对图做 OCR。

配置项

字段默认值含义
enabledtrue总开关;false 时插件什么都不注册
providernoneOCR 后端:none / tesseract / rapidocr / paddleocr-json / paddleocr-py
ocrPath引擎可执行文件/脚本路径(provider 相关)
modelPath模型/语言数据目录(provider 相关)
languagechOCR 语言,如 ch / en / ch,en
maxImageBytes20000000单图送入 OCR 的字节上限
timeoutMs60000OCR 调用超时
scopeagent工具注册平面:agent(推荐)或 global
fallbackOnlytrue图片能力路由始终优先原生 read_image
autoOcrImagesfalse打开 OCR 模式后是否自动 OCR 新附件
injectOcrTextfalse是否自动把 OCR 文本插入草稿
promptSectionOrder118「图片 → 用 ocr_image」提示词段顺序