LEADTOOLS Support
Document
Document SDK Questions
How to use AutoPreprocess to Autoorient Forms
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 31, 2008 5:55:19 AM(UTC)
Groups: Registered
Posts: 4
I need to read in a multi-page tif image, use AutoPreProcess to orient each page correctly (for use with OCR software later), and then save it back to its original location. No need to view image at all at this point. Does anyone have an example, (either VB or C#) that will help get me started.
#2
Posted
:
Wednesday, December 31, 2008 6:41:22 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
IOcrPage.AutoPreprocess is designed to simplify the preprocessing code before you do OCR. If you don't plan on doing any OCR, then you can get the image back using the IOcrPage.GetRasterImage function and then use RasterCodecs.Save to save the image back out to disk.
The .NET help file has an example of how to each of these functions.
#3
Posted
:
Thursday, January 8, 2009 6:11:28 AM(UTC)
Groups: Registered
Posts: 4
I don't just need to get the image and write it back to disk, which would be what I could do with the 2 functions you suggested. When I write it back to disk, it needs to be oriented correctly. I need to take a whole batch of multi-page tiff images, already on disk, AUTOORIENT them based on the direction of the print on each page, and then write them back to disk. All without any user interaction. IOcrPage.AutoPreprocess not what I need for this?
#4
Posted
:
Friday, January 9, 2009 9:39:50 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
AutoPreprocess will do what you need. But it only does it on the images loaded into the IOcrPage object. Therefore, to save it to disk, you need to use the IOcrPage.GetRasterImage and RasterCodecs.Save methods.
LEADTOOLS Support
Document
Document SDK Questions
How to use AutoPreprocess to Autoorient Forms
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.