Class TemplateProcessor
TemplateProcessor class
用于处理模板和图像的类。 此类的每个实例都使用单个 OMR 模板。 它能够识别构造函数中指定的模板的图像。
public class TemplateProcessor
方法
姓名 | 描述 |
---|---|
Recalculate(RecognitionResult, int) | 使用微调参数更新识别结果。 |
RecognizeFolder(string, int) | 识别来自 folder 的图像 |
RecognizeImage(MemoryStream, int) | 从内存流中识别图像 |
RecognizeImage(string, int) | 识别图像 |
RecognizeMultiPageTemplate(string[], int) | 识别多页模板 |
例子
OmrEngine engine = new OmrEngine();
TemplateProcessor templateProcessor = engine.GetTemplateProcessor(templatePath);
RecognitionResult result = templateProcessor.RecognizeImage(imagePath);
string csvResult = result.GetCsv();
也可以看看
- 命名空间 Aspose.OMR.Api
- 部件 Aspose.OMR