Preset of parameters for custom binarization filter.
PRESET_1:
Very fast, performs well if there are no shadows.
PRESET_2:
Performs well even if there are shadows. Binarized barcodes typically remain readable.
PRESET_3:
Performs well even if there are shadows.
PRESET_4:
Performs well even if there are shadows. Recommended for most use cases involving text documents.
PRESET_5:
Performs well even if there are shadows.
The preset is an upgrade to PRESET_4 that adds special treatment for high contrast objects such as barcodes.
Binarized barcodes typically remain readable.
Preset of parameters for custom binarization filter.
PRESET_1
: Very fast, performs well if there are no shadows.PRESET_2
: Performs well even if there are shadows. Binarized barcodes typically remain readable.PRESET_3
: Performs well even if there are shadows.PRESET_4
: Performs well even if there are shadows. Recommended for most use cases involving text documents.PRESET_5
: Performs well even if there are shadows. The preset is an upgrade to PRESET_4 that adds special treatment for high contrast objects such as barcodes. Binarized barcodes typically remain readable.