Read Text
read_textExtract visible text from an image via OCR, including signage, UI labels, and documents. Use it to pull readable strings from pixels for quick text capture.
Instructions
Extract visible text from an image (Florence-2 task).
Returns the text the model reads off the pixels — signage, UI labels, documents. Like all generative output it can misread; treat low-stakes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Absolute path to the image file | |
| max_new_tokens | No | Generation length cap (default 1024, max 4096) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||