maxwell-feng/dsh-windows-ocr6

@maxwell-feng/dsh-windows-ocr

DSH 本地 OCR 插件:利用 Windows 系统内置的 OCR 引擎识别图片文字,仅将文本发送给模型,支持纯文本模型处理图片。

AI 分析

核心用途是免安装第三方 OCR 库,直接利用 Windows 本地能力进行图片文字识别。适合 Windows 平台用户,能有效保护隐私并让纯文本模型具备图片文字处理能力。

套件
@maxwell-feng/dsh-windows-ocr
版本
0.2.1
授權
MIT
最近更新
2026年8月16日

安裝

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

Configuration

All settings live in the patch row windows-ocr (cordis.patch.yml here) and can be overridden from your profile's cordis.patch.yml:

KeyDefaultMeaning
language""BCP-47 tag for Windows OCR, e.g. zh-Hans, en-US. Empty = user profile languages.
passthroughfalsefalse (default): OCR every image. true: genuine vision models receive images untouched.
ocrScriptbundled lib/ocr.ps1Absolute path override for the PowerShell OCR script.
timeoutMs60000Per-image OCR timeout.
maxCacheEntries200Bound on the per-run OCR cache (keyed by attachment id).

Example override in ~/.dsh/profiles/web/cordis.patch.yml:

- update:
    - id: windows-ocr
      config:
        language: zh-Hans