detectOrientation

Detects the orientation of the given image using Tesseract's OSD.

Return

The correction angle (0, 90, 180, or 270) to apply, or 0 if detection is unavailable or fails.

Parameters

image

The image to analyze.

dpi

The image resolution in DPI (dots per inch).