Find text in image
Locate a word or phrase in an image, or its n-th appearance; returns whether it was found, its centre and how often it appears.
Command in the OCR toolkit · id ooa.ocr/find_text_in_image · 4 inputs (2 required), 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Image file. | |
| Text | String | Yes | Word or phrase to find. | |
| Language | String | No | eng | Tesseract language(s), e.g. eng, deu or eng+fra. |
| Occurrence | Number | No | 1 | Which appearance to return, counting in reading order from 1. |
Outputs
| Output | Type | What it is |
|---|---|---|
| found | Boolean | True when found. |
| x | Number | Centre x. |
| y | Number | Centre y. |
| count | Number | How many times the phrase appears in the image. |