Table of Contents

Constructor OcrParameters

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

OcrParameters(ImageBuffer, string)

Initializes a new instance of the OcrParameters class with the specified image and an optional display name.

public OcrParameters(ImageBuffer image, string name = "untitled")

Parameters

image ImageBuffer

The decoded image buffer to run OCR on. Must not be null.

name string

A display name for the image. Defaults to "untitled".

Examples

var parameters = new OcrParameters(imageBuffer, name: "receipt.png");
OcrResult result = await myOcrEngine.RunAsync(parameters);
Share