AutoDeskrew issue ?
AutoDeskrew issue ?
Hi guys,
we have an invoice document acquired from a scanner that we need to process. We have to read all the barcode and it works fine, but we can't read from IMBALLI RESI table (via OMR).
We have a Template and we set the anchor to CLIENTE, we find the anchor on the invoice, but the AutoDeskrew method seems to do nothing, so all the X,Y coordinates are wrong (the offset from the anchor is very small, but the invoice is like the Torre di Pisa!)
Any hints ?
TY.
we have an invoice document acquired from a scanner that we need to process. We have to read all the barcode and it works fine, but we can't read from IMBALLI RESI table (via OMR).
We have a Template and we set the anchor to CLIENTE, we find the anchor on the invoice, but the AutoDeskrew method seems to do nothing, so all the X,Y coordinates are wrong (the offset from the anchor is very small, but the invoice is like the Torre di Pisa!)
Any hints ?
TY.
- Attachments
-
- the invoice to process
- invoice.tif (877.3 KiB) Viewed 5174 times
-
- the template with the anchor
- template.tif (789.29 KiB) Viewed 5174 times
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: AutoDeskrew issue ?
Hi,
Actually it is the other way around.
I called AutoDeskew on invoice.tif, them I checked the deviation, and it was perfectly aligned.
The Template image how ever is not. You can check the left positions of the big table at the top and the bottom and you can verify that.
Your template image should be perfectly scanned, as all other images and data depend on it as a frame of reference.
Hope this helps.
Sami
Actually it is the other way around.
I called AutoDeskew on invoice.tif, them I checked the deviation, and it was perfectly aligned.
The Template image how ever is not. You can check the left positions of the big table at the top and the bottom and you can verify that.
Your template image should be perfectly scanned, as all other images and data depend on it as a frame of reference.
Hope this helps.
Sami
Re: AutoDeskrew issue ?
Mhhh ... maybe I don't undestand something but if I open the invoice tif, apply the AutoDeskew method and then save it the 2 files are identical (but the image scanned is not alligned!).
For the template you are right, but If i move the anchor from CLIENTE to IMBALLI RESI it' works better
For the template you are right, but If i move the anchor from CLIENTE to IMBALLI RESI it' works better
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: AutoDeskrew issue ?
Hi,
>>Mhhh ... maybe I don't undestand something but if I open the invoice tif, apply the AutoDeskew method and then save it the 2 files are identical (but the image scanned is not alligned!).
I have tried the above with the latest available and the image is correctly deskewed to the appropriate position. You can try downloading the latest V9 and checking.
Best,
Sami
>>Mhhh ... maybe I don't undestand something but if I open the invoice tif, apply the AutoDeskew method and then save it the 2 files are identical (but the image scanned is not alligned!).
I have tried the above with the latest available and the image is correctly deskewed to the appropriate position. You can try downloading the latest V9 and checking.
Best,
Sami
Re: AutoDeskrew issue ?
You're right with invoice, but why template isn't deskrewed ?
I attached an invoice2 that is not deskrewed too.
If I'm doing right, my steps are:
1. read the template
2. find the anchor
3. set the offset to the rectangles array to be readed
4. load the invoice
5. apply autodeskrew
6. run omr
I attached an invoice2 that is not deskrewed too.
If I'm doing right, my steps are:
1. read the template
2. find the anchor
3. set the offset to the rectangles array to be readed
4. load the invoice
5. apply autodeskrew
6. run omr
- Attachments
-
- invoice2
- invoice2.tiff (880.18 KiB) Viewed 5149 times
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: AutoDeskrew issue ?
Hi,
The steps in OMR should be:
1. Select Anchor and OMR rectangles on template
2. Load invoice
3. Search for Anchor on invoice
4. Translate OMR rectangles by amount of difference between anchor found invoice and anchor selected on template
5. Do OMR on anchor.
As you can see, we do not advise you do AutoDeskew in OMR, this has to do with stretch of the images at the scanning stage, and as you can see the results are not guaranteed, rendering the OMR process uneventful. This is a global document imaging problem and not specifically related to GdPicture.
Best,
Sami
The steps in OMR should be:
1. Select Anchor and OMR rectangles on template
2. Load invoice
3. Search for Anchor on invoice
4. Translate OMR rectangles by amount of difference between anchor found invoice and anchor selected on template
5. Do OMR on anchor.
As you can see, we do not advise you do AutoDeskew in OMR, this has to do with stretch of the images at the scanning stage, and as you can see the results are not guaranteed, rendering the OMR process uneventful. This is a global document imaging problem and not specifically related to GdPicture.
Best,
Sami
Who is online
Users browsing this forum: No registered users and 1 guest