Skip to main content

General Text OCR

Command description

Recognizes printed or handwritten text in image files, desktop elements, and web elements.

The result includes the coordinates of each recognized text region.

For example, you can send the text and coordinate data recognized from an invoice to an AI model for further analysis.

Command Input Parameters

input parametersInput parameter typeDescription
Image TypeenumGeneral Text, Handwritten Text
Image SourceenumLocal File, Desktop Element, Web Element
Image PathstrFull path to the local image; required when Image Source is Local File
Desktop ElementWinElement or str (captured element UID, not element name, not ms-rpa-id)Desktop element to analyze; required when Image Source is Desktop Element. Select a captured element or one returned by Get Desktop Element, Get Related Desktop Elements, or Get Similar Desktop Elements.
Webpage ObjectWebPageWebpage containing the element; required when Image Source is Web Element
Web ElementWebElement or str (captured element UID, not element name, not ms-rpa-id)Web element to analyze; required when Image Source is Web Element. Select a captured element or one returned by Get Web Element, Get Similar Web Elements, or Get Related Web Elements.

Command Output Parameters

Output parametersOutput parameter typeDescription
Recognition Resultlist[TextOCR]List of recognized text regions; each item is a TextOCR object

Type definition reference

Example

Output recognition results