Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, January 22, 2007 10:35:39 AM(UTC)
dsubryan

Groups: Registered
Posts: 15


Hello,

I am currently using Leadtools Raster Imaging 14.5 for .NET.  I have a question about the software.  If I receive a file that is in TIF format, that has multiple pages, is there a way using raster imaging pro sdk to tell if there is a blank page in the fax? 

I am not familiar with the image analyzing functions of the product.

Thanks,
David

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, January 23, 2007 12:31:06 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Hello David,

To detect an empty page, one way to do that
is to calculate the ratio of white pixels to total image pixels, and if
it's above a certain threshold value, consider it empty. Ideally, the
threshold should be very close or equal to 100%, but you always get some noise when scanning real pages.

You can check the attached VB.NET sample demonstrates how to detect a blank page using LEADTOOLS .NET.
File Attachment(s):
DetectBlankPage.zip (28kb) downloaded 26 time(s).
 
#3 Posted : Tuesday, January 23, 2007 10:41:45 AM(UTC)
dsubryan

Groups: Registered
Posts: 15


Thank you for the quick response.  This tool works fine with the first image loaded in the TIFF file.  However what if the TIFF file contains multiple images.  Is there a way to traverse through the TIFF file using leadtools?

Thanks,
David

 
#4 Posted : Thursday, January 25, 2007 5:42:20 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Hello David,


You can navigate through pages by changing the page index in the RasterImage.Page Property. For example to view next page in a multiple page image, you can
increment the Page property by 1 then try to detect if this is a blank image or not. The range for this property is from 1 to RasterImage.PageCount.

 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.115 seconds.