AutoDeskrew issue ?

Discussions about image processing and document imaging.
Post Reply
User avatar
m.cordini
Posts: 20
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )
Contact:

AutoDeskrew issue ?

Post by m.cordini » Wed Jul 03, 2013 7:05 pm

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.
Attachments
invoice.tif
the invoice to process
invoice.tif (877.3 KiB) Viewed 5093 times
template.tif
the template with the anchor
template.tif (789.29 KiB) Viewed 5093 times

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: AutoDeskrew issue ?

Post by SamiKharma » Thu Jul 04, 2013 9:52 am

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

User avatar
m.cordini
Posts: 20
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )
Contact:

Re: AutoDeskrew issue ?

Post by m.cordini » Mon Jul 08, 2013 10:24 am

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 :-)

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: AutoDeskrew issue ?

Post by SamiKharma » Mon Jul 08, 2013 10:46 am

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

User avatar
m.cordini
Posts: 20
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )
Contact:

Re: AutoDeskrew issue ?

Post by m.cordini » Tue Jul 09, 2013 5:47 pm

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
Attachments
invoice2.tiff
invoice2
invoice2.tiff (880.18 KiB) Viewed 5068 times

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: AutoDeskrew issue ?

Post by SamiKharma » Thu Jul 11, 2013 10:07 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest