Xpersona
W

When dealing with text within an image, the system automatically recognizes it as an OCR (Optical Character Recognition) task and applies the corresponding capabilities.

CLAWHUB · Unverified

OCR (Optical Character Recognition) tool using Tesseract for extracting text from images. Use when: (1) processing screenshots, charts, or documents in image...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K 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 s1766zf65xcym51f030k8p9fa5841vsc:ocr-tool
  1. Install using `clawhub skill install s1766zf65xcym51f030k8p9fa5841vsc:ocr-tool` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/liuzhengmcc-debug/ocr-tool before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-liuzhengmcc-debug-ocr-tool/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

23,337 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: ocr-tool
description: "OCR (Optical Character Recognition) tool using Tesseract for extracting text from images. Use when: (1) processing screenshots, charts, or documents in image format, (2) extracting text from financial charts, announcements, or reports, (3) analyzing images containing Chinese/English text. NOT for: simple text files (use read tool), PDF files (use other tools), or when Tesseract is not installed."
metadata:
  {
    "openclaw":
      {
        "emoji": "🔍",
        "requires": { "bins": ["tesseract"] },
        "install":
          [
            {
              "id": "choco",
              "kind": "choco",
              "package": "tesseract",
              "bins": ["tesseract"],
              "label": "Install Tesseract OCR (choco)",
            },
            {
              "id": "winget",
              "kind": "winget",
              "package": "UB-Mannheim.Tesseract",
              "bins": ["tesseract"],
              "label": "Install Tesseract OCR (winget)",
            },
            {
              "id": "apt",
              "kind": "apt",
              "package": "tesseract-ocr",
              "bins": ["tesseract"],
              "label": "Install Tesseract OCR (apt)",
            },
            {
              "id": "brew",
              "kind": "brew",
              "package": "tesseract",
              "bins": ["tesseract"],
              "label": "Install Tesseract OCR (brew)",
            },
          ],
      },
  }
---

# OCR Tool Skill

Use Tesseract OCR to extract text from images, particularly useful for financial charts, announcements, reports, and screenshots containing Chinese and English text.

## When to Use

✅ **USE this skill when:**

- Processing screenshots of financial charts or announcements
- Extracting text from images containing Chinese/English text
- Analyzing "公告全知道" or similar financial announcement images
- Processing images with tabular data or structured information
- Extracting text from charts, reports, or documents in image format

## When NOT to Use

❌ **DON'T use this skill when:**

- Text files are already available (use `read` tool)
- PDF files (use other PDF extraction tools)
- Images without text content
- When Tesseract is not installed

## Setup

```bash
# Verify Tesseract installation
tesseract --version

# Install language packs if needed (for Chinese)
# Windows: Download chi_sim.traineddata from https://github.com/tesseract-ocr/tessdata
# Place in: C:\Program Files\Tesseract-OCR\tessdata\
```

## Basic Usage

### Extract Text from Image

```bash
# Basic OCR (English)
tesseract image.png output.txt

# Chinese OCR
tesseract image.png stdout -l chi_sim

# Chinese + English OCR
tesseract image.png stdout -l chi_sim+eng

# Specify output format
tesseract image.png output -l chi_sim+eng pdf txt
```

### Common Patterns for Financial Analysis

```bash
# Extract text from financial announcement images
tesseract announcement.png stdout -l chi_sim+eng | grep -E "公司|股份|增长|

_meta.json

{
  "ownerId": "kn74z3avewbr8njdnrcghkyh6n8402ty",
  "slug": "ocr-tool",
  "version": "1.0.0",
  "publishedAt": 1775056123924
}

examples/example_usage.md

# OCR Tool Usage Examples

## Basic Usage

### 1. Extract Text from Image

```bash
# Basic OCR (English)
tesseract image.png output.txt

# Chinese OCR
tesseract image.png stdout -l chi_sim

# Chinese + English OCR
tesseract image.png stdout -l chi_sim+eng
```

### 2. Using the Python Script

```python
# Import and use in Python
from scripts.ocr_extract import analyze_image

