haifeiWu/dsh-ocr0

dsh-ocr

DSH plugin: local OCR and image understanding for dsh — inlined image previews in Web tool cards

AI Analysis

核心用途是提供本地 OCR 和 VLM 图像理解。适合需要离线识别图片文字或分析架构图的用户,依赖 macOS、Ollama 及 qwen2.5vl 模型。

Package
dsh-ocr
Version
0.1.0
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haifeiWu/dsh-ocr

配置(均可省略,用默认值)

默认值含义
ollamaBaseUrlhttp://127.0.0.1:11434Ollama 服务地址
modelqwen2.5vl:3bview_image 使用的本地 VLM
keepAlive30m模型常驻时长(免冷启动)
requestTimeoutMs120000view_image 请求超时
maxImageBytes20971520读图字节上限(20MB)
ocrMaxLines100ocr_image 默认最大行数

使用示例(agent 提示词里)

  • ocr_image file_path="/Users/me/screenshot.png" → 图片里的所有文字 + 坐标
  • view_image file_path="docs/diagram.png" prompt="这张架构图有哪些组件?" → 本地 VLM 回答