Page 1 of 1

Deskew & ROI relationship

Posted: Sat Feb 11, 2017 2:06 pm
by stammd
If I deskew an image do I also need to correct any ROI used by my code? Or should I expect that a pure skew error would not impact the ROI that I might be targeting?

It appears that the deskew method changes the image passed in the call and does not create a new image. Is this correct?

Thus any any OCR/ROI operations on the deskewed image would not require me to use a new image created from the deskew method.

Re: Deskew & ROI relationship

Posted: Tue Feb 14, 2017 2:57 pm
by David
Hi,

Thank you for your interest in Orpalis'technologies.

If scanned document is slightly oblique, as it is usual for scanned documents, the deskew functionality corrects the angle introduced during the scanning process. The AutoDeskew method auto-rotates a GdPicture image by the skew angle, which is circa 15 degrees in both directions.

https://www.gdpicture.com/guides/gdpicture/web ... nt32).html

As the image is rotated, it's content is moved and the region of interest should be adapted accordingly. I confirm no new image is created.

Regards,

David