DetectOrientationByText Method of the ImageProcessingTools Object

This method detects the image orientation using the text lines.


Visual Basic .NET

Function DetectOrientationByText( _
  Image As Image, _
  Language As Language, _
) As RotationTypeEnum


HRESULT DetectOrientationByText(
  IImage*           Image,
  ILanguage*        Language,
  RotationTypeEnum* Result


[in] Refers to the Image object which is to be processed.
[in] Refers to the Language object which specifies the language of the text on the image.
[out, retval] Returns a RotationTypeEnum constant.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.


This method returns the image orientation, that is, the angle by which the image was rotated from normal. To detect the angle needed to turn the image the right way up, use the DetectRequiredRotation method. The results returned by the two methods will be the opposite of each other.

See also



15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.