How to use Patterns Training utility

Question

How to enable Patterns Training utility?

Answer

In order to enable User Pattern Training Utility the following steps should be performed:

IRecognizerParams recognizerParams = engine.CreateRecognizerParams();
recognizerParams.SetPredefinedTextLanguage("German");
recognizerParams.setTrainUserPatterns(true);
String patternPath = "C:\\pathToFile\\pattern.ptn";
engine.CreateEmptyUserPattern(patternPath);
recognizerParams.setUserPatternsFile(patternPath);

IPageProcessingParams pageProcessingParams = engine.CreatePageProcessingParams();
pageProcessingParams.setRecognizerParams(recognizerParams);

IDocumentProcessingParams processingParams = engine.CreateDocumentProcessingParams();
processingParams.setPageProcessingParams(pageProcessingParams);

document.Process(processingParams);

Additional information

Recognition with Pattern Training

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed