Table of Contents

Property EnableDespeckle

Namespace
LMKit.Extraction.Ocr
Assembly
LM-Kit.NET.dll

EnableDespeckle

Gets or sets a value indicating whether speckle noise removal is applied to the binarized image before OCR recognition.

public bool EnableDespeckle { get; set; }

Property Value

bool

true to remove small isolated foreground components (scanner debris, photocopy specks) from the binary image; false to skip despeckle filtering entirely. The default is true.

Remarks

Disabling this property preserves all foreground pixels in the binarized image, which can help on documents with very thin strokes (e.g., typewriter text) where the despeckle filter may incorrectly remove character fragments.

Share