Page 1 of 1

Zonal OCR Coordinate System

Posted: Thu Sep 10, 2020 5:22 pm
by mikeplacko
I've tested and used zonal OCR successfully with GdPicture however I'm often guessing at where the actual zones should be. How can I use the viewer to let the user define zones themselves? I know I can create an annotation rectangle and capture the coordinates of it via a custom button and code behind, but how do you translate that into a OCR zone? The coordinate systems seem completely different.

I've used this tool before (, which works great but I don't want to have a completely separate UI for capturing zones.

Re: Zonal OCR Coordinate System

Posted: Wed Sep 16, 2020 5:42 pm
by Fabio
Hello there,

You can define it by the method setROI().
You will find all you need at this link: ... =setroi%2C

Hope it helps!

Best regards,
Fabio de Rose
Solution Engineer

Re: Zonal OCR Coordinate System

Posted: Thu Nov 12, 2020 12:03 am
by mikeplacko
That is the opposite of what I am asking. I know how to set a ROI, but how do I let the user draw a bounding box on the document and retrieve the ROI coordinates? The coordinate systems for SetROI and get annotation do not match.