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

Engine

03.07.2024 8:50:10

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.