opencr-skill_skill

This skill enables OpenOCR powered text extraction, document parsing, and universal recognition to convert images and PDFs into structured text and layouts.
  • Python

2.5k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill opencr-skill

  • _meta.json275 B
  • SKILL.md17.6 KB

Overview

This skill extracts text, formulas, tables, and document structure from images, scanned PDFs, and screenshots using OpenOCR. It unifies text detection, recognition, universal VLM recognition, and layout-aware document parsing so you can convert visual content into editable text or structured outputs quickly and reliably.

How this skill works

Initialize the OpenOCR engine with the task you need (det/rec/ocr/unirec/doc) and pass an image, numpy array, or PDF. The engine runs detection and/or recognition models (ONNX or torch), optionally performs layout analysis, and returns bounding boxes, recognized text, confidence scores, or full document blocks. Results can be exported to Markdown, JSON, or visualized for review.

When to use it

  • Converting scanned PDFs or images into searchable text
  • Extracting mathematical formulas or LaTeX from screenshots
  • Detecting and cropping text regions for downstream processing
  • Parsing multi-layout documents with mixed text, tables, and images
  • Batch processing directories of documents for archiving or indexing

Best practices

  • Choose the right task: use 'ocr' for general text, 'unirec' for formulas/tables, 'doc' for full document parsing
  • Use mode='mobile' for fast CPU processing and mode='server' when higher accuracy is required
  • Prefer the ONNX backend for lightweight CPU deployment; enable GPU via onnxruntime-gpu or torch+CUDA for speed
  • Tune thresholds like drop_score (OCR) and layout_threshold (Doc) to balance precision and recall
  • Enable layout detection for documents with mixed content and use batch settings (rec_batch_num) to optimize throughput

Example use cases

  • Convert a folder of scanned invoices to Markdown and JSON for bookkeeping
  • Extract LaTeX from photographed handwritten formulas for research notes
  • Detect and crop text regions from photos for an annotation pipeline
  • Parse multi-page PDFs with layout analysis and save per-page structured outputs
  • Run fast OCR on mobile-collected images for field data capture

FAQ

Use 'unirec' (universal recognition) for formulas and tables; 'doc' combines layout detection with UniRec for full-page parsing.

Can I run this on CPU only?

Yes. The default ONNX backend works on CPU. For faster processing enable GPU with onnxruntime-gpu or PyTorch with CUDA.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational