MergePatterns Method of the Engine Object

This method merges several user pattern files into one file.

Syntax

C++

HRESULT MergePatterns(
  IStringsCollection* SourceFilesNames,
  BSTR                DestinationFileName
);
    

C#

void MergePatterns(
  IStringsCollection SourceFilesNames,
  string            DestinationFileName
);
    

Visual Basic .NET

Sub MergePatterns( _
  SourceFilesNames As IStringsCollection, _
  DestinationFileName As String _
)
    

Parameters

SourceFilesNames
[in] This variable of the StringsCollection type contains a collection of the full paths to the user pattern files that are to be merged. These files should be created by the IEngine::CreateEmptyUserPattern method or by ABBYY FineReader.
DestinationFileName
[in] This variable contains the full path to the resulting user pattern file.

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 define 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, set the path to it in the IRecognizerParams::UserPatternsFile property.

See also

Engine

CreateEmptyUserPattern

Recognizing with Training

17.09.2024 15:14:40

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.