extract_image_text
Extract on-image text from PNG, JPEG, or WebP files in reading order with OCR, so source strings can be translated and localized.
Instructions
Extract text segments from an image, in reading order (OCR).
Use this as the first step when localizing an image: pull out the
on-image source strings, translate each with translate (so TM, style
guides, and brand voice apply), then re-render with localize_image.
Args: image_path: Path to a local PNG, JPEG, or WebP image file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |