Property EnableSmartBinarization
- Namespace
- LMKit.Extraction.Ocr
- Assembly
- LM-Kit.NET.dll
EnableSmartBinarization
Gets or sets a value indicating whether adaptive (smart) binarization is used to convert the input image to a binary (black-and-white) representation.
public bool EnableSmartBinarization { get; set; }
Property Value
- bool
trueto use adaptive thresholding that handles uneven lighting and varying contrast across the page;falseto use a simple global Otsu threshold. The default istrue.
Remarks
Smart binarization produces better results on photographed documents and pages with shadows or gradients. Disabling it may be useful for already clean, high-contrast scans where global thresholding is sufficient.