Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesImage file.
TextStringYesWord or phrase to find.
LanguageStringNoengTesseract language(s), e.g. eng, deu or eng+fra.
OccurrenceNumberNo1Which appearance to return, counting in reading order from 1.

Outputs​

OutputTypeWhat it is
foundBooleanTrue when found.
xNumberCentre x.
yNumberCentre y.
countNumberHow many times the phrase appears in the image.