How to get page deskew angle and orientation

To get correct results, please get the angles before OCR, just after adding the image to the FRDocument and the rotation just after processing. The angle is overwritten after the rotation, so you need to get it before rotation, which happens during processing. 

To get the angle, for example, the following lines of code can be used:

double skew = -1;

RotationTypeEnum rot = RT_UnknownRotation;


Where imageDocument is a pointer to IImageDocument.

Was this article helpful?

0 out of 4 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.