result = analyze_image("announcement.png", lang="chi_sim+eng", detailed=True)
print(f"Found {len(result['info']['companies'])} companies")
```

### 3. Using the Batch Script (Windows)

```batch
:: Basic extraction
ocr.bat announcement.png

:: With detailed analysis
ocr.bat announcement.png --detailed

:: Extract only to file
ocr.bat announcement.png --output analysis.txt --extract-only
```

### 4. Using the Shell Script (Unix/Linux/macOS)

```bash
# Basic extraction
./ocr.sh announcement.png

# With detailed analysis
./ocr.sh announcement.png --detailed

# Extract only to file
./ocr.sh announcement.png --output analysis.txt --extract-only
```

## Real-World Examples

### Example 1: Financial Announcement Analysis

```bash
# Analyze a financial announcement image
./ocr.sh "公告全知道20260331.png" --detailed

# Output will include:
# - Company names (extracted from hashtags and text)
# - Stock codes
# - Financial metrics
# - Keywords
```

### Example 2: Batch Processing Multiple Images

```bash
# Process all PNG images in a directory
for img in *.png; do
    echo "Processing: $img"
    ./ocr.sh "$img" --output "analysis_${img%.png}.txt"
done
```

### Example 3: Integration with OpenClaw

```python
# In an OpenClaw skill or agent
import subprocess
import json

def process_telegram_image(image_path):
    """Process image received via Telegram"""
    
    # Extract text using OCR
    result = subprocess.run(
        ['tesseract', image_path, 'stdout', '-l', 'chi_sim+eng'],
        capture_output=True,
        text=True,
        encoding='utf-8'
    )
    
    text = result.stdout
    
    # Analyze for financial information
    companies = []
    if '#红相股份' in text:
        companies.append('红相股份')
    if '#海亮股份' in text:
        companies.append('海亮股份')
    if '#国电南自' in text:
        companies.append('国电南自')
    
    # Extract other company mentions
    import re
    all_companies = re.findall(r'#([^\s#]+)', text)
    
    return {
        'text': text[:500] + '...' if len(text) > 500 else text,
        'companies': companies,
        'all_mentions': all_companies,
        'has_financial_data': any(keyword in text for keyword in ['利润', '增长', '合同', '中标'])
    }
```

### Example 4: Telegram Message Processing Workflow

```python
# Typical workflow for processing Telegram financial images
def process_financial_image_message(image_path, message_text):
    """
    Process financial image messages like "公告全知道"
    
    Args:
        image_path: Path to downloaded image
        message_text: Original message text (for context)
    """
    
    # Step 1: Extract text from image
    ocr_text =

skill-card.md

## Description:

This skill helps agents extract text from images with Tesseract OCR, with examples for multilingual and financial screenshot workflows.

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

## Publisher:

[liuzhengmcc-debug](https://clawhub.ai/user/liuzhengmcc-debug)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, engineers, and analysts use this skill to extract text from screenshots, charts, reports, and document images. It is especially oriented toward Chinese and English OCR and optional review of OCR-derived financial entities, stock codes, and metrics.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: OCR output can misread names, stock codes, numbers, or financial metrics.

Mitigation: Verify extracted text and any financial interpretation against the source image or authoritative records before relying on it.

Risk: Batch and Telegram-style examples can process private or many local images if copied directly.

Mitigation: Limit input directories, confirm files before processing, and avoid running bulk OCR on sensitive images without approval.

Risk: Chinese or other non-English extraction depends on installed Tesseract language data.

Mitigation: Install and test the required language packs before using multilingual OCR workflows.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/liuzhengmcc-debug/skills/ocr-tool)
- [Tesseract tessdata language data](https://github.com/tesseract-ocr/tessdata)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration instructions, Guidance]

**Output Format:** [Markdown with inline shell and Python code examples; scripts can emit plain text OCR output and console summaries.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a local Tesseract installation and appropriate language packs for non-English OCR.]

## Skill Version(s):

1.0.0 (source: server release evidence and artifact/_meta.json)

## 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.

Sponsored

Ads related to When dealing with text within an image, the system automatically recognizes it as an OCR (Optical Character Recognition) task and applies the corresponding capabilities. and adjacent AI workflows.