RotateImageOCR_A

Use with Recog_Shared > RotateTIO to update the CCO file with the correct position coordinates after image rotation.

Member of namespace

ocr_a

Syntax

bool RotateImageOCR_A ()

Parameters

None.

Returns

False if the ruleset with this action is not bound to a Page object of the Document Hierarchy, or if the action cannot locate the Image file representing the current page. Otherwise, True.

Level

Page only.

Details

This action checks if the scanned Image file needs to be rotated by 90, 180, or 270 degrees to be in the upright position. If rotation is necessary, the action saves the Image file in the new, correct position.
Note: You can specify a target language (for example, Hebrew) so that the engine can properly rotate the text according to that language.
Important: When using automatic rotation, the language should be set for the page prior to calling this action to ensure that the rotation is performed correctly. The separate image enhancement actions simply use image geometry to determine if page needs to be rotated. However, RoateImageOCR_A action can be more reliable at rotating an image because the recognition engine uses the target language to determine the correct orientation. For example, the image enhancement automatic rotation can cause Hebrew images to be rotated incorrectly. Refer to Recognize action for information regarding the recognition language.
Example:
RotateImageOCR_A()
AnalyzeImage()