openocr-skills
Skill by Topdu
Extracts text, formulas, tables and document layout from images, scanned documents and PDFs. It uses OpenOCR, a lightweight OCR system whose document parsing model has 0.1B parameters and can run on personal PCs.
Install openocr-skills
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Topdu/OpenOCR /tmp/OpenOCR && mkdir -p ~/.claude/skills && cp -r /tmp/OpenOCR/docs ~/.claude/skills/openocr-skillsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Topdu/OpenOCR /tmp/OpenOCR && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenOCR/docs ~/.gemini/antigravity-cli/skills/openocr-skillsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant access to OpenOCR, an OCR system for pulling text out of images, scanned pages and PDFs. It covers five tasks: text detection (det), text recognition (rec), end-to-end OCR (ocr), VLM-based universal recognition for text, formulas and tables (unirec), and document parsing with layout analysis (doc). The source says the unirec and doc models have 0.1B parameters and can run on personal PCs.
Users call the OpenOCR Python class with an image path, a PDF path or a numpy array, and choose a task and options such as mode, backend and layout detection. Results include boxes, recognized text and confidence scores, and document output can be saved as Markdown, JSON or visualizations. The skill also documents a command-line interface and Gradio demos. It suits users who need to digitize scanned pages, read formulas or tables, or convert documents to structured text. The source says it supports Chinese and English.
Written from the project's SKILL.md and checked against it.
What it can do
- Text detectionFinds text regions and returns bounding boxes with processing time.
- Text recognitionReads text from cropped images, with mobile or server mode and ONNX or torch backends.
- End-to-end OCRRuns detection and recognition together and returns text with confidence scores.
- Universal recognitionUses a VLM to recognize text, formulas and tables, including PDF pages.
- Document parsingParses documents with layout analysis and saves results as Markdown, JSON or visualizations.
- PDF processingHandles PDF files natively, returning one result per page.
- Command-line interfaceRuns each task from the openocr command with flags for output and visualization.
- Gradio demosLaunches local web demos for the OCR, UniRec and OpenDoc tasks.
What you need
- Python
- The openocr package
- Optional: onnxruntime-gpu or PyTorch with CUDA for GPU speedup
Try asking
- Extract all text from this image
- Parse this PDF document with layout analysis
- Recognize the formula in this screenshot
Good to know
- Server mode for text recognition requires the torch backend.
- Custom model paths are optional, and missing models auto-download by default for unirec and doc.
- Mixed-content documents should enable layout detection.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: docs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB -
finetune_det.md6 KB -
finetune_rec.md5 KB -
opendoc.md4 KB -
openocr.md11 KB
Show all 7 files
-
svtrv2.md63 KB -
unirec.md13 KB
Alternatives to openocr-skills
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
openocr-skills: common questions
Does OpenOCR work on a personal PC?
The source says the document parsing model has 0.1B parameters and can run recognition on personal PCs. The default ONNX backend is described as working on CPU without extra dependencies.
Which task should I use for formulas or tables?
The source recommends the unirec task for formulas and tables and the doc task for full documents with mixed content.
Can OpenOCR read PDF files?
Yes. The source says the unirec and doc tasks handle PDFs natively, returning one result per page.
How do I install openocr-skills?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openocr-skills free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is openocr-skills safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to openocr-skills?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
