Instantiates a new BinarizeOptions object with the specified paramaters.
Syntax
Parameters
- lowThreshold
- Controls the background sensitivity. Should generally be set as high
as possible without exceeding the brightness of any part of the background.
Min = 0, max = 255, default = 170
- highThreshold
- Controls letter and figure thickness. Black noise appearing in the background
can generally be eliminated by lowering the value of lowThreshold. Too-thick letters
and figures can generally be improved by lowering the value of highThreshold.
Too-thin letters and figures can generally be improved by raising the value of
lowThreshold and/or highThreshold.
Min = lowThreshold value, max = 255, default = 190
- preBlurType
- Controls the type of blur to apply to the image.
Default = NoBlur
- lceFactor
- Controls the sensitivity of local contrast enhancement to faint features.
Lower values yield less sensitivity.
Min = 0, max = 255, default = 0
See Also