--threshold
--threshold value
Sets the threshold value for the images to be acquired. The device must support setting threshold values. Some devices do not support setting the threshold level. The --verbose option will generate a message that will inform whether setting the threshold value worked successfully or an error was encountered.
The threshold value can be any numeric value between 0 and 255, inclusive.
The threshold setting is an advanced setting that allows the device to determine the "dividing line" between black and white. The --threshold can only be used on black and white (color 0) images.
Example: Acquire a BMP image named test.bmp. The color is monochrome (black and white), and the threshold value used is 100.
twainsave --filename test.bmp --color 0 --threshold 100
Default Setting: The threshold value that the device determines as the default. Usually this is 128. |