PXO_InputField

PDF-X OCR SDK is a New product from us and intended to compliment our existing PDF and Imaging Tools to provide the Developer with an expanding set of professional tools for Optical Character Recognition tasks

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

PXO_InputField

Post by Tom Princen »

How do I calculate the coordinates (left, right, upper,...)?

In the help I find this quote “The unit is points (72 per inch).” But this does not seem correct?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PXO_InputField

Post by Tracker Supp-Stefan »

Hello Tom,

Can you please provide a snippet of the code you are trying to use, and comment why you think the result is not correct?

Regards,
Stefan
Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: PXO_InputField

Post by Tom Princen »

PXO_InputField MyInputField = PXO_InputField();

MyInputField.top = 0;
MyInputField.bottom = 100;

MyInputField.left = 403;
MyInputField.right = 604;

MyInputField.nPage = 0;


OCR_GetField(pdf, ref Options, out TextOut, Zone, (uint)PXO_FieldInputFlags.PXO_Origin_TopLeft);

These MyinputField coordinates how do i know them? Can I visualize it on the PDF?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PXO_InputField

Post by Tracker Supp-Stefan »

Hi Tom,

From the description of the PXO_InputField method:
Coordinates are in PDF page coordinates, starting with (0,0) at the lower left corner of the page, similar to conventional / Cartesian mathematics (and in contrast to Windows RECT coordinates). The unit is points (72 per inch).

So the bottom left corner of the page is (0,0), and the top right corner for an A4 page (210x297mm) is (595.2755, 841.8897)
For a Letter page - 8.5 x 11 inch the top left will be (612.0 , 792.0)

Regards,
Stefan
Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: PXO_InputField

Post by Tom Princen »

Is there a way to optimize the OCR results of a certain font?
I have some numbers that are very frequently are miss translated:

1 instead of 7 (see attachment 1)
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PXO_InputField

Post by Tracker Supp-Stefan »

Hello Tom,

There are no training tools available for our OCR currently - sorry.

Numbers are indeed quite tricky with some fonts.

Regards,
Stefan
Post Reply