Convert Coordinates

Question

How to convert coordinates in FineReader Engine 12?

Answer

During preprocessing, the image size and inner elements position might be changed after deskew and/or orientation correction.

Use ConvertCoordinates method of ImageDocument object to find out the initial coordinates of the certain element.

Example

int x=100, y=100; //x, y contain coordinates on the deskewed image
document.Pages[0].ImageDocument.ConvertCoordinates(FREngine.ImageTypeEnum.IT_Deskewed,
FREngine.ImageTypeEnum.IT_Base, ref x, ref y);
//now x, y contain corresponding coordinates on the source image

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.