dsh-macos-vision-ocr
Run the following command in DeepSeek Harness:
dsh plugin install leozou320-ai/dsh-macos-vision-ocr
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install leozou320-ai/dsh-macos-vision-ocr in your terminal to install the offline OCR plugin from https://github.com/leozou320-ai/dsh-macos-vision-ocr into your current DeepSeek Harness profile.
About this plugin
Reading text out of screenshots, scans, or document images on a Mac typically means shipping pixels to a cloud OCR service, which is an uncomfortable trade-off when the content is confidential. dsh-macos-vision-ocr bridges Apple's macOS Vision framework into DeepSeek Harness, giving every text model an ocr_image tool that runs the entire pipeline on-device: no API key, no outbound requests.
The plugin invokes VNRecognizeTextRequest at its highest-accuracy preset and handles PNG, JPEG, WebP, GIF, TIFF, BMP, HEIC, and HEIF inputs. Callers can set BCP-47 recognition languages on each invocation, so a single profile can process Chinese, English, Japanese, or any language the Vision stack supports. A compact Swift helper is compiled once and cached by content address for instant reuse. Every call returns a bounded text payload with a truncation flag, and the subprocess is always spawned with a fixed argument vector—image paths never pass through a shell interpreter.
It is designed for macOS 13+ users who need reliable, privacy-preserving text extraction as a tool inside an agent workflow: contract review, receipt digitization, multilingual document triage. It is not a visual-understanding engine—it will not detect objects, faces, or scene semantics, and reading order is a geometric approximation that can falter on multi-column or heavily stylised layouts. If your priority is keeping pixels and text on your own hardware while still feeding structured text to a model, this plugin is a focused, MIT-licensed way to get there.
Use Cases
- Extract text from screenshots or scans for downstream model analysis
- Batch-process multilingual documents like contracts and receipts
- Convert images to readable text in fully offline environments
Best For
- Developers who must keep sensitive document images on-device
- Engineers building offline AI workflows on macOS
- Analysts who need OCR as one step in an agent toolchain
Related Plugins
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.
An armor-breaking plugin for DeepSeek: rewrites instruction priority, expands refusal-blocked phrases, persists across sessions, and shows a green active indicator.