Returns the text on the object as recognized by the OCR mechanism with linefeeds within the rectangle coördinates.
Object.GetOcrAreaTe(language,color,x,y,width,height)
Parameters
- language
Required. A String value containing the language of your office installation. Supported languages are : "Chinese_Simplified", "Chinese_Traditional", "Czech", "Danish", "Dutch", "English", "Finnish", "French", "German", "Greek", "Hungarian", "Italian", "Japanese", "Korean", "Norwegian", "Polish", "Portuguese", "Russian", "Spanish", "Turkish".
- color
Required. A String value true or false indicating wether the OCR should be performed against a screen representation with or without color.
- x
Required. A String value containing the X coördinate of the rectangle relative torwards the GUI object.
- y
Required. A String value containing the Y coördinate of the rectangle relative torwards the GUI object.
- width
Required. A String value containing the width of the rectangle.
- height
Required. A String value containing the height of the rectangle.
Return Value
A string containing the text displayed on the
screen as recognized by the OCR mechanism within the rectangle
coördinates.
Returns the text on the object as recognized by the OCR mechanism with linefeeds within the rectangle coördinates.
-
In order to use the GetOcrAreaText method you need to have the
Microsoft Office document imaging component installed. See the
Installation guide for more details.
-
We don't support OCR for Run on device and Web
elements.
QTP Example:
MobileDevice("device").GetOcrAreaTe("English","false","0","0","160","50")