Community

IsEmpty to remove blank pages?

I would like to use the IsEmpty method in code but would like to define more properties. One of the properties I would like is the MaxBlacknessPercentage or any other properties that can help me fine tune the page removal. Here is an example of what I would like to achieve with the Abby Engine. http://knowledgebase.abbyy.com/article/1407

Thanks for you help! Below is a sample of how I am doing this.

if (!document.Pages.IsEmpty(null, recognizeParams, true) && !isBlank) {
documentPageIndicies.Add(i); _logger.DebugFormat("Page {0} is not blank.", i); } else { _logger.DebugFormat("Removing Page {0} from document.", i); }

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Natalia Karaseva

    Hi,

    The IFRPage::IsEmpty method from your code snippet is not connected with MaxBlacknessPercentage property.

    The empty pages detection was improved in last release of ABBYY FineReader Engine 11. Namely, new method IsEmptyEx was added:

    IFRPage::IsEmptyEx(objectsExtractionParams, recognizerParams, emptyPageDetectionParams);
    

    This method allows you to specify additional parameters during empty page detection, such as IEmptyPageDetectionParams::MaxBlackPercentage or IEmptyPageDetectionParams::MaxTextObjects.

    1
  • Avatar
    John Misuraca

    That's awesome. Working my way through the channels to get a login so I can download Release 3.

    0

Please sign in to leave a comment.