|
Optical Character Resolution (OCR) object. Use it to recognize text on the screen.
Action Summary
Action Detail
DoClickTextInObject(objId, text, clickType)
Does OCR for a given object, finds a given string and clicks on it.
Parameters:
Name
|
Type
|
Description
|
objId
|
SeSObject |
String
|
ID of an object or SeSObject instance.
|
text
|
String
|
Text to find.
|
clickType
|
String
|
Type of a click to perform.
Optional, Default: "L".
|
Returns:
'true' if the text was found, 'false' otherwise.
DoClickTextInWindow(objId, text, clickType)
Does OCR for a window that contains a given object, finds a given string and clicks on it.
Parameters:
Name
|
Type
|
Description
|
objId
|
SeSObject |
String
|
ID of an object or SeSObject instance.
|
text
|
String
|
Text to find.
|
clickType
|
String
|
Type of a click to perform.
Optional, Default: "L".
|
Returns:
'true' if the text was found, 'false' otherwise.
DoExtractFromImage(img)
Does OCR for 'img'.
Parameters:
Name
|
Type
|
Description
|
img
|
SeSWrappers.Utils.ImageWrapper |
String
|
Image (ImageWrapper object or path to a file) to do OCR.
|
Returns:
Recognized text or empty string in the case of an error.
DoExtractFromObject(objId)
Does OCR for a given object.
Parameters:
Name
|
Type
|
Description
|
objId
|
SeSObject |
String
|
ID of an object or SeSObject instance.
|
Returns:
Recognized text or empty string in the case of an error.
DoExtractFromScreen(left, top, right, bottom)
Does OCR for a given rectangle.
Parameters:
Name
|
Type
|
Description
|
left
|
Number
|
X-coordinate of the top left corner.
|
top
|
Number
|
Y-coordinate of the top left corner.
|
right
|
Number
|
X-coordinate of the bottom right corner.
|
bottom
|
Number
|
Y-coordinate of the bottomo right corner.
|
Returns:
Recognized text or empty string in the case of an error.
DoExtractFromWindow(objId)
Does OCR for a window that contains a given object.
Parameters:
Name
|
Type
|
Description
|
objId
|
SeSObject |
String
|
ID of an object or SeSObject instance.
|
Returns:
Recognized text or empty string in the case of an error.
DoSelectOcrEngine(ocrName)
Selects OCR engine by name. The name should point to installed OCR engine.
Parameters:
Name
|
Type
|
Description
|
ocrName
|
String
|
Name of an OCR engine available to Rapise. For example, 'Textract' or 'Tesseract'.
|
|