Skip to content
Agentmart
Submit a tool

ocr-local

ローカル Tesseract OCR でスクリーンショット画像群を Markdown に文字起こしする。Playwright による自動スクショ取得も可能。社外秘ドキュメントを外部 API に出さずに処理したいときに使う。

Skill by gon9

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/gon9-ocr-local

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

ローカル Tesseract OCR でスクリーンショット画像群を Markdown に文字起こしする。Playwright による自動スクショ取得も可能。社外秘ドキュメントを外部 API に出さずに処理したいときに使う。

Use cases: documents, backend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ocr-local

What's inside

Skill name
ocr-local
Description
ローカル Tesseract OCR でスクリーンショット画像群を Markdown に文字起こしする。Playwright による自動スクショ取得も可能。社外秘ドキュメントを外部 API に出さずに処理したいときに使う。
License
MIT
Compatibility
Python 3.14+, Tesseract OCR 4.x+, Playwright (optional)
Instructions
72 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (10)

  • README.md
  • SKILL.md
  • pyproject.toml
  • ocr-usage.md · references/
  • __init__.py · src/ocr_local/
  • __main__.py · src/ocr_local/
  • capture.py · src/ocr_local/
  • ocr.py · src/ocr_local/
  • test_capture.py · tests/
  • test_ocr.py · tests/

SKILL.md (first lines)

# ocr-local

## Overview
社外秘 PDF や Web 閲覧専用ドキュメントのスクリーンショットを、外部 API を一切介さずローカルだけで Markdown に文字起こしするスキル。Playwright による Web ページの自動スクショ取得にも対応。

## Capabilities

### 自動スクショ取得 (capture)
Playwright (headless Chromium) で URL にアクセスし、ページ/スライドのスクショを自動保存する。手動スクショ不要。

- **Implementation**: `src/ocr_local/capture.py`
- 3 つのキャプチャモード: 全ページ / スクロール / CSS セレクタ指定

### ローカル OCR (ocr)
スクリーンショット画像群を入力に、自然順ソートで処理し、frontmatter 付き Markdown を生成する。

- **Implementation**: `src/ocr_local/ocr.py`

### 一気通貫パイプライン (pipeline)
URL -> スクショ取得 -> OCR -> Markdown 生成をワンコマンドで実行。

- **Reference**: See [references/ocr-usage.md](references/ocr-usage.md) for details.

## Usage

### キャプチャ + OCR を一気通貫 (推奨)

```bash
uv run -m ocr_local pipeline https://example.com/slides -o output.md --title "文字起こし" --scroll
```

### スクショだけ取得

```bash
uv run -m ocr_local capture https://example.com/slides -o ./screenshots/ --scroll
```

### 既存画像から OCR だけ実行

```bash
uv run -m ocr_local ocr ./screenshots/ -o output.md --title "文字起こし"
```

### キャプチャオプション

| オプション | 説明 | デフォルト |
|---|---|---|
| `--scroll` | スクロールしながら複数枚キャプチャ | (無効) |
| `--selector` | CSS セレクタで要素ごとにキャプチャ | (全体) |
| `--width` / `--height` | ビューポートサイズ | 1920x1080 |
| `--wait` | ページ読み込み後の待機秒数 | 2.0 |
| `--prefix` | ファイル名プレフィックス | slide |
| `--max-pages` | スクロール時の最大ページ数 | 100 |

### OCR オプション

| オプション | 説明 | デフォルト |
|---|---|---|
| `--lang` | Tesseract 言語コード。縦書きなら `jpn_vert` | `jpn` |
| `--psm` | Tesseract PSM。表が多い資料は `6` | `6` |
| `--no-clean` | 日本語ノイズクリーニングを無効化 | (有効) |
| `--readable` | frontmatter タグを `type/transcript` にする | (`type/raw`) |

## Prerequisites

- Tesseract OCR (4.x 以上) + 日本語データ
  - macOS: `brew install tesseract tesseract-lang`
  - Ubuntu: `sudo apt-get install -y tesseract-ocr tesseract-ocr-jpn tesseract-ocr-jpn-vert`
- Playwright (capture / pipeline サブコマンド使用時のみ)
  - `uv pip install 'ocr-local[capture]' && playwright install chromium`

From gon9/ore-skills, MIT.

More from gon9/ore-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 27, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from gon9

Cite this page

ocr-local skill. Agent Mart. https://agentmart.dev/skills/gon9-ocr-local (last updated 2026-10-24)