maxwell-feng/dsh-tesseract-ocr2

@maxwell-feng/dsh-tesseract-ocr

DSH 本地 OCR 插件:利用 Tesseract 在本地识别上传的图片,仅将识别出的文本发送给模型,避免文本模型接收图片字节。

AI 分析

核心用途是让不支持多模态的纯文本模型也能“看懂”图片中的文字。适合希望节省 Vision 模型 Token 消耗,或在本地离线处理图片文字识别任务的用户。

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

安裝

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

Configuration

All settings live in the patch row tesseract-ocr:

KeyDefaultMeaning
languageengTesseract language(s), +-joined, e.g. eng, chi_sim, eng+chi_sim
passthroughfalsefalse (default): OCR every image. true: genuine vision models receive images untouched
tesseractBintesseractCLI path; quote paths with spaces, e.g. "C:\Program Files\Tesseract-OCR\tesseract.exe"
psm3Page segmentation mode (tesseract --psm)
timeoutMs60000Per-image OCR timeout
maxCacheEntries200Bound on the per-run OCR cache (keyed by attachment id)