Xpersona
G

General OCR Struct

CLAWHUB · Unverified

Offline OCR extracting and structuring Chinese/English screenshot text into raw or cleaned rows and fields for receipts, tables, and statements. Skill: General OCR Struct Owner: 9penny Summary: Offline OCR extracting and structuring Chinese/English screenshot text into raw or cleaned rows and fields for receipts, tables, and statements. Tags: latest:0.1.0 Version history: v0.1.0 | 2026-03-25T01:43:12.540Z | user Initial release: local RapidOCR-based OCR with raw extraction and transaction-style structuring workflow. Archive index: Archive v0.1.0: 6 files, 593

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177h3sqgyygsatz9w6ketdma183jds4:general-ocr-struct
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-9penny-general-ocr-struct/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

7,072 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: general-ocr-struct
description: General-purpose offline OCR and post-processing for Chinese/English screenshots, scanned images, receipts, tables, chat screenshots, statement screenshots, and other text-heavy images. Use when you need to: (1) extract text from an image locally, (2) return raw OCR text before interpretation, (3) clean broken OCR lines into structured content, (4) reorganize recognized text into rows/fields for downstream use, or (5) separate recognition from later table entry, summarization, or document drafting.
---

# General OCR Struct

Use this skill to separate OCR recognition from downstream content整理.

## Workflow

1. Run the local OCR script on the image first.
2. Return the raw OCR text before making business interpretations when accuracy matters.
3. If the image is a transaction-detail screenshot, run structuring mode to group rows into fields.
4. Mark uncertain fields explicitly as `待确认`; do not guess missing content.
5. Only after the user confirms recognition quality, use the result for tables, summaries, or documents.

## Commands

### Raw OCR

```bash
python3 scripts/general_ocr.py raw /path/to/image.jpg
```

### Structured transaction extraction

```bash
python3 scripts/general_ocr.py transactions /path/to/image.jpg
```

### JSON output

```bash
python3 scripts/general_ocr.py transactions /path/to/image.jpg --json
```

## Output rules

- Prefer showing the recognition result first, then the cleaned structure.
- Preserve source wording where possible.
- For uncertain content, use `待确认` instead of inferring.
- Adapt the structure to the source image type. For statement-like screenshots, common fields are: `card_last4`, `date`, `time`, `currency`, `merchant`, `amount`.

## Notes

- This skill uses RapidOCR locally.
- First install may need Python packages; after setup it runs offline.
- If OCR quality is weak, request a higher-resolution original screenshot before doing deeper整理.

_meta.json

{
  "ownerId": "kn77rhe3n8bcd6mq3h3jmemkt582dhx0",
  "slug": "general-ocr-struct",
  "version": "0.1.0",
  "publishedAt": 1774402992540
}

references.md

# Structuring notes

Use raw OCR first, then decide whether to organize the content.

Suggested post-processing patterns:
- plain text screenshots → keep paragraph order
- chat screenshots → preserve message order and speaker labels when visible
- table screenshots → group by rows/columns carefully, avoid inventing headers
- statement/ledger screenshots → split into repeated fields such as date/time/currency/merchant/amount

Recommended workflow:
1. Run `raw` mode and review the OCR text.
2. If the image has obvious repeated row patterns, run a structuring mode.
3. Present both the cleaned result and the raw fragments when users need verification.
4. Only after user confirmation, use the result in tables, summaries, or documents.

Core rule:
- if confidence is low or grouping is ambiguous, show the raw OCR text and mark uncertain parts as `待确认`
- do not invent names, categories, invoice status, or business meaning that the image does not clearly support

Current built-in structuring:
- `transactions`: optimized for bank/card/statement-like screenshots where OCR returns one field per line

Known limitations:
- not all screenshot layouts can be perfectly structured by fixed heuristics
- payment-channel prefixes and broken merchant names may still need human review
- raw OCR is the source of truth when structured output conflicts with visible image content

skill-card.md

## Description:

General-purpose offline OCR and post-processing for Chinese/English screenshots, scanned images, receipts, tables, chat screenshots, statement screenshots, and other text-heavy images.

This skill is ready for commercial/non-commercial use.

## Publisher:

[9penny](https://clawhub.ai/user/9penny)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to run local OCR on text-heavy images, review raw recognized text, and structure clear transaction-like screenshots into rows and fields before downstream table entry, summaries, or document drafting.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Receipts, card statements, chat screenshots, and similar images can contain sensitive personal or financial information.

Mitigation: Process only files the user intentionally provides for local OCR and avoid sharing the extracted text beyond the intended workflow.

Risk: OCR quality or fixed transaction heuristics can produce incorrect grouping, merchant spillover, or ambiguous fields.

Mitigation: Show raw OCR text for verification, mark uncertain fields as needing confirmation, and request a higher-resolution source image when recognition quality is weak.

## Reference(s):

- [Structuring notes](artifact/references.md)
- [ClawHub skill page](https://clawhub.ai/9penny/skills/general-ocr-struct)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown with shell commands and optional JSON OCR results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Raw OCR text should be shown before interpretation when accuracy matters; uncertain structured fields should be marked for confirmation.]

## Skill Version(s):

0.1.0 (source: release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

VETTING_REPORT.txt

SKILL VETTING REPORT
═══════════════════════════════════════
Skill: general-ocr-struct
Source: local workspace
Author: officeassistant
Version: draft
───────────────────────────────────────
METRICS:
• Files Reviewed: 3
───────────────────────────────────────
RED FLAGS: None found

PERMISSIONS NEEDED:
• Files: reads local image paths provided by caller
• Network: None in skill code
• Commands: python3 local script
───────────────────────────────────────
RISK LEVEL: 🟢 LOW

VERDICT: ✅ SAFE TO PUBLISH AFTER QUALITY TUNING

NOTES: Uses rapidocr_onnxruntime local dependency already installed on host. Current known issue is row spillover in merchant field for transaction screenshots; this is quality-related, not a security issue.
═══════════════════════════════════════

Sponsored

Ads related to General OCR Struct and adjacent AI workflows.