CreateEmptyUserPattern Method of the Engine Object
This method creates an empty user pattern file (*.ptn) at the specified location.
Syntax
HRESULT CreateEmptyUserPattern( BSTR FileName );
Parameters
- FileName
- [in] This variable contains the full path to the newly created user pattern file, e.g., "/Users/user/Documents/pattern.ptn".
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
- User patterns are files that specify a number of pairs "image of a character — the character itself". User patterns may be used during recognition to identify characters of non-standard fonts. To use a user pattern during recognition, specify a path to it in the IRecognizerParams::UserPatternsFile property. User patterns may be trained using the TrainUserPattern method of the Engine object.
- Pattern training is not supported for CJK languages.
See also
7/3/2024 8:50:10 AM