doublehappy123/dsh-v4flash-tiler0

dsh-v4flash-tiler

DSH plugin: auto-tiles oversized chat images into labelled grid pieces (row/col metadata, overlap-aware, multi-image group isolation) so the DeepSeek vision model keeps fine detail instead of the ~800px downsample.

AI 分析

核心用途是提升大图和高分辨率图片的识别精度。适合需要使用 DeepSeek 视觉模型分析复杂图表、截图或进行高精度 OCR 的用户。单图最大支持切分 9 块。

パッケージ
dsh-v4flash-tiler
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/09/01

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:doublehappy123/dsh-v4flash-tiler

ドキュメント

README 全文を読む ↗

使用

  • 聊天自动分块:直接发送任意图片。任一边 > 1024px 自动切块并标注行列;小图原样直通;失败自动回退原图并在消息中说明原因。
  • 命令行engine/ 安装后):
    v4flash-tiler --image screenshot.png --mode auto --dry-run      # 只看分块计划
    v4flash-tiler --image screenshot.png --prompt "提取全部文字"    # 调 API 分析
    
  • Python API
    from v4flash_tiler import DeepSeekVisionClient
    result = DeepSeekVisionClient().analyze_image("large.png", prompt="分析这张图")
    

配置要点

  • 阈值:任一边 > 1024px 即分块;单图最多 9 块(1024px、15% 重叠、JPEG 质量 90)
  • 每条消息图块总数受 DSH 附件上限保护,超限图片保持原图直通
  • 每块输入 token 约 384,9 块 ≈ 3400 token/图