Table of Contents

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

true to use adaptive thresholding that handles uneven lighting and varying contrast across the page; false to use a simple global Otsu threshold. The default is true.

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.

Share