Table of Contents

Constructor OcrParameters

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

OcrParameters(ImageBuffer, string, IList<Language>, bool?)

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

public OcrParameters(ImageBuffer image, string name = "untitled", IList<Language> languages = null, bool? enableOrientationDetection = null)

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".

languages IList<Language>

Optional list of languages for OCR recognition. When null, the engine default is used.

enableOrientationDetection bool?

Optional override for orientation detection. When null, the engine default is used.

Examples

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