TrainUserPattern Method of the Engine Object

This method allows you to perform pattern training. The method adds new pairs "a character image — the character itself" to the specified pattern.



HRESULT TrainUserPattern(
  BSTR                       FileName,
  ITrainingImagesCollection* TrainingImages,
  BSTR                       CharacterOrLigature,
  int                        Flags,
  TextTypeEnum               TextType


void TrainUserPattern(
  string                   FileName,
  ITrainingImagesCollection TrainingImages,
  string                   CharacterOrLigature,
  int                      Flags,
  TextTypeEnum             TextType

Visual Basic .NET

Sub TrainUserPattern( _
  FileName As String, _
  TrainingImages As ITrainingImagesCollection, _
  CharacterOrLigature As String, _
  Flags As Integer, _
  TextType As TextTypeEnum _


[in] This variable specifies the path to the user pattern file.
[in] This variable refers to the TrainingImagesCollection object that stores a collection of character images.
[in] This variable specifies the character which is represented by the collection of images.
[in] This parameter contains a bitwise OR combination of the UPTF_ prefixed flags which specifies the character attributes.
[in] This parameter specifies the text type of the character using the TextTypeEnum enumeration constant.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also


Recognizing with Training

24.03.2023 8:51:52

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.