doc-ocr
DiscoveredLocal OCR for PDFs/scans/images using macOS Vision. 本地OCR文档识别。
文档文字识别 · Doc-OCR
Turn PDFs, scans and photos into editable text with local macOS Vision OCR — nothing is uploaded.
PDF / 扫描件 / 图片 → 可编辑文字。有文字层的 PDF 直接抽取,扫描件走 macOS Vision 自带 OCR(中英文),文件不出本机。
Install
# 1) Agent Skills CLI (works with 50+ agent hosts)
npx skills add jiawood2006/doc-ocr
# 2) Claude Code / any host that reads ~/.claude/skills
git clone https://github.com/jiawood2006/doc-ocr.git ~/.claude/skills/doc-ocr
# 3) Hermes Agent
git clone https://github.com/jiawood2006/doc-ocr.git ~/.hermes/skills/utilities/doc-ocr
No build step, no account, no telemetry.
Usage
python3 scripts/dococr.py 合同.pdf # single file → text
python3 scripts/dococr.py 发票.jpg # image / scan
python3 scripts/dococr.py 书.pdf --md # Markdown output
python3 scripts/dococr.py ./扫描件/ -o 全部.txt # batch a folder
Ask your agent: "把这份扫描合同转成文字" and it runs the OCR for you.
Requirements
macOS (Vision framework) + Python 3.9+
pip3 install pymupdf pyobjc-framework-Vision
Notes
Text-layer PDFs are extracted directly (fast, exact); only scanned pages go through OCR. Chinese and English are handled out of the box.
License
MIT — see LICENSE. Issues and PRs welcome. Part of the hermes-skills collection.
Comments
Loading…
Similar plugins
by Sqhao-O
Fully local document intelligence for DeepSeek Harness. Parse PDF, Office files, images, and scanned documents with offline OCR. | DeepSeek Harness 全本地文档智能插件,支持 PDF、Office、图片与离线 OCR
★ 16
↓ 287/wk
MIT
TypeScript
Oct 16, 2026
dsh plugin --profile web add dsh-docby Daive1119
Offline local OCR skill for DSH/agents - Windows native engine first, zero cloud cost
★ 1
MIT
Python
Oct 11, 2026
dsh plugin --profile web add dsh-local-ocrRead and search local PDFs with page citations, render pages as images, and use optional Tesseract OCR for scanned or mixed pages; requires Poppler.
★ 0
dsh plugin --profile web add dsh-pdf-readerby niyongsheng
Local‑only vision skill for macOS 本地化识图技能dsh-plugin
★ 4
MIT
TypeScript
Aug 19, 2026
dsh plugin --profile web add @niyongsheng/free-vision-skillby ferstar
本地 OCR 插件:让纯文本生成 LLM 也能读懂图片 | Local OCR plugin: give text-only generative LLMs the ability to read images
★ 4
↓ 63/wk
MIT
TypeScript
Aug 18, 2026
dsh plugin --profile web add dsh-tool-ocrby protoctistmoses143
Convert PDFs, Office docs, scanned images, and more to clean Markdown, JSON, or text locally with offline OCR—no servers, no API keys, fully private.
★ 0
MIT
TypeScript
Oct 13, 2026
dsh plugin --profile web add dsh-doc