We are receiving many false positives with the IsBlank() function (no matter what confidence level we use) so we are now trying to use the scanner's built-in support for blank page detection. Unfortunately, we can not get that to work either. Here is our code:
Code: Select all
if (_pictureImaging.TwainGetState() == TwainStatus.TWAIN_SOURCE_OPEN && _pictureImaging.TwainIsAutomaticDiscardBlankPagesAvailable() && !_pictureImaging.TwainIsAutomaticDiscardBlankPagesEnabled()) _pictureImaging.TwainSetAutomaticDiscardBlankPages(true);
Any ideas/help would be appreciated!