Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

xberg-extracting-with-ocr

Skill by xberg-io

Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.

  • Score 94
  • 9.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install xberg-extracting-with-ocr

Built from the published package, never by AI.

git clone --depth 1 https://github.com/xberg-io/xberg /tmp/xberg && mkdir -p ~/.claude/skills && cp -r /tmp/xberg/skills/xberg-extracting-with-ocr ~/.claude/skills/xberg-extracting-with-ocr

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install xberg-extracting-with-ocr in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill explains how to use the Xberg CLI to extract text from image-based documents. These include scanned PDFs, photographed pages, screenshots, and JPEG, PNG or TIFF images. Xberg auto-OCRs raster images and detects PDFs that lack a text layer. The skill describes when to force OCR, how to choose between Tesseract, PaddleOCR, Candle vision models and hosted VLM backends, and how to set language packs with ISO 639-2 codes.

The skill also covers useful flags, batch processing with xberg batch, caching, DPI and auto-rotate tuning, and an xberg.toml config file option. It lists common failure modes, such as missing tessdata and empty content from scanned PDFs. It suits people who run Xberg to turn scanned or image-only files into text.

Written from the project's SKILL.md and checked against it.

What it can do

  • Force OCRRuns OCR on every page when a PDF text layer is unreliable or garbled.
  • Backend selectionChooses between Tesseract, PaddleOCR, Candle VLM and hosted VLM OCR backends.
  • Language packsCombines ISO 639-2 language codes with plus signs or uses all installed packs.
  • Batch OCRRuns xberg batch with an internal worker pool across CPU cores.
  • Performance tuningAdjusts target DPI, auto-rotate, caching and acceleration settings.
  • Config fileSets OCR options in an xberg.toml file discovered from the working directory upward.
  • Failure troubleshootingExplains fixes for missing tessdata, empty content and rotated pages.

What you need

  • Xberg CLI
  • Tesseract language packs for languages other than eng, installed at OS level
  • liter-llm provider and API key for the hosted VLM backend

Try asking

  • Run OCR on this scanned PDF and return the text.
  • Extract text from this photo using English and German OCR.
  • Batch OCR all PDFs in this folder with force OCR turned on.

Good to know

  • PaddleOCR is not available on WASM or Windows.
  • The hosted VLM backend requires a liter-llm provider and API key.
  • Higher DPI makes OCR slower, so 200 is often enough for printed text.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/xberg-extracting-with-ocr/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • index.md471 B
  • references/advanced-features.md18 KB
  • references/cli-reference.md12 KB
  • references/configuration.md33 KB
Show all 10 files
  • references/nodejs-api.md13 KB
  • references/other-bindings.md9 KB
  • references/python-api.md31 KB
  • references/rust-api.md12 KB
  • references/supported-formats.md21 KB

Alternatives to xberg-extracting-with-ocr

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or file-edit-in-place

xberg-extracting-with-ocr: common questions

When should I force OCR on a PDF?

Force OCR when extraction returns empty content from a file that opens visually, or when the PDF text layer is garbled. The source says --force-ocr re-rasterizes and runs OCR on every page.

Which OCR backend should I use?

Tesseract is the default and ships with the CLI. The source advises switching to another backend only when Tesseract accuracy is unacceptable.

Do I need extra files for other languages?

Tesseract's default language is eng. Other languages need their language packs installed at OS level, and Xberg fails with an error that names the missing file.

How do I install xberg-extracting-with-ocr?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is xberg-extracting-with-ocr free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is xberg-extracting-with-ocr safe to use?

It scores 94 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 xberg-extracting-with-ocr?

Similar skills: obsidian-clipper-template-creator, harness-creator, file-edit-in-place, nature-polishing.

xberg-extracting-with-ocr Install

Add to stack

Loading.