Core Guides
On-Device OCR
Extract English, Chinese, and multilingual text completely offline using bundled PP-OCRv6/v5 models or headless CLI pipelines.
Shotori includes built-in optical character recognition powered by rapidocr-core. Inference runs 100% locally on your CPU — no cloud APIs, no accounts, no telemetry, and zero network traffic after the initial model download.
Interactive OCR (Ctrl+O)
- Run
shotoriand drag a selection around any text — an image, video frame, PDF scan, error dialog, or remote desktop window. - Click the OCR button on the toolbar or press Ctrl+O.
- First run only: If the selected model is not yet cached in
~/.local/share/shotori/ocr-models($XDG_DATA_HOME/shotori/ocr-models), Shotori prompts to download it (~31 MB for the defaultppocrv6-small), displaying a live progress bar and verifying SHA-256 digests before use. - Recognized text is copied straight to your Wayland clipboard, with an optional desktop notification preview.
Bundled Model Presets
Choose your preferred accuracy/speed tier in shotori settings ocr or ~/.config/shotori/settings.toml:
| Model ID | Tier | Best For |
|---|---|---|
ppocrv6-tiny |
Fastest | Quick upright UI labels and low-power laptops |
ppocrv6-small (default) |
Balanced | Everyday multilingual / English + CJK screenshots (~31 MB) |
ppocrv6-medium |
Higher accuracy | Dense paragraphs, small font sizes, stylized UI text |
ppocrv5-en-mobile |
English compact | Dedicated Latin/English recognition |
ppocrv5-ch-mobile |
Chinese + EN mobile | Lightweight Simplified Chinese & English |
ppocrv5-ch-server |
Maximum accuracy | Heavy document scans and complex mixed CJK layouts |
Useful OCR Preferences
[ocr]
model = "ppocrv6-small"
# Skip the 180° orientation classifier — faster for normal upright screenshots
assume_upright = false
# Join multi-line paragraphs with spaces instead of hard line breaks
join_lines = false
Headless CLI OCR (shotori ocr)
Recognize text directly from an image file, stdin, or a live screen target without opening the interactive overlay:
# Recognize text from a file and print to stdout
shotori ocr slide.png
# Capture the focused window, auto-download models if missing, and copy to clipboard
shotori ocr --download --window --clipboard
# Pipe an image from stdin and write recognized text to a file
cat scan.png | shotori ocr - --path notes.txt
Need to run your own fine-tuned ONNX detector, recognizer, or custom dictionary? See Custom OCR Models.