DDDFXYqiming/dsh-pseudo-vision1

dsh-pseudo-vision

Adds opt-in image-capable sibling routes for text-only providers and converts image blocks into budgeted, locally enhanced OCR, color-statistics, pixel-scan, and metadata evidence before delegation.

包名
dsh-pseudo-vision
版本
0.5.1
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DDDFXYqiming/dsh-pseudo-vision

使用

装上即生效,无需额外配置。deepseek-official 路由继续自动支持图片。

其他 provider 默认不生成兄弟路由(避免模型选择器出现大量重复条目)。只有当你确实需要在某个 text-only provider 上收图时,才在 profile patch 中显式开启白名单:

- id: dsh-pseudo-vision
  config:
    bridgeProviders: ["kimi-for-coding"]   # 只给这个 provider 生成兄弟路由
    ocrBudget: auto                        # 也可 small/normal/large/mega
    ocrNoResize: false                     # true:跳过预算缩放/放大

或一次性桥接除 excludeProviders 外的所有 provider(谨慎:每个模型都会在模型选择器里多出一份 · Pseudo Vision 条目):

    bridgeOtherProviders: true

开启后,模型选择器会出现 dsh-pseudo-vision/ (显示为 · Pseudo Vision)兄弟路由;选择它,text-only 模型会自动走本地伪视觉转换,原生视觉模型保持原生透传。

效果示例(deepseek-v4-flash 实测收到的伪视觉证据,PowerShell 终端截图节选):

[dsh-pseudo-vision] sha256=b290f3d7e212 budget=normal 原图:image/png 187415B 预处理:灰度+反色 1196×636 238744B
[OCR chi_sim+eng] 12 行
  · "PS C:\Users\39795> dsh web"  x=0.113 y=0.199
  · "dsh web: http://127.0.0.1:3080"  x=0.128 y=0.230
  · …
[OCR 低置信度重试 1 区域]
  · 区域 1 x=0.008-0.992 y=0.958-0.984:CR
[数字复核 2 处]
  · y=0.230 "http://127.6.6.1:3080" → "http://127.0.0.1:3080"(置信度 34→66)
  · y=0.413 "http://127.9.6.1:3689" → "http://127.0.0.1:3080"(置信度 38→85)
[颜色统计] 总像素 760896
  · 平均亮度 57.5/255
  · grey 94.3%
  · white 4.9%
[像素扫描] 476×512 背景豁免:grey 27 条命中(行 14 / 列 13)
  · 行 y=0.0%  white  99.8%
  · 列 x=0.2%  white  71.4%
  · …
[元信息] 尺寸 1184×608  png  sRGB
  · [TL] #282c34 (深灰)
  · [C] #282c34 (深灰)
  · …

模型基于以上结构化证据"脑补"出整张图内容——注意 [数字复核] 块:整图 OCR 把回环地址误读成 127.6.6.1,复核通道已就地纠正并留痕。