Read text
snipaya_read_textExtract text from images with on-device OCR, returning lines in reading order with bounding rectangles. Limit results by rectangle or image ID for targeted reading.
Instructions
Recognize text (on-device OCR) in the images and return the lines in reading order with their rects. Limit it with rect and/or imageId. Rects use the relativeTo space when set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | A rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo. | |
| tabId | No | Target tab id. Defaults to the active tab. | |
| imageId | No | Only read this image. | |
| relativeTo | No | Image id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image). |