gmleong/dsh-img1

dsh-img

Give text-only models eyes: an analyze_image tool for DeepSeek Harness, backed by free Chinese vision APIs (GLM-4V-Flash / Qwen-VL) or any OpenAI-compatible vision endpoint. 给纯文本模型装上眼睛。

AI 분석

核心用途是为纯文本模型提供图像分析、OCR、前背景提取等视觉能力。适合需要多后端容灾、本地 OCR、截图分析及对话框直发图片的用户。

패키지
dsh-img
버전
0.4.0
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:gmleong/dsh-img

配置项(Config)

字段默认说明
presetzhipu旧式单后端快捷方式(zhipu/qwen/custom
backends新式:有序后端数组,从左到右 failover(优先于 preset
timeoutMs60000单次请求超时
maxImageMB10图片大小上限
detailautoauto / low / high
chatBridgetrue对话框直发图:声明图片输入 + 请求前把附件转译成文字
bridgePrompt内置附件转译时发给视觉模型的问题
cachetrue识别结果持久化缓存(~/.dsh/dsh-img-cache/
ocrLangchi_sim+eng本地 OCR 的 tesseract 语言包
pixelDiffSampleMax1024pixel-diff 降采样最长边(控制 CPU)
traceSteps4vision_trace 的 posterize 颜色层数
foregroundTolerance40vision_extract_foreground 的背景色容差(越大抠得越狠)