How to automatically remove almost blank pages in FlexiCapture 12?


How to automatically remove "almost" blank pages?


Use script stage in the workflow to check the page blackness percentage and delete the pages with the blackness percentage value less than certain threshold.

1. In the batch type settings, switch to "Advanced" workflow scheme and add a custom automatic script step right after the recognition:

​2. Add the following script:

foreach (IDocument document in Batch.Documents)
    foreach (IPage page in document.Pages)
    IPictureObjectsInfo buf = page.Picture.AnalyzePageObjects();
        if (buf.BlacknessPercentage <=2)

Make sure to use it for a batch processing:

3. If the page was not deleted, try to raise the value: buf.BlacknessPercentage <= 2​

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.