How to disable default class assignation

If the user will load an image, that contains dummy data FlexiCapture will assign the default class. This article will show how to avoid this assignation.

Step-by-step guide

  1. First of all add Classification script: 
    IClassificationResult result = Classifiers[0].ClassifyPage( Page);
    Page.Document.Properties.Set("ConfidentProp", result.IsConfident?"1":"0");
  2.  Now in Event Before Matching we are using the following script:
    if(Document.Properties.Get("ConfidentProp")=="0")
      Matching.DefinitionsList=null;

Related articles

  1. https://help.abbyy.com/en-us/flexicapture/12/developer/script_classification
  2. https://help.abbyy.com/en-us/flexicapture/12/developer/iexportimagetools

 

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