Preview Pane (Options Dialog Box > GUI Testing Tab > Text Recognition)
Relevant for: GUI tests and components
This pane enables you to preview the text recognition result. You can adjust your text recognition settings globally in the Options window, or locally for the test run in your test itself, based on the preview result.
To access |
Select Tools > Options > GUI Testing tab > Text Recognition node, and click the Preview button. |
Important information |
|
Related tasks |
UI options are described below. The UI and functions vary depending on the OCR mechanism you selected on the Text Recognition pane.
Baidu or Google OCR Text Recognition engine
UI Element | Description |
---|---|
Browse | Click this button to select an image file of your application. |
Recognize | Click this button to preview the text recognition result of the selected image. |
ABBYY OCR Text Recognition engine (default)
UI Element | Description |
---|---|
OCR Configuration Set |
The Preview pane provides four sets of OCR configurations:
|
Recognition Parameters |
ABBYY OCR text recognition parameters. For details about each parameter, see the table below. |
Trained pattern |
The trained pattern to use for text recognition, if you selected Use a trained pattern in the Text Recognition pane. Click Browse to select another pattern file to use for the preview. |
Browse | Click this button to select an image file of your application. |
Recognize | Click this button to preview the text recognition result of the selected image. |
Generate Script |
Generate a script containing the settings of a configuration set you selected or customized. |
Copy Script |
Copy the generated parameter settings to your test for a specific test run. |
ABBYY OCR recognition parameters are described below.
Parameter | Description |
---|---|
Detect text on pictures |
Detect all text on a page image, including text embedded into figures and pictures. |
Enable aggressive text extraction |
Extract as much text on the image as possible. |
Enable text extraction mode |
Extract text from text blocks. |
One word per line |
Recognize the lines of text as a single word. |
Remove garbage |
Remove garbage from the image during objects extraction. |
Remove texture |
Remove the background noise from a temporary image used for recognition. |
Fast objects extraction |
Speed up objects extraction. |
Use fast binarization |
Use fast image binarization. |
Correct skew |
Correct skew during image preparation. |
Prohibit color image |
Use only black-and-white plane during objects extraction. |
Discard color image |
Leave only black-and-white plane in the prepared image. |
Fast mode |
Provide faster recognition speed. |
Low resolution mode |
Recognize a text on an image with low resolution. |
Prohibit italic |
Prohibit recognition of letters printed with italic-styled font. |
Prohibit subscript |
Prohibit recognition of subscript letters. |
Prohibit superscript |
Prohibit recognition of superscript letters. |
Prohibit hyphenation |
Prohibit recognition of hyphenation from line to line. |
Case recognition mode |
The mode of letter case recognition. |
Field marking type |
The type of marking around letters (for example, underline, frame, box). |