Table of Contents

Method SmartBinarize

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

SmartBinarize()

Converts the image to a clean black-and-white representation optimized for OCR and text extraction. Uses layout analysis to adapt to varying document conditions.

public ImageBuffer SmartBinarize()

Returns

ImageBuffer

A new ImageBuffer in BINARY1 format where foreground pixels are 0 (black) and background pixels are 1 (white).

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

Share