Community

coordinates of regions Answered

Hi. Im using flexicapture SDK 11 and extracting by code the coordinates of the "Region.BoundingRectangle"

But Im guessing that those extracted coordinates are relative to the PREPROCESSED/rotated image, so when i try to use those coordinates to the ORIGINAL image (exported by the processor) there's a little offset as the image is rotated

Can i do one of both? export the images after the preprocessing is applied, or geting the preprocess used values (exploring "page.ImageRotation" property maybe?)

UPDATE: found the angle in page.Image.SkewAngle . However there is still some offset, perhaps due to clipping the blank margins of the preprocessed image. Is there any property where i could get that?

 

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Finally solved it using ConvertCoordinates()

    page.Image.ConvertCoordinates(ImageTypeEnum.IT_Modified, ImageTypeEnum.IT_Base, ref x, ref y);
    
    0

Please sign in to leave a comment.