Skip to content
Back to skills

Ocr

ASecurity

"Routes LayoutParser OCR wrappers, response parsing, and text

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
toolspythongobashapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill ocr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ocr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ocr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-ocr/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-ocr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ocr
description: "Routes LayoutParser OCR wrappers, response parsing, and text
  aggregation workflows."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# OCR

Use this sub-skill when the task is about extracting text from images or
parsing saved OCR responses into LayoutParser objects.

## What belongs here

- `TesseractAgent` and `TesseractFeatureType`
- `GCVAgent` and `GCVFeatureType`
- OCR response loading, saving, and aggregation
- live OCR setup, credentials, and language selection

## What does not belong here

- Layout detection model inference: use `layout-models`
- Geometry or reading-order logic after OCR: use `layout-objects`
- Box/text rendering: use `visualization`
- PDF or JSON/CSV loading: use `layout-io`

## Read these files

- `references/guide.md` for agent behavior, aggregation levels, and troubleshooting notes
- `../layout-objects/SKILL.md` when you need to group or sort OCR blocks
- `../visualization/SKILL.md` when you need to render OCR output

## Fast path

1. Decide whether the task needs live OCR or only saved-response parsing.
2. Use Tesseract for local OCR and GCV for Google Cloud Vision workflows.
3. Confirm the backend package and host dependency before constructing the
   agent.
4. Aggregate at the required level before post-processing the OCR output.
5. Keep saved responses when you need deterministic follow-up tests.

## Common user requests

- "Use Tesseract OCR on this image"
- "Parse a saved Google Vision response"
- "Group the OCR output by line"
- "Load OCR results back into LayoutParser"
- "Set the custom Tesseract binary path"

## Minimal smoke

The environment inspector confirms the optional OCR backends and the local
`tesseract` binary:

```bash
python ../../scripts/inspect_backends.py
```

## Failure clues

- `pkg_resources` missing after installing GCV usually means the setuptools
  build is not compatible with `google-cloud-vision==1`.
- Missing `tesseract` binary means the Python wrapper is present but live OCR
  cannot run.
- Missing credentials mean the GCV live API path is not ready.
- If the output text changes across runs, use a saved response instead of live
  OCR for tests.

## Output discipline

When answering, name the OCR engine, the language or credential assumption,
and the desired aggregation level. If the task only needs saved-response
parsing, say so explicitly so future agents do not over-install the runtime.

Files in this skill

  • SKILL.md2.4 KB
  • references/guide.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.