leozou320-ai/dsh-macos-vision-ocr0

dsh-macos-vision-ocr

适用于 DeepSeek Harness 的本地离线 macOS Vision OCR 工具。

AI 分析

核心用途是利用 macOS 系统原生的 Vision 框架进行本地图片文字识别。适合 macOS 用户,可在无网络或注重隐私的情况下为 Agent 提供图片解析能力。

包名
dsh-macos-vision-ocr
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:leozou320-ai/dsh-macos-vision-ocr

Usage

Ask the agent to read an image, or call the tool explicitly:

{
  "file_path": "./scan.png",
  "languages": ["zh-Hans", "en-US"]
}

The result contains the canonical image path, recognized text, selected languages, and a truncated flag.

Configuration

Edit this package's row in a later Harness patch layer when you need different defaults:

- id: dsh-macos-vision-ocr
  config:
    cacheDir: /absolute/path/to/cache
    languages: [en-US]
    maxOutputBytes: 2000000
KeyDefaultDescription
cacheDir$DSH_HOME/cache/ocrSwift source and compiled helper cache.
languageszh-Hans, zh-Hant, en-USLanguages used when a tool call omits them.
maxOutputBytes1000000Maximum captured OCR stdout per call.