![]() |
T-Plan Robot
Enterprise Doc
Collection |
23 August 2011 |
TextRecognizer.jar
file
to the plugins/
directory under the Robot installation
directory.
TextRecognizer.jar
file from the plugins/
directory.C:\MyAutomation\charset
- u0061\
- a1.png
- a2.png
- u006F\
- o.png
Variable Name | Description |
_TEXT=<text> |
The recognized text (full
multiline format). The variable is created always when the method gets executed successfully (meaning that it doesn't fail for a missing desktop connection or invalid character image collection). |
_TEXT_LINE<n>=<text> | Parsed text line where <n> is the
line number. Numbering starts from one. If the method recognizes just a single line of text the content of the _TEXT variable will be equal to _TEXT_LINE1. |
_TEXT_LINE_COUNT=<number> | Number of lines in the recognized text. |
_TEXT_ERR=<error_text> |
Error message.
It gets populated only if the method fails to perform text recognition, for example when there is no desktop connection or when the specified character image collection doesn't exist or can not be read. |
_TEXT_MATCH=<text> |
The part of
recognized text that produced a fuzzy match meeting the criteria specified in the "text" and "distance" parameters. |
_TEXT_MATCH_INDEX=<number> |
Position (index) of the matching
text described in _TEXT_MATCH. Indexing starts from 0 which corresponds to the beginning of the recognized text. |
.tpr
script. More advanced examples on text matching can be found in the Tesseract
OCR method documentation whose behavior this method mostly mimicks.
Compareto
method="text" chars="
C:\MyAutomation\charset
"
Screenshot
test.jpg
method="text" chars="
C:\MyAutomation\charset
"
Waitfor
match
method="text" chars="
C:\MyAutomation\charset
"