Community

Manual classification with mutli-page document

Hello,

I'm  using the "manual classification" (not auto/training) but I get the right FlexiLayout applied only to the first page of documents.

I have to extract information from many different invoices and I created many FlexiLayout and document definitions. If I apply them to the invoices, all pages are recognized and information  extracted.

Inside the main project I created a batch with all the document definitions assigned and I added a classifier to detect the right document definition to use, so:

A) i created a classification project with custom rules. If I test invoices inside the classification project, all pages are assigned to the right class so the rules seems good.

B) in the main project, inside the batch type editor, I loaded the classifier in the Recognition tab and I added a custom automatic stage called "Classification" in the workflow tab, before Recognition stage.

C) I added a script to my custom "Classification" stage to detect the right definition to apply to the pages :

   IPageClassificationResult result= FCTools.ClassifyPage(Document.Pages[0]);

  Document.Properties.Set("DocumentDefinitionName", result.MatchedSections);

D)  I added a script for the event handler "Before matching" to use the detected definitions

if (Document.Properties.Has("DocumentDefinitionName"))

{

    Matching.DefinitionsList = Document.Properties.Get("DocumentDefinitionName");

}

 

If I process multi-page documents with the batch (by import profile), the right document definition is detected only for the first page with confidence level about 99% while all the next pages are not recognized and have confidence level 0. It seems that classification works only for the first page.

Can someone tell me where I'm wrong ?

Where can I download an example of project with "manual classification" ?

Note: I'm using FlexiCapture 12 Release 1 for Invoices Distributed

Thanks in advance

 

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Hello,

    To resolve this issue please connect your regional support. Send them the project, this description and some samples images.

    0

Please sign in to leave a comment.