Nima Chu

Super Ocr

オフィス効率化v0.1.0
作者:Nima Chu更新日 2026-05-11super-ocr@clawhub_nimachu/super-ocr
文書処理PDF 処理#OCR

AlphaMoatによると、2026-09時点でSuper Ocrのダウンロード数は1,542、スター数は1で、AIスキル全体5,078件中4,742位、オフィス効率化では435件中386位です。

インストール数
183
ダウンロード数
1542
スター数
1
総合順位
#4,742
全体の上位 94% · オフィス効率化の上位 89%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗3512271-
SkillHub ↗18315421—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

資料では、Tesseract と PaddleOCR の自動選択とエンジンの明示指定を説明しています。中国語や複雑な文書には PaddleOCR を推奨し、信頼度が低い場合は代替エンジンに切り替える方法も記載されています。

資料公開日 2026-10-27

できること

  • 画像や文書から文字を抽出する
  • 中国語または中英混在の内容を認識し、信頼度を確認する

使う場面

  • 画像や文書に OCR が必要なとき
  • 言語や認識要件に応じて OCR エンジンを選ぶとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

この中国語画像から文字を抽出し、認識モードを説明して
自動モードと特定の OCR エンジンを使う場面を比較して

月次の推移

ダウンロード数1542
425102516252026-03 · ダウンロード数 5082026-05 · ダウンロード数 8362026-06 · ダウンロード数 9222026-07 · ダウンロード数 10952026-08 · ダウンロード数 11812026-09 · ダウンロード数 154226-0326-09
スター数1
0112026-03 · スター数 -2026-05 · スター数 12026-06 · スター数 12026-07 · スター数 12026-08 · スター数 12026-09 · スター数 126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-091542—1
2026-081181+7.9%1
2026-071095+18.8%1
2026-06922+10.3%1
2026-05836—1
2026-03508—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

6.2 KB・ClawHub v0.1.0
---
name: super-ocr
description: "Production-grade OCR with intelligent engine selection. Tesseract (lightweight, fast) and PaddleOCR (high accuracy, Chinese-optimized). Use when extracting text from images, processing Chinese documents, needing confidence scores, or working with mixed Chinese/English content."
---

# Super OCR

## Overview

Super OCR is a production-grade optical character recognition tool that intelligently selects the best engine for your needs:
すべて表示(全 224 行)

- **Tesseract Engine**: Lightweight, fast (~200-500ms), perfect for simple text extraction
- **PaddleOCR Engine**: High accuracy (98%+), optimized for Chinese, ideal for complex documents

## Engine Selection Strategy

### Auto Mode (Default)
The skill automatically selects the optimal engine:

| Scenario | Selected Engine | Why |
|----------|----------------|-----|
| Simple text, English only | Tesseract | Faster, lighter dependency |
| Chinese content, high accuracy needed | PaddleOCR | Better Chinese support, 98%+ accuracy |
| Low confidence from Tesseract | PaddleOCR (fallback) | Quality assurance |

### Force Mode
Users can explicitly choose an engine:
- `--engine tesseract` - Use Tesseract only
- `--engine paddle` - Use PaddleOCR only
- `--engine auto` - Auto-select (default)

## Quick Start

### Installation

This skill requires the following dependencies:
- **PaddleOCR** (for Chinese text recognition - 98%+ accuracy)
- **Tesseract** (for fast English text recognition)
- **OpenCV** (for image preprocessing)

#### Option 1: Install with pip (all-in-one)
```bash
pip install paddleocr paddlepaddle pytesseract pillow opencv-python numpy
```

#### Option 2: Install dependencies manually

**macOS:**
```bash
# Tesseract
brew install tesseract

# PaddleOCR
pip install paddleocr paddlepaddle
```

**Ubuntu/Debian:**
```bash
# Tesseract
sudo apt update && sudo apt install tesseract-ocr

# PaddleOCR
pip install paddleocr paddlepaddle
```

**Windows:**
```bash
# Download Tesseract from: https://github.com/UB-Mannheim/tesseract/wiki
pip install paddleocr paddlepaddle pytesseract pillow opencv-python numpy
```

### Usage

```bash
# Auto mode (recommended) - runs all available engines
cd path/to/super-ocr
python scripts/main.py --image path/to/image.png

# Force Tesseract only
python scripts/main.py --image document.jpg --engine tesseract

# Force PaddleOCR (high accuracy Chinese)
python scripts/main.py --image chinese_menu.png --engine paddle

# Run all engines (macOS only: Tesseract + PaddleOCR + MacVision)
python scripts/main.py --image complex_doc.png --engine all

# Batch processing with output directory
python scripts/main.py --images ./images/*.png --output ./results --verbose

# Check dependencies and auto-install
python scripts/dependencies.py --check --install
```

## Structuring This Skill

This skill uses a **capabilities-based** structure with multiple execution modes:

1. **Engine Selection Logic** - Intelligent decision making
2. **OCR Execution** - Unified interface for different engines
3. **Post-processing** - Standardized output formatting
4. **Validation & Fallback** - Quality assurance

## Core Capabilities

### 1. Intelligent Engine Selection

The skill includes a decision tree that analyzes:

- Image characteristics (contrast, text size)
- Language patterns (Chinese character detection)
- User requirements (speed vs accuracy)

See `scripts/engine_selector.py` for implementation details.

### 2. Dual Engine Support

**Tesseract Engine** (`scripts/tesseract_ocr.py`):
- Fast preprocessing pipeline
- PSM mode 6 for uniform text blocks
- Confidence scoring per word
- Language detection

**PaddleOCR Engine** (`scripts/paddle_ocr.py`):
- State-of-art? SN (East text detection)
- Crnn recognition with LSTM
- Confidence scores per character
- Table detection support

### 3. Output Formats

Supports multiple output formats:

| Format | Content | Use Case |
|--------|---------|----------|
| Text only | Clean extracted text | Simple search/grep |
| Structured | Text + positions | Data extraction |
| JSON | Full metadata + confidence | API integration |
| Verbose | Debug info | Quality assurance |

### 4. Quality Guarantees

- Confidence thresholds (configurable, default 80%)
- Low-confidence alerts for manual review
- \Fallback processing for failed OCRs

## Resources

### scripts/

- `main.py` - Main entry point, CLI interface (supports multi-engine)
- `dependencies.py` - Auto-install and validation
- `output_formatter.py` - Multiple output format support
- `engine/` - OCR engine implementations
  - `selector.py` - Intelligent engine selection logic
  - `tesseract.py` - Tesseract engine wrapper
  - `paddle.py` - PaddleOCR engine wrapper
  - `macvision.py` - macOS Vision OCR (macOS only)
- `preprocessing/` - Image preprocessing utilities
  - `preprocessor.py` - Denoising, enhancement, binarization

### dependencies.py (Key Feature)

The `dependencies.py` module handles:

- Dependency detection (`paddleocr`, `paddlepaddle`, `pytesseract`, `cv2`)
- Auto-install on missing dependencies
- version checking
- OS-specific installation commands
- Clear error messages with troubleshooting steps

Use this when setting up a new environment with `python scripts/dependencies.py --check --install`

## Advanced Features

### Custom Configuration

Create `config.yaml` for persistent settings:

```yaml
default_engine: auto
confidence_threshold: 0.8
output_format: json
preprocess:
  denoise: true
  enhance_contrast: true
```

### Batch Processing

Process multiple images:

```bash
python scripts/ocr.py --images ./images/*.png --output ./results
```

### API Mode

Use as a Python library:

```python
from super_ocr import OCRProcessor

processor = OCRProcessor(engine='auto')
result = processor.extract('image.png')
print(result.text)
print(result.confidence)
```

## Anti-Patterns

- ❌ Using PaddleOCR for every image (overhead for simple cases)
- ❌ ignoring confidence scores (quality matters)
- ❌ Biases (always prefering one engine)
- ❌ Skipping preprocessing (quality impact)

## Performance Notes

| Engine | Init Time | Per-Image | Memory | Best For |
|--------|-----------|-----------|----------|----------|
| Tesseract | ~200ms | ~50ms | ~100MB | Quick extraction |
| PaddleOCR | ~3s | ~500ms | ~500MB | High accuracy |

Initialize once, reuse processor for batch processing.

オフィス効率化の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。