TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Re: Re: Detecting and discarding blank pages

Forums › TWAIN Classic › Detecting and discarding blank pages › Re: Re: Detecting and discarding blank pages

June 27, 2012 at 12:44 am #23176
Amil
Participant
  • Topics - 0
  • Replies - 6
  • Total Posts - 6

I know this is several years after your post, but I will post anyways (for future searchers).

First of all, according to the latest twain.h and TWAIN 2.1 spec, ICAP_AUTODISCARDBLANKPAGES was added (readded?) in TWAIN 2.0.

My Fujitsu 5120c also claims to support ICAP_AUTODISCARDBLANKPAGES, but it does not work because I am using an older TWAIN 1.7 DLL (even though setting it to TWBP_AUTO does not cause TWAIN to complain).

Thus, the only solution for my application is to analyze the sheet image to determine whether it is blank or not. Since I am working in black-and-white (1bpp), all I do is count the percentage of black pixels in the image. If it is above 1.5%, I consider the sheet not blank. This threshold value will differ based on the types of sheets you are scanning (3-5% for my sheets).

-Amil
http://www.amilkhanzada.com/

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in