
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
picturereader-zcode
Advanced tools
ZCode plugin: unified image understanding for text-only models. Fuses frame-free pseudo-multimodal reading (pixel scan + OCR + sample) with an optional external vision API bridge (LM Studio / llama-server / any OpenAI-compatible endpoint) for full semanti
v2.0.0 —— 给纯文本模型(如 deepseek-v4-flash)的全能"读图"能力。 融合 独立伪多模态识图 与 外部视觉 API 接口,一个插件搞定全部,无需另装任何插件。 本分支为 ZCode 桌面端插件(经 MCP 暴露工具);DSH 版见 main 分支。
- DSH 版:DeepSeek Harness 插件(
dsh-plugin,含 DSH EAC 桌面端)—— main 分支- ZCode 版:ZCode 桌面端插件(
zcode-plugin,经 MCP 暴露工具)—— 本分支
在原有的本地伪多模态识图(像素扫描 + OCR + 取样,零外部依赖)之上,融合了社区 dsh-universal-vision 的优势,形成一套统一、可交叉验证的完整识图栈:
src/vlm.js):桥接任意 OpenAI 兼容的视觉端点(本地 llama-server / LM Studio / vLLM / 云端网关),让模型获得真正的语义理解能力(场景、角色、界面、风格)。vision_analyze:一次调用即可取回「低信息拦截 + 像素扫描 + OCR + VLM」多路证据。src/guard.js):自动识别空白/未渲染/简单图片,避免小 VLM 在空图上幻觉,也节省调用成本。vision_analyze 以不同 prompt 反复提问,从多角度复核同一内容。核心优势一句话:独立伪多模态识图(零依赖、可离线) + 外部 API 语义接口(可选、即插即用) —— 简单图用像素就够,复杂图一键接 VLM,一个插件全包含,不需要再装
dsh-universal-vision或任何其他读图插件。
| 版本 | 平台 | 形态 | 源码 | 安装 |
|---|---|---|---|---|
| DSH 版 | DeepSeek Harness(含 EAC 桌面端) | npm 插件(dsh.bundle) | main 分支 | dsh plugin --profile web add picturereader |
| ZCode 版 | ZCode 桌面端 | 本地 marketplace 插件(MCP server + skill) | 本分支 | npm install picturereader-zcode |
两个版本共用同一套业务核心(src/core.js)与读图方法论 skill(image-reading),
四个工具行为完全一致:image_scan / image_ocr / image_sample / vision_analyze。
ZCode 版性能说明:ZCode 版通过 MCP(stdio 子进程)暴露工具,每次调用都要 经历进程通信与序列化开销,速度明显慢于 DSH 版(DSH 版为插件内直接调用)。 高频看图、批量看图任务请优先使用 DSH 版;ZCode 版适合轻量、偶发看图。
纯文本模型没有视觉编码器,无法直接看图。picturereader 把"看图"翻译成模型能理解的结构化文本证据,并提供一套经过大量真实图片迭代验证的读图方法论 skill(image-reading),让模型像人一样分步看图:
| 工具 | 作用 |
|---|---|
image_scan | 全局/区域扫描:亮度/颜色网格 + regions 色块 + shade diversity + texture mix + structure(条纹/对称) + 像素级 colors + hue families 纯色指纹;支持 focus/region 局部放大、px_per_cell 像素密度定向放大 |
image_ocr | 文字识别双引擎:windows(内置,默认)/ paddle(选装,发光/弯曲/游戏字更强),失败自动降级不崩溃 |
image_sample | 8×8 精确像素取样,判断材质/纹理(金属/木纹/织物/皮肤/噪点) |
vision_analyze | 统一入口(v2.0.0 新增):低信息拦截 + 可选像素扫描/OCR/VLM,组合证据返回;VLM 可选配置 |
skills/image-reading/SKILL.md(ZCode 版)是一套经大量真实图片场景迭代验证的读图方法论
(按 experience / skill / principle / insight 分层,教训有据可依、找得到主模型模式),
安装后模型自动掌握:
ZCode 版通过 MCP server(mcp/server.js,stdio)把四个工具暴露给 ZCode,
读图方法论作为 skill 随插件分发,业务逻辑 src/core.js 与 DSH 版完全一致。
npm install picturereader-zcode
node scripts/setup-ocr.mjs
PaddleOCR 缺失时 image_ocr 自动降级为 Windows OCR。
对 ZCode 模型说:
用 image_scan 看一下 <路径> 这张图,细看感兴趣的部分 (复杂场景可接着用 vision_analyze 获取语义描述并交叉验证)
vision_analyze(
file_path="C:/shot.png",
prompt="描述这个界面,有哪些元素?布局是否正常?",
include_scan=true, # 像素扫描证据(默认 true)
include_ocr=true, # OCR 文字证据(默认 false)
include_vlm=true, # 外部 VLM 语义描述(默认 true,但未配置 SEE_BASE 时自动跳过)
allow_low_info=false, # 空白/简单图是否强制调 VLM(默认 false)
stop_after=false # 调用后是否关闭本插件启动的本地服务器
)
image_scan 了解图片,简单图用像素就够;复杂/精密场景再开 VLM。prompt 反复调用,从多角度复核。image: chart.png (600x400 -> 32x21 cells, ~18.8x19px per cell, region=full, palette=full, mode=color)
shade diversity: 10 distinct shades | texture: smooth 24.2%, medium 19.3%, rough 56.5%
structure: 6 vertical stripes (4 alternating colors) at cols 4..7; left-right symmetry 45%
hue families: cyan 88.2%, green 4.5%, yellow 1% ← 真实主调(colors 灰白占比是假象)
regions: ...(色块结构)
colors by area: ...(像素级真实占比)
luminance grid / color grid
| 变量 | 默认值 | 作用 |
|---|---|---|
DSH_PADDLE_PYTHON | C:\Users\Administrator\paddle_venv\Scripts\python.exe | PaddleOCR 解释器路径(与原插件同名,便于直接迁移) |
DSH_PADDLE_CACHE | <插件目录>\.paddlex-cache | PaddleX 模型缓存目录 |
| 变量 | 默认值 | 作用 |
|---|---|---|
SEE_BASE | (空) | OpenAI 兼容视觉端点(留空 = VLM 禁用;本地 llama-server / LM Studio / vLLM / 云端网关) |
SEE_MODEL | (空) | 视觉模型名(如 google/gemma-4-12b-qat) |
SEE_API_KEY | (空) | API key(本地端点可随便填,云端需要真实 key) |
SEE_SERVER_EXE / SEE_SERVER_MODEL / SEE_SERVER_MMPROJ | (空) | 本地 llama-server 自启路径(可选,配置后插件可自动拉起本地视觉服务器) |
SEE_SERVER_PORT / SEE_SERVER_NGL / SEE_SERVER_CTX | 8080 / 20 / 16384 | 本地服务器参数 |
VLM 配置说明:默认不配置 VLM,
vision_analyze会跳过 VLM 调用,只返回像素扫描和 OCR 证据(保持零外部依赖)。需要语义理解时,设置SEE_BASE+SEE_MODEL即可,例如指向本地 LM Studio(http://127.0.0.1:1234/v1)。
npm install
npm test # node:test(DSH 版 76 个测试全绿)
node scripts/setup-ocr.mjs # 可选
热插拔(ZCode 版):MCP server 从所选目录运行,改 src/core.js 下次调用即生效
(详见 zcode 分支 README)。
dsh-universal-vision 或其他读图插件SEE_BASE 即接入语义理解,本地/云端 OpenAI 兼容端点通吃SEE_BASE 时无语义描述;配置后依赖端点可用性与网络/本地资源MIT
FAQs
ZCode plugin: unified image understanding for text-only models. Fuses frame-free pseudo-multimodal reading (pixel scan + OCR×3 engines + sample + crop/palette/compare + batch + document-to-image) with an optional external vision API bridge (LM Studio / ll
The npm package picturereader-zcode receives a total of 0 weekly downloads. As such, picturereader-zcode popularity was classified as not popular.
We found that picturereader-zcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.