evo-ocr-preprocess-extract

evo-ocr-preprocess-extract is a skill for Claude Code, Codex from OpenLAIR/OpenSkill. It costs 29 tokens per session (335 once invoked), scanned A, original, Apache-2.0.

An image-preparation and OCR tool for receipt photos. OCR, or optical character recognition, turns text in images into computer-readable text.

In plain words
What is it for?
Use it to find receipt image files, improve their contrast and readability, and extract their raw text with Tesseract.
Why use it?
It reduces recognition errors caused by small, noisy, low-contrast, or unevenly formatted receipt images. It also tries more than one OCR setup when needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find receipt image files, improve their contrast and readability, and extract their raw text with Tesseract.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openlair/openskill/evo-ocr-preprocess-extract
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenLAIR/OpenSkill --skill evo-ocr-preprocess-extract
Clone the repo
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evo-ocr-preprocess-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/openlair/openskill/evo-ocr-preprocess-extract/github.svg)](https://agentmods.dev/skills/openlair/openskill/evo-ocr-preprocess-extract)
Your own site
<a href="https://agentmods.dev/skills/openlair/openskill/evo-ocr-preprocess-extract"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-ocr-preprocess-extract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evo-ocr-preprocess-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/openlair/openskill/evo-ocr-preprocess-extract"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-ocr-preprocess-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00335
Opus 5 $0.00015 $0.00168
Sonnet 5 $0.00006 $0.00067
Haiku 4.5 $0.00003 $0.00034

Measured yesterday against content hash 3d25c307d10c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

evo-ocr-preprocess-extract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/utils.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tasks-evolved/jpg-ocr-stat/environment/skills/evo-ocr-preprocess-extract/SKILL.md · 36 lines

What it actually says

evo-ocr-preprocess-extract

Preprocesses receipt images using Pillow (grayscale, upscaling, contrast enhancement, binarization) and extracts raw text using pytesseract with optimal PSM configuration for receipt layouts.

Key Functions

  • get_sorted_image_files(directory_path) - Returns sorted list of (filename, full_path) tuples
  • preprocess_image(image_path, scale_factor=2, contrast_factor=2.0, threshold=140) - Preprocesses image for OCR
  • extract_text_from_image(image_path, psm=4, oem=3, ...) - Extracts text with preprocessing + Tesseract
  • extract_text_multi_config(image_path) - Tries multiple configs for best result

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-ocr-preprocess-extract/scripts')
from utils import get_sorted_image_files, extract_text_from_image

files = get_sorted_image_files('/path/to/images')
for filename, filepath in files:
    text = extract_text_from_image(filepath)

Pipeline

  1. Grayscale conversion (handles RGBA/RGB)
  2. 2x upscale with LANCZOS resampling
  3. Contrast enhancement (factor 2.0)
  4. Median filter denoising
  5. Binarization (threshold 140)
  6. Tesseract OCR with PSM 4 (single column)
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 36 lines · 29 tokens per session scan A 3d25c307d10c

Subscribe to this mod's changes

evo-ocr-preprocess-extract is a skill published in the GitHub repository OpenLAIR/OpenSkill (90 stars, last pushed 2d ago), licensed Apache-2.0. It adds 29 tokens to every session and 335 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

stripe-best-practices

Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax…

stripe/ai · 161 tokens

amazon-listing

Amazon listing CRUD via the category flat-file (Add Products via Upload). Create a variation family (parent + colour/size children), update attributes, change parent-child relationships, and delete SKUs — all in one template round trip. Also covers the end-to-end sourcing flow: a supplier link (e.g. 1688) → extract…

zpoint/vibe-seller · 149 tokens

amazon-invoice

Generate tax invoices from Amazon Seller Central order data using browser extraction and PDF generation.

zpoint/vibe-seller · 19 tokens

shopify-admin-gift-message-extraction

Read-only: extracts gift messages, gift recipients, and gift flags from order custom attributes and notes for fulfillment teams to print on packing slips.

40RTY-ai/shopify-admin-skills · 37 tokens

slidecraft

Convert PowerPoint (PPTX) files to HTML and back, analyze PPTX structure, generate slide decks from topics via LLM, pre-cache CDN assets, or launch the interactive review web UI. Use this when the user wants to work with PowerPoint presentations -- convert ppt to html, html to pptx, inspect pptx contents, or generate…

solid-shuwen/shuttleslide · 76 tokens

kb-import

Agent-guided procedure to import an existing non-OKF wiki or knowledge base (Obsidian vault, markdown folder, wiki export) into a Cartographer KB, incrementally and without big-bang LLM rewriting.

BeppeTemp/cartographer · 48 tokens