额外继承的成员函数 | |
Public 成员函数 继承自 ILFontDatabase | |
| void | AddOCRChar (ILOCRChar *charData, LString charString) |
| void | AddOCRLine (ILOCRLine *lineData, LString lineString) |
| void | AddOCRResult (ILOCRResult *resultData, LString resultString) |
| int | CountChar () |
| ILSampleDatabase * | CreateChar (LString charString) |
| ILSampleDatabase * | GetCharDatabase (LString charString) |
| void | Init (LString fontName, LString workingDirectory) |
| BOOL | IsInMemory () |
| 是否为内存数据库,即样本文件和数据库信息不保存,只暂留在内存中。 | |
| BOOL | IsTrained () |
| LString | ItemChar (int index) |
| void | RemoveChar (LString charString) |
| LPVErrorCode | Train () |
Public 成员函数 继承自 ILObject | |
| ILObject * | Copy () |
| LPVErrorCode | Load (LString filename) |
| void | Reset () |
| LPVErrorCode | Save (LString filename) |
| BOOL | Valid () |
属性 继承自 ILFontDatabase | |
| BOOL | AutoFeature [get, set] |
| 是否在训练中开启自动特征选择和优化。默认关闭这个配置。 | |
| BOOL | AutoModel [get, set] |
| 是否在训练中开启自动模型选择和优化。默认关闭这个配置。 | |
| LPVOCRFeatures | Features [get, set] |
| 字符识别中使用的特征类型。默认为 LPVOCRFeatureDefault。 更多... | |
| LPVModelType | ModelType [get, set] |
| 字符识别中使用的机器学习模型类型 | |
| LString | Name [get] |
| 字库名称,通常为全局唯一的,用于区分和标识该字库。 | |
| LSize | PixelGrid [get, set] |
| 像素特征中使用的网格尺寸,当特征包含 LPVOCRFeaturePixel 时生效。默认为 \( 6 \times 8 \) 网格。 | |
| LPVOCRPixelProjection | PixelProjection [get, set] |
| 像素特征中使用的网格投影方式,当特征包含 LPVOCRFeaturePixel 时生效。默认配置为 LPVOCRPixelProjNone 即无投影。 | |
| LPVOCRPixelValue | PixelValue [get, set] |
| 像素特征中使用的计算网格像素值方法,当特征包含 LPVOCRFeaturePixel 时生效。 默认配置为 LPVOCRPixelGrayscaleNormalized 即归一化灰度值。 | |
| LString | WorkingDir [get] |
| 字库的工作目录。 对于持久化数据库,该工作目录用于存储样本文件和管理信息文件。对于内存数据库,该工作目录为固定的 "in-memory" 文本。 | |
该类实现了 ILFontDatabase 接口, 用于创建字符识别字库的实例