LEADTOOLS Support
Imaging
Imaging SDK Questions
Advice on re-position scanned image less than A4 Size
#1
Posted
:
Wednesday, May 30, 2018 4:42:52 AM(UTC)
Groups: Registered
Posts: 4
Thanks: 2 times
We encounter a business use case that users will scan some receipts less than A4 size, however, due to operation limitation, the scanned image will be in A4 size, there is no auto paper size or auto-cropped.
The user may put the receipt in different region of the flatbed scanner, so the receipt image may be offset with varied distance from top-left corner of A4.
We are looking into some directions that can detect the receipt in A4 image and transform the receipt in the top-left corner for ensuing operations.
Any idea or suggestion is much appreciated, thanks in advance.
#2
Posted
:
Thursday, May 31, 2018 9:47:46 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 63
Thanks: 2 times
Was thanked: 4 time(s) in 4 post(s)
Our Image Processing library contains the AutoCropCommand class which allows you to automatically trim excess blank space from images. I believe you could utilize this class to isolate your receipt data from a large A4 sized image. This class also contains the Threshold property that allows you to customize the intensity of this detection rate. If you navigate to the link below, you'll find a link to our documentations page which also contains example code.
AutoCropCommand Class:
https://www.leadtools.com/help/leadtools/v20/dh/po/autocropcommand.htmlAdditionally, you can test this command out within our Main demo. If you have our SDK installed, the demo should be at a path similar to the one below. Once this demo is open, navigate to the "Image" menu bar and select the "Auto Trim" menu bar item.
C:\LEADTOOLS 20\Examples\DotNet\CS\MainDemo
Joe Zhan
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Sunday, June 3, 2018 10:11:19 PM(UTC)
Groups: Registered
Posts: 4
Thanks: 2 times
@Joe Z Should be helpful in our case, we will test the real outcome. Thanks for the advice.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Advice on re-position scanned image less than A4 Size
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.