shiganluo/skill/vision-ocr-fallback
Claude Code and agent skill by shiganluo/skill
- community
Checking that the SKILL.md file is still in the repository.
OCR scanned PDFs via vision when tesseract unavailable.
Install
npx vskill@latest install shiganluo/skill/vision-ocr-fallbackSKILL.md
Vision-Based OCR Fallback
Use vision_analyze to read scanned documents when traditional OCR tools are unavailable.
Trigger: pymupdf returns empty text on pages that contain images (scanned PDFs), AND tesseract is not installed AND marker-pdf is too large to install (~3-5GB).
Step 1: Detect Scanned vs Text Pages
Key signal: len(blocks) == 0 and len(images) > 0 means the page has a background image but no selectable text layer.
Step 2: Render Scanned Pages to PNG
Step 3: Vision-Analyze Each Page
Call vision_analyze with a specific prompt per page type:
For pages with tables:
Multiple vision_analyze calls can be made in parallel (they're independent).
Step 4: Merge into Final Document
Combine pymupdf text (for text pages) with vision output (for scanned pages) into a single markdown file. Preserve page order.
Pitfalls
- pymupdf4llm timeout:
to_markdown()can hang on complex PDFs. Useget_text()page-by-page as primary. - 300 DPI sweet spot: Lower than 200 DPI loses clarity. Higher than 300 DPI wastes tokens.
- CJK documents: Vision models handle CJK well — no language pack needed.
- Only render scanned pages: If a page has both text blocks AND images, skip rendering — pymupdf already extracted the text.
- Large PDFs: Process scanned pages in batches to avoid context overflow.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingproductivity/vision-ocr-fallback/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shiganluo/skill/vision-ocr-fallback)