Converting coordinates after image modification

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 the ConvertCoordinates Method of the 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

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.