TemplateProcessor
概述
TemplateProcessor 是 Aspose.OMR FOSS 中用于 Python 的类。
针对其创建时所使用的模板处理 OMR 图像。
此类为 Python 程序中的 TemplateProcessor 对象声明了 4 个方法。可用的方法包括:Recalculate、Recognize、RecognizeFolder、__init__。在安装 Aspose.OMR FOSS for Python 软件包后,公共成员对任何 Python 应用程序均可访问。属性:ApplyLightShadeProcessing。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
ApplyLightShadeProcessing | bool | 读取 | 获取应用浅色阴影处理。 |
方法
| 签名 | 描述 |
|---|---|
__init__(descriptor: dict, logic: FormValidationLogic) | Calls init(descriptor, logic) 在此 TemplateProcessor 实例上。 |
Recognize(source: typing.Any, recognitionThreshold: int) | 识别一个扫描表单 → RecognitionResult。 |
RecognizeFolder(folderPath: str, recognitionThreshold: int) → list | 识别文件夹中所有受支持的图像,每个都视为 INDEPENDENT 表单。 |
Recalculate(result, recognitionThreshold: int) | 在原位重新对先前的 RecognitionResult 进行重新评分,使用新的阈值, |
WITHOUT re-reading pixels (uses the cached per-bubble fill ratios). |