RecognizePageFieldsOCR_S

This action performs recognition on all field zones that are defined for the current page and writes the results to the runtime page data file.

Member of namespace

OCR_SR

Syntax

bool RecognizePageFieldsOCR_S ()

Parameters

None.

Returns

False if the ruleset with this action is not bound to a Page object of the Document Hierarchy. Otherwise, True.

Level

Page only.

Details

This page-level action recognizes all fields on the page that have been configured for OCR/S recognition, see the OCR/S tab of the Recognition Options Setup dialog.

The properties in the OCR/S tab of the Zones tab in Datacap Studio can be set to adjust recognition. Recognition results are best when the expected character set is configured. For example, if the field is expected to contain only numeric characters or only alphabetic characters.

It is recommended to restrict the input to expected characters even if the specification of expected characters removes only small set of possible characters. Restricting the expected set of characters provides more accurate recognition.

The action does not recognize a zoned field if the Skip Recognition checkbox in the OCR/S tab of the Recognition Options Setup dialog is selected.

Automatic Rotation, Deskew and Border Removal

Automatic rotation, deskew and border removal can be performed automatically at the same time as recognition, if the feature is enabled. These settings can be configured at the page level. Refer OCR_SR actions for more information regarding enabling automatic rotation.

Although this is a page level action, it recognizes each field using the unique property values that are set on each individual field. For example, the OCR/S tab settings for language, filter, etc., needs to be set on each recognized field.

Note: Individual field-level recognition actions overwrite the results from this page-level action.

The action does not recognize a zoned field if the Skip Recognition checkbox in the OCR/S tab of the Recognition Options Setup dialog has been selected.

Automatic retry is supported if the operation timeout is reached.

Example
ReadZones()
RecognizePageFieldsOCR_S()