onTextOrientationDetected method of the TextRecognitionCallback interface

Informs the client application about the orientation of the image. This may be useful if you wish to rotate the view for the user.

Note that the coordinates of the text, after the recognizeText method call, will be returned on the image rotated to normal orientation, so you will need to take the rotation angle into account if you intend to use those coordinates.

This method is to be implemented on the client side, which may include displaying the error description to the user or handling it otherwise.

void onTextOrientationDetected( int angle );


The angle on which the image should be rotated to get normal orientation. Possible values are: 0, 90, 180, 270. Rotation is expected to be performed clockwise.

02.03.2022 12:59:15

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.