ocr-fallback

Extracts scanned PDF text via pymupdf images and easyocr or pytesseract when needed.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mrmtsuruya/hermes-backup --skill ocr-fallback
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ocr-fallback
Source: https://github.com/mrmtsuruya/hermes-backup/tree/main/skills/productivity/ocr-fallback
Command: npx skills add https://github.com/mrmtsuruya/hermes-backup --skill ocr-fallback

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf, easyocr, pytesseract, and includes scripts (resource) and references (resource) components.

What problem does it solve?

When the primary OCR tool (marker-pdf) is too slow or unavailable, this Skill provides an efficient method to extract text from scanned PDFs using alternative OCR techniques.

Core Features & Use Cases

  • OCR Fallback: Utilizes easyocr or pytesseract for OCR when marker-pdf is not suitable.
  • Image Extraction: Extracts pages from PDFs as images using pymupdf.
  • Use Case: Ideal for scenarios where marker-pdf is slow, the system lacks sufficient resources, or the PDF contains scanned images.

Quick Start

Use the ocr-fallback skill to process 'document.pdf' with OCR using easyocr.

Frequently Asked Questions about ocr-fallback

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from scanned PDFs when my primary OCR tool is too slow?▼

To extract text from scanned PDFs when primary tools are slow, you can use fallback OCR methods that leverage pymupdf for image extraction and easyocr or pytesseract for text recognition. This approach provides efficient text extraction on resource-constrained systems.

What's the best way to perform OCR on scanned PDFs with limited system resources?▼

The best way to perform OCR on scanned PDFs with limited resources is using a fallback method with pymupdf to extract page images, followed by easyocr or pytesseract for text recognition, avoiding the overhead of heavier primary OCR tools.

Does this fallback OCR method work with both easyocr and pytesseract?▼

Yes, this fallback OCR method works with both easyocr and pytesseract. It utilizes pymupdf to extract pages as images from scanned PDFs, then processes those images using either easyocr or pytesseract to extract the text.

When should I use a fallback OCR method instead of marker-pdf for text extraction?▼

You should use a fallback OCR method instead of marker-pdf when marker-pdf is unavailable, too slow, or when your system lacks sufficient resources. It is specifically designed for administrative tasks requiring OCR on resource-constrained systems.

How does pymupdf handle image extraction from scanned PDFs for OCR processing?▼

Pymupdf handles image extraction from scanned PDFs by extracting individual pages as images. These extracted images are then passed to easyocr or pytesseract to perform the actual text recognition, providing an efficient alternative OCR pipeline.

Can I use pytesseract to extract text from PDFs containing scanned images?▼

Yes, you can use pytesseract to extract text from PDFs containing scanned images. The process utilizes pymupdf to first extract the scanned pages as images, which are then processed by pytesseract to recognize and extract the text.