I have 6 images that need to be matched to 2 templates that were created with FlexiLayou Studio 10

I am using the FlexiCapture SDK and this is the code that I am using

flexyEngine = engineLoader.Load(_abbyyEngineLicenseNumber, "");

processor = flexyEngine.CreateFlexiCaptureProcessor();

// add definitions
AddProcessorDefinitions(processor, flexyEngine, definitionPaths);

// add image for processing
processor.AddImageFile(fullImagePath);

// load all to memory
processor.PrepareProcessing();

// try to recognize receipt image
var document = processor.RecognizeNextDocument();

if (document == null)
{
    var error = processor.GetLastProcessingError();
    result.LastError = (error != null) ? error.MessageText() : "Processing error!";
}

if (document.DocumentDefinition == null)
{
    result.TemplateMatched = false;
}

else
{
    result.TemplateMatched = true;
    FillOCRresult(document,result);
}

In the AddProcessorDefinitions line if I specify a single template "template1.afl" in the definitiosPaths variable then the image is matched corretly; but if the definitiosPaths is set to two templates ("template1.afl" and "template2.afl") the same image is no longer matched

Is there something that needs to be done for this to work ? do i need to classify the documents first ?

If this is no the right forum to post this please give a link to the correct one

asked 28 May '13, 19:18

MauricioGracia's gravatar image

MauricioGracia
213

edited 28 May '13, 19:19

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×31
×17
×8
×5
×1

Asked: 28 May '13, 19:18

Seen: 1,661 times

Last updated: 28 May '13, 19:19

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal