Skip to main content
skillsFirst-partyReview first Safety Privacy

Image OCR + Table Extraction Skill

Pull text out of images, scans, and PDFs with the Tesseract OCR engine and OpenCV preprocessing. Run OCR in 100+ languages, read per-word confidence and page orientation (OSD), binarize and deskew for accuracy, and reconstruct tables into CSV or JSON.

HarnessClaude CodeCodexWindsurfGeminiCursorCLI
Level:advancedType:generalVerified:draft
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://tesseract-ocr.github.io/, https://github.com/JSONbored/awesome-claude/blob/main/content/skills/image-ocr-table-extraction.mdx
Package URL
/downloads/skills/image-ocr-table-extraction.zip
Package SHA256
9b48b3202b664e1fbe69e162d3193cb5ad7f64a38a929268b4175c3433873764
Safety notes
This skill installs the Tesseract binary, pytesseract, OpenCV, and Pillow (or the maintainer-built package via the curl download), runs OCR scripts, and writes extracted text/CSV/JSON to disk, overwriting existing output files.
Privacy notes
Image and document contents are processed locally through Tesseract and OpenCV; scans can contain personal or sensitive data, so handle the extracted output accordingly. Nothing leaves the machine beyond the initial package downloads.
Platform compatibility
claude-code (native-skill), codex (native-skill), windsurf (native-skill), gemini (native-skill), cursor (adapter), cli (manual-context)
Author
JSONbored
Claim status
unclaimed
Last verified
2025-10-15

Decision playbook

Ready to evaluate for your workflow

Signals are comparatively strong, but you should still validate source, privacy posture, and package provenance for your environment.

Compare context
Selected

0

Current score

96

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as first-party.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Complete

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    Package marked verified.

    Done
  • Checksum metadata

    SHA-256 hash is present.

    Done

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Package install

Copy-ready — paste the snippet to get started.

Install command

Provided

Config snippet

Not provided

Copy snippet

Provided

Prerequisites

6 to clear

Platforms

6 listed

Difficulty

96/100

Adoption plan

Balanced adoption plan

Current risk score 0/100. Use staged verification before broader rollout.

Risk 0

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    Package verification/checksum metadata is available.

    Done

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (6/6 signals complete).

Risk 0

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Present

Package integrity metadata is present.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

6/6 steps complete with no blocking gaps for this preset.

Risk 0

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is available.

Done

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

6 prerequisites to line up before setup.

0/6 ready
Install & runtime4Permissions & scopes1General1

Safety & privacy surface

Safety & privacy surface

1 safety and 1 privacy notes across 1 risk area. Review closely: network access.

1 area
  • SafetyNetwork accessThis skill installs the Tesseract binary, pytesseract, OpenCV, and Pillow (or the maintainer-built package via the curl download), runs OCR scripts, and writes extracted text/CSV/JSON to disk, overwriting existing output files.
  • PrivacyNetwork accessImage and document contents are processed locally through Tesseract and OpenCV; scans can contain personal or sensitive data, so handle the extracted output accordingly. Nothing leaves the machine beyond the initial package downloads.

Safety notes

  • This skill installs the Tesseract binary, pytesseract, OpenCV, and Pillow (or the maintainer-built package via the curl download), runs OCR scripts, and writes extracted text/CSV/JSON to disk, overwriting existing output files.

Privacy notes

  • Image and document contents are processed locally through Tesseract and OpenCV; scans can contain personal or sensitive data, so handle the extracted output accordingly. Nothing leaves the machine beyond the initial package downloads.

Prerequisites

  • Python 3.11+
  • opencv-python
  • pytesseract
  • Tesseract OCR binary with language data
  • Image file access permissions - read access to input image files and write access for OCR output files
  • System libraries: Tesseract OCR binary installed system-wide (not just Python package) with language data packs for target languages

Schema details

