Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

How to find out a blank page

Last post 18 Dec 2007, 9:13 AM by cwang. 4 replies.
Sort Posts: Previous Next
  •  07 Feb 2007, 11:20 PM 11404

    How to find out a blank page

    Hi

    I'm scanning the documents and viewing the pages in the dotimage Workspaceviewer. If i scan a blank page how to recognize the blank page in order to delete that page. can any one suggest.

    GRK

    Filed under:
  •  08 Feb 2007, 9:44 AM 11406 in reply to 11404

    Re: How to find out a blank page

    AdvancedDocClean has the functionality. Please use BlankPageDetectionCommand and BlankPageDetectionResults. Sample codes are as below:

    BlankPageDetectionCommand cmd = new BlankPageDetectionCommand();
    cmd.SpeedFactor = RunSpeed.Fast; // Choose one among Normal, Fast, Faster, Fastest
    cmd.MinObjectSize = new Size(30, 30); // noises of which size smaller then MinObjectSize will be ignored
    BlankPageDetectionResults res = (BlankPageDetectionResults)cmd.Apply(image);

    then the boolean res.IsImageBlank will tells you whether the page is blank or not.

  •  09 Feb 2007, 5:35 AM 11411 in reply to 11406

    Re: How to find out a blank page

    hi seung,

       I found the code useful for removing the blank pages but unfortunately we haven't buyed the license for the dotImage.AdvancedDocClean.dll. I have licenses only for dotImage,dotTwain .Thanks anyway for your immediate reply.

    -regards

    GRK

  •  09 Feb 2007, 4:48 PM 11424 in reply to 11411

    Re: How to find out a blank page

    The Advanced Document Clean Up method for finding blank pages works really great, but there is another way.  You can simply do a histogram analysis of the image and see how many colors come back.  Check out the KB which explains this method.

    http://www.atalasoft.com/kb/article.aspx?id=10050&cNode=

    This method is no where near as accurate as the ADC method, but it provides a good guess.


    Sean McKenna
    Atalasoft Development Team
  •  18 Dec 2007, 9:13 AM 12889 in reply to 11424

    Re: How to find out a blank page

    I used the BlankPageDetection command as suggested. It works with images scanned in with pixeltype set to "Color". But with pixeltype set to "BlackAndWhite", it fails to detect blank page. I guess this is because of the borders came back with "BlackAndWhite" scanning. So I set the RegionOfInterest -- to apply the BlankPageDetection to the center of a image, it doesn't make any difference. Any suggestions? 
View as RSS news feed in XML