Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Auto Orient

IP Command Grooper.OCR

Rotates an image so that its text content is upright, using OCR-based orientation detection.

Remarks

The Auto Orient command analyzes the text orientation of an image and applies the necessary rotation to ensure the text is upright.
This is especially useful for scanned documents or images where the page orientation is unknown or inconsistent.

The orientation detection is performed using an OCR engine, selected via the 'Method' property.
Supported engines include Transym and Tesseract, each with its own detection algorithm and configurable options.

How It Works

  1. The image is first binarized using the settings in 'Threshold Settings'.
  2. The selected OCR engine analyzes the binarized image to determine the correct orientation.
  3. If the orientation can be determined, the image is rotated accordingly.
  4. If orientation detection fails and 'Flag On Fail' is enabled, the page will be flagged for review.

Configuration Notes

  • The 'Method' property determines which OCR engine is used for orientation detection.
  • Some properties, such as 'Max Time', 'Max Coverage', and 'Minimum Confidence', are only relevant for specific methods.
  • Use diagnostic mode to review preprocessing and detection results for troubleshooting.
  • This auto orientation mechanism is based on traditional OCR. To use more powerful CNN-based OCR for orientation detection, use the Azure OCR engine combined with a Recognize activity with 'Correct Orientation' enabled..

Usage Scenarios

  • Automatically correcting the orientation of scanned pages in a batch process.
  • Ensuring consistent text orientation before performing OCR extraction or data capture.
  • Flagging problematic pages for manual review when orientation cannot be determined.

Properties

NameTypeDescription
General
Command Info

See Also

Used By

Notification