DeepSeek Harness Local OCR Plugin

Introduction

The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When an agent needs to recognize text in local images or PDFs, it typically has to call online OCR services, which introduces network latency and privacy risks. What follows is an introduction to feely0208/dsh-ocr-local, a fully local OCR plugin that supports macOS Vision framework or tesseract, with no network requests or API keys required.

Plugin Positioning

feely0208/dsh-ocr-local is a DeepSeek Harness plugin categorized under “Model Inference.” Built on top of dsh-guard-core (the DeepWhale Guard series), it provides fully offline, zero-key local text recognition capabilities. The plugin is maintained by feely0208 and currently has 0 stars.

Core Features

The plugin performs OCR locally and supports two underlying engines:

  • macOS Vision framework: Apple’s native solution, no additional dependencies required
  • tesseract: An open-source OCR engine, installable on macOS via Homebrew

Recognition results can be output as an HTML report for easy display on web pages.

Installation

Install via the DSH plugin manager:

dsh plugin --profile web add @deepwhale-cn/dsh-ocr-local

Or install directly via npm:

npm i @deepwhale-cn/dsh-ocr-local

Or install from a local repository:

dsh plugin install ./

Plugin requirements:

  • DSH version: >= 0.1.0-rc.6 < 0.3.0
  • Node.js version: >= 18

Typical Usage

After installation, run in your project directory:

npx @deepwhale-cn/dsh-ocr-local --root <project-directory>

Run the built-in sample demo:

npx @deepwhale-cn/dsh-ocr-local --demo

View rules and regulatory references:

npx @deepwhale-cn/dsh-ocr-local --list-rules

Output an HTML report:

npx @deepwhale-cn/dsh-ocr-local --html r.html

Use Cases & Notes

Suitable for scenarios requiring offline OCR capabilities, such as local document processing and text extraction in privacy-sensitive environments.

Note: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installation.

Summary

feely0208/dsh-ocr-local adds local OCR capabilities to the DSH plugin ecosystem, reducing network dependencies while ensuring privacy. For more details, refer to the project directory page and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye