语法
C++
C#
Visual Basic .NET
参数
- Windows: C:\pattern.ptn
- Linux: /home/user/Documents/Patterns/pattern.ptn
- macOS: /Users/user/Documents/pattern.ptn
返回值
备注
- 用户模式文件用于指定若干组“字符图像—字符本身”的配对。用户模式可在识别过程中用于识别非标准字体的字符。要在识别期间使用用户模式,请在 IRecognizerParams::UserPatternsFile 属性中指定其路径。
- 在 Linux 上,可使用 引擎 对象的 TrainUserPattern 方法训练用户模式。
- 在 Windows 上,可通过 IEngine::EditUserPattern 方法编辑用户模式,也可以在识别过程中进行训练。请参见 通过训练进行识别。
- 仅当许可证支持 用户模式训练 模块时,此方法才可用。
- CJK 语言 不支持模式训练。
