dsh-macos-vision-ocr
在终端中运行以下命令:
dsh plugin install leozou320-ai/dsh-macos-vision-ocr
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在终端中运行 dsh plugin install leozou320-ai/dsh-macos-vision-ocr 即可从 https://github.com/leozou320-ai/dsh-macos-vision-ocr 安装该离线 OCR 插件到当前 DeepSeek Harness 配置。
插件介绍
Working with screenshots, scanned pages, or document images on macOS usually means routing them through a cloud OCR API, which pulls sensitive content off your machine. dsh-macos-vision-ocr wires Apple's Vision framework directly into DeepSeek Harness so any text model can extract readable text from an image entirely offline—no API key, no network round-trip.
Under the hood the plugin runs VNRecognizeTextRequest at its most accurate setting and accepts a wide range of formats including PNG, JPEG, WebP, GIF, TIFF, BMP, HEIC, and HEIF. Recognition languages are specified per call using BCP-47 tags. On first use a small embedded Swift helper is compiled and cached by content address; subsequent calls reuse that binary. Output is capped in size with a truncation flag, and the subprocess is always launched with a fixed argument vector so image paths are never interpolated into a shell string.
If you regularly work with contracts, paper-take-home assignments, or multilingual receipts on macOS 13 or later and would rather keep those files local, this plugin fills the gap. It is purpose-built for pixel-to-text extraction—not object detection, scene understanding, or layout interpretation—and respects Harness filesystem policies throughout. A natural fit for privacy-conscious developers and analysts who need OCR as a building block rather than a standalone product.
使用场景
- 从截图或扫描件中提取文字供模型进一步分析
- 批量处理合同、票据等多语言文档图片
- 在无网络环境下完成图片到文字的转换
适合人员
- 需要本地处理敏感文档图片的开发者
- 在 macOS 上构建离线 AI 工作流的工程师
- 将 OCR 作为 Agent 工具链一环的数据分析师