dsh-ocr
DSH plugin: local OCR and image understanding for dsh — inlined image previews in Web tool cards
AI 分析
核心用途是提供本地 OCR 和 VLM 图像理解。适合需要离线识别图片文字或分析架构图的用户,依赖 macOS、Ollama 及 qwen2.5vl 模型。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haifeiWu/dsh-ocrドキュメント
README 全文を読む ↗配置(均可省略,用默认值)
| 键 | 默认值 | 含义 |
|---|---|---|
ollamaBaseUrl | http://127.0.0.1:11434 | Ollama 服务地址 |
model | qwen2.5vl:3b | view_image 使用的本地 VLM |
keepAlive | 30m | 模型常驻时长(免冷启动) |
requestTimeoutMs | 120000 | view_image 请求超时 |
maxImageBytes | 20971520 | 读图字节上限(20MB) |
ocrMaxLines | 100 | ocr_image 默认最大行数 |
使用示例(agent 提示词里)
ocr_image file_path="/Users/me/screenshot.png"→ 图片里的所有文字 + 坐标view_image file_path="docs/diagram.png" prompt="这张架构图有哪些组件?"→ 本地 VLM 回答