Use this skill whenever the user wants text extracted from images, photos, scans, screenshots, or scanned PDFs. Returns exact machine-readable strings with line-level text and optional bbox coordinates. Strong accuracy for CJK, small print, and handwritten text. Trigger terms: OCR, 文字识别, 图片转文字, 截图识字, 提取图中文字, 扫描识字, 识字, 纯文字, plain text extraction, 坐标, 检测框, bbox, bounding box, image to text, screenshot, photo scan, recognize text.
The `paddleocr-text-recognition` skill provides robust optical character recognition (OCR) capabilities for extracting text from images, screenshots, scans, and scanned PDFs. It addresses the challenge of converting visual text into machine-readable strings with high accuracy, particularly for CJK (Chinese, Japanese, Korean) characters, small fonts, and handwritten text. Unlike standard text extraction from digital files, this skill is designed specifically for scenarios where the content exists only in image form, making it an essential tool for digitizing printed or photographed documents.
This skill offers line-level text extraction and can optionally provide bounding box coordinates for each line, allowing users to identify the exact location of text within an image. It can process both local files and URLs pointing to images or PDFs. The skill is compatible with Python 3.9+ and requires the `uv` runtime along with internet access. By default, it saves results as JSON in a temporary directory, with options to customize output paths or print results directly to stdout. The workflow includes parsing the JSON response, checking the success status, extracting recognized text, and handling any errors, ensuring that users can reliably obtain accurate text from diverse image sources.
Typical use cases include digitizing printed documents, converting screenshots or scanned forms into text, and extracting text for translation, indexing, or accessibility purposes. It is especially valuable for users who work with mixed-language documents, handwritten notes, or images containing small or dense text. Target users include software developers, data analysts, researchers, and professionals needing high-fidelity text extraction from images where traditional text parsing is not possible.
You can provide input as either a URL pointing to an image or a local file path. Use the `--file-url` parameter for URLs or `--file-path` for local files when running the script.
This skill requires Python 3.9 or higher, the `uv` runtime to resolve dependencies, and internet access. Environment variables `PADDLEOCR_OCR_API_URL` and `PADDLEOCR_ACCESS_TOKEN` must be set.
No, it is optimized for line-level text extraction and does not handle tables, formulas, charts, or full reading-order layouts. For complex documents, a dedicated document parsing tool should be used.
By default, results are saved as JSON files in the system temporary directory. You can override this path with the `--output` parameter or print the JSON directly using `--stdout`.
Processing time depends on document complexity. Single-page images usually take 1-3 seconds, while large PDFs of 50+ pages may require several minutes.
Quick Setup:
.claude/skills/Repository
aidenwu0209/paddleocr-skills