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?
PXO_InputField
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PXO_InputField
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
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
-
- User
- Posts: 83
- Joined: Wed Mar 25, 2015 10:15 am
Re: PXO_InputField
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?
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?
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PXO_InputField
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
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
-
- User
- Posts: 83
- Joined: Wed Mar 25, 2015 10:15 am
Re: PXO_InputField
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)
I have some numbers that are very frequently are miss translated:
1 instead of 7 (see attachment 1)
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PXO_InputField
Hello Tom,
There are no training tools available for our OCR currently - sorry.
Numbers are indeed quite tricky with some fonts.
Regards,
Stefan
There are no training tools available for our OCR currently - sorry.
Numbers are indeed quite tricky with some fonts.
Regards,
Stefan