CaptureAreaOCR$ Wizard

This wizard specifies the parameters used by the CaptureAreaOCR$ statement.

CaptureAreaOCR$ statement captures a rectangle within a window (the content of the rectangle must be visible on the screen). The capture creates an internal bitmap file for the specified zone, applies to it the OCR engine and returns back the text as analysed by the OCR engine.

The CaptureAreaOCR$ Wizard dialog box is called by double-clicking this statement in the Language window of WinTask Editor.

 

Select the OCR engine that the statement will use. The WinTask OCR engine is the one by default. If Microsoft Office 2003 or 2007 is installed on the PC, the MODI (Microsoft Office Document Imaging) OCR engine can be used too and gives usually better results. If the listbox Select the OCR engine does not show MODI, click the How to install MODI link.

Click Capture button. The wizard screen is minimized and the mouse pointer becomes a cross. Draw a rectangle around the zone to capture within the window. When the zone content is captured, the wizard screen comes to focus and the Window field displays the name of the window where is the zone to capture.

Click View button to display the text which will be returned by the OCR engine. You can redo the capture after having selected another OCR engine if you are not happy with the OCR results. Note that the MODI OCR engine gives better results when the zone is not just a word.

Click Options button to display the language used by the OCR engine. This option is valid only for the MODI OCR engine. Leave Default Language unless the window content is not using your Windows native language.

Click Paste into the script button to generate the CaptureAreaOCR$ line in the script. Note that a UseOCREngine line is generated too which tells which OCR engine will be used by the CaptureAreaOCR$ at replay.

See also

How to install MODI