onTextOrientationDetected method of the TextRecognitionCallback interface

Documentation Menu

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 Note: This method is a part of an interface which is available only in the extended version of the library.

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 )

Parameters

angle

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