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
imageImageBufferThe decoded image buffer to run OCR on. Must not be
null.namestringA display name for the image. Defaults to
"untitled".
Examples
var parameters = new OcrParameters(imageBuffer, name: "receipt.png");
OcrResult result = await myOcrEngine.RunAsync(parameters);