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
imageImageBufferThe decoded image buffer to run OCR on. Must not be
null.namestringA display name for the image. Defaults to
"untitled".languagesIList<Language>Optional list of languages for OCR recognition. When
null, the engine default is used.enableOrientationDetectionbool?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);