Install type
package
Reading time
5 min
Difficulty score
96
Troubleshooting
Yes
Breaking changes
No
Package metadata
Package verified
Yes
SHA-256
9b48b3202b664e1fbe69e162d3193cb5ad7f64a38a929268b4175c3433873764
Skill and platform metadata
Skill type
general
Skill level
advanced
Verification
draft
Verified at
2025-10-15
Retrieval sources
https://tesseract-ocr.github.io/https://docs.opencv.org/https://pypi.org/project/pytesseract/https://github.com/xavctn/img2table
Tested platforms
ClaudeCodexOpenClawCursorWindsurfGemini
PlatformSupportInstall path
claude-codeNative.claude/skills/<skill-name>/SKILL.md
codexNative.agents/skills/<skill-name>/SKILL.md
windsurfNative.windsurf/skills/<skill-name>/SKILL.md
geminiNative.gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md
cursorAdapter.cursor/rules/<skill-name>.mdc
cliManualAGENTS.md or tool-specific context file
Full copyable content
import cv2
import pytesseract
from PIL import Image

# Preprocess image for better OCR
img = cv2.imread('scan.png', cv2.IMREAD_GRAYSCALE)
img = cv2.threshold(img, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)[1]
img = cv2.medianBlur(img, 3)

text = pytesseract.image_to_string(img, lang='eng')
print(text[:300])

About this resource

Extract text and tabular data from images, scanned documents, and PDFs using Tesseract OCR engine with OpenCV preprocessing. Supports multi-language OCR (100+ languages), table structure detection, confidence scoring, orientation correction, and exports to CSV, JSON, and structured formats. Includes advanced image preprocessing pipelines for noise reduction, binarization, deskewing, and contrast enhancement to maximize OCR accuracy.

Content

Image OCR & Table Extraction Skill

What This Skill Enables

Claude can extract text and tables from images, screenshots, scanned documents, and PDFs using OCR (Optical Character Recognition). Convert images of receipts, invoices, forms, and tables into editable text and structured data.

Compatibility

Native

  • Claude Code / Claude: native skill usage via SKILL.md.
  • Codex/OpenAI workflows: compatible with Agent Skills-style SKILL.md content as reusable workflow instructions.

Manual Adaptation

  • Gemini CLI: native skill usage via .gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md where supported.
  • Cursor: use the generated .cursor/rules/*.mdc adapter for project rules.
  • OpenClaw and similar agents: use the same skill content as a reusable prompt/workflow file when native skill import is unavailable.

Prerequisites

Required:

  • Claude Pro subscription
  • Code Interpreter feature enabled
  • Image file uploaded (PNG, JPG, PDF with images)

What Claude handles:

  • Installing Tesseract OCR and vision libraries
  • Image preprocessing and enhancement
  • Text recognition and layout analysis
  • Table structure detection
  • Data extraction and formatting

How to Use This Skill

Basic Text Extraction

Prompt: "Extract all text from this screenshot and give me the content as plain text."

Claude will:

  1. Preprocess the image
  2. Run OCR
  3. Extract text with layout preservation
  4. Return formatted text

Table Extraction

Prompt: "Extract the table from this image and export it as CSV."

Claude will:

  1. Detect table boundaries
  2. Identify rows and columns
  3. Extract cell contents
  4. Structure as tabular data
  5. Export as CSV

Form Data Extraction

Prompt: "Extract data from this invoice image:

  • Invoice number
  • Date
  • Vendor name
  • Line items (description, quantity, price)
  • Total amount Format as JSON."

Claude will:

  1. OCR the entire image
  2. Identify fields by labels
  3. Extract values
  4. Structure as JSON
  5. Validate data format

Receipt Processing

Prompt: "Process this receipt image and extract:

  • Merchant name
  • Date and time
  • All item names and prices
  • Subtotal, tax, total Create a structured expense record."

Claude will:

  1. OCR the receipt
  2. Parse line items
  3. Extract financial data
  4. Calculate totals
  5. Format as structured data

Common Workflows

Batch Invoice Processing

"Process all invoice images I upload and:
1. Extract: invoice #, date, vendor, total
2. Create a master spreadsheet with all invoices
3. Flag any invoices where OCR confidence is low
4. Export as invoices_data.csv"

Screenshot Text Recovery

"Extract all code from this screenshot of a terminal:
1. Recognize monospace text accurately
2. Preserve indentation
3. Clean up any OCR artifacts
4. Save as code.py"

Business Card Digitization

"Extract contact information from this business card:
1. Name
2. Title/Position
3. Company
4. Email
5. Phone
6. Address
Format as vCard or CSV for import to contacts."

Table from PDF Extraction

"This PDF contains a table that I can't copy/paste properly:
1. Extract the table using OCR
2. Recognize the column headers
3. Parse all rows
4. Handle multi-line cells
5. Export as clean CSV"

Tips for Best Results

  1. Image Quality Matters: Higher resolution, clear contrast, straight orientation = better OCR
  2. Preprocessing: Ask Claude to enhance/preprocess low-quality images first
  3. Language: Specify if text isn't in English ("OCR this German document...")
  4. Table Complexity: For complex tables, describe the structure ("5 columns, headers in first row")
  5. Multiple Pages: Upload one page at a time for best results, or ask Claude to process sequentially
  6. Handwriting: Note that OCR works best on printed text; handwriting recognition is limited
  7. Confidence Thresholds: Ask Claude to report OCR confidence scores for verification

Image Quality Enhancements

Preprocessing Options

  • Rotate/deskew images
  • Increase contrast
  • Remove noise and artifacts
  • Binarization (convert to black/white)
  • Upscale low-resolution images
  • Crop to region of interest

Common Issues Claude Can Fix

  • Skewed/rotated images
  • Low contrast
  • Background noise
  • Poor lighting
  • Watermarks (some removal possible)

Advanced Extraction

Multi-Column Layouts

  • Newspaper-style columns
  • Magazine layouts
  • Academic papers
  • Forms with complex layouts

Special Document Types

  • Passports and IDs
  • Medical forms
  • Financial statements
  • Legal documents
  • Shipping labels

Troubleshooting

Issue: OCR results are garbled or inaccurate Solution: Ask Claude to preprocess the image first: "Enhance this image (increase contrast, deskew) and then run OCR"

Issue: Table structure not recognized properly Solution: Describe the table: "This is a 4-column table with headers in row 1. Extract it as CSV."

Issue: Numbers recognized as letters (0 as O, 1 as I) Solution: Tell Claude what type of data to expect: "Extract invoice number (numeric only) and date"

Issue: Multi-page document results are mixed up Solution: Process pages individually: "Extract text from page 1 only" then "Now page 2"

Issue: Handwriting not recognized Solution: OCR works best on printed text. For handwriting, describe it: "This is handwritten notes, do your best to extract text"

Issue: Foreign language not recognized Solution: Specify language explicitly: "OCR this Japanese document using Japanese language model"

Learn More

Features

  • OpenCV preprocessing recipes (thresholding, noise reduction, deskewing)
  • Pytesseract OCR with 100+ language packs
  • Table structure detection and extraction
  • Export tables to CSV/JSON/DataFrame formats
  • Confidence-aware extraction with quality scoring
  • Multi-language OCR support with auto-detection
  • Bounding box detection and text region identification
  • Orientation and script detection (OSD)

Use Cases

  • Digitize receipts and invoices for expense tracking
  • Extract tables from scanned documents and PDFs
  • Create searchable archives from image-based documents
  • Process business cards and contact information
  • Extract form data from filled documents
  • Convert printed documents to editable text formats

Source citations

Add this badge to your README

Show that Image OCR + Table Extraction Skill is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/skills/image-ocr-table-extraction.svg)](https://heyclau.de/entry/skills/image-ocr-table-extraction)

How it compares

Image OCR + Table Extraction Skill side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

1 trust signal differ across this comparison (Source provenance).

Field

Pull text out of images, scans, and PDFs with the Tesseract OCR engine and OpenCV preprocessing. Run OCR in 100+ languages, read per-word confidence and page orientation (OSD), binarize and deskew for accuracy, and reconstruct tables into CSV or JSON.

Open dossier

Turn CSV, JSON, or Excel data into publication-ready charts with Python: load it with pandas and render bar, line, scatter, and statistical plots in matplotlib (with seaborn styling), then export high-DPI PNG or SVG.

Open dossier

Clean, filter, join, pivot, and export CSV/XLSX data reliably with reproducible steps. Transform messy spreadsheets into production-ready datasets with pandas. Handle encoding issues, data type conversion, missing values, duplicates, and complex merges.

Open dossier

Fill templated DOCX with data to produce reports, invoices, and formatted documents. Generate professional Word documents programmatically with python-docx or use Jinja2 templates with docxtpl for dynamic content insertion. Support tables, images, headers, footers, and custom styling.

Open dossier
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage verified2025-10-15Package verified2025-10-15Package verified2025-10-15Package verified2025-10-15
Source provenanceDiffersSource-backedNo submission linkNo submission linkNo submission link
Submitter
Install riskReview firstLow riskLow riskLow risk
Notes Safety Privacy Safety Privacy Safety Privacy Safety Privacy
Brand
Categoryskillsskillsskillsskills
Sourcefirst-partyfirst-partyfirst-partyfirst-party
AuthorJSONboredJSONboredJSONboredJSONbored
Added2025-10-152025-10-152025-10-152025-10-15
Platforms
Claude CodeCodexWindsurfGeminiCursorCLI
Claude CodeCodexWindsurfGeminiCursorCLI
Claude CodeCodexWindsurfGeminiCursorCLI
Claude CodeCodexWindsurfGeminiCursorCLI
Source repo
Safety notesThis skill installs the Tesseract binary, pytesseract, OpenCV, and Pillow (or the maintainer-built package via the curl download), runs OCR scripts, and writes extracted text/CSV/JSON to disk, overwriting existing output files.This skill installs Python plotting libraries (matplotlib, seaborn, pandas) or the maintainer-built package, runs visualization scripts, and writes image files (PNG/SVG) to disk, overwriting any existing file at the output path.Installs Python packages (pip install pandas openpyxl) and runs scripts that read and write data files, overwriting outputs at the target path; review transformations before running on important data.Setup downloads and unzips a package and installs Python libraries (python-docx/docxtpl); generating reports writes .docx files to disk, overwriting any file at the output path. Review before running.
Privacy notesImage and document contents are processed locally through Tesseract and OpenCV; scans can contain personal or sensitive data, so handle the extracted output accordingly. Nothing leaves the machine beyond the initial package downloads.Your data files (CSV/JSON/Excel) are read and rendered locally; nothing leaves the machine beyond the initial package downloads, but generated charts can embed values from the source data.Claude Pro / Code Interpreter workflows require uploading CSV or Excel files to the Claude conversation for remote processing; local pandas runs read files on your machine. Generated outputs, logs, and conversation history can contain values from your source data — review before sharing.Report data you supply (templates and merged values) is rendered locally into Word documents; generated files can contain that data, so review them before sharing.
Prerequisites
  • Python 3.11+
  • opencv-python
  • pytesseract
  • Tesseract OCR binary with language data
  • Python 3.11+ or Node.js 18+
  • matplotlib/seaborn or vega/vega-lite
  • Data file in supported format (CSV, JSON, Excel)
  • Code Interpreter enabled (for Python path)
  • Python 3.11+
  • pandas
  • openpyxl
  • pyarrow (optional for Parquet)
  • Python 3.11+
  • docxtpl
  • docx2pdf or libreoffice for PDF
  • File system read/write access for template files and generated DOCX documents
Install
curl -L https://heyclau.de/downloads/skills/image-ocr-table-extraction.zip -o image-ocr-table-extraction.zip && unzip -o image-ocr-table-extraction.zip -d ./image-ocr-table-extraction
npm i vega vega-lite
pip install pandas openpyxl
curl -L https://heyclau.de/downloads/skills/docx-report-generator.zip -o docx-report-generator.zip && unzip -o docx-report-generator.zip -d ./docx-report-generator
Config
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.