Community

Add a custom column in ABBYY output file.

Hello there,

I am processing few PDF documents and where in I am extracting three fields. While processing happens in processing station for some images "Certainly Recognized Characters" can be 100% or lower than that.

What I am looking for?

In my output excel file I want that value as an additional column named as "Accuracy"

My output table should look like below.

 

Any help would be appreciated.

Thanks

Ajay

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Dmytro Bezus

    Hello Ajay,

    We've addressed the issue in the ticket, and the answer might be helpful for others in the community. That is why I would like to share it here:

    So the following steps should be applied to get the accuracy as a custom output field:

    Edit the Document Definition. Add 2 service fields and one field Quality.

     Service Field "all" - "Document recognized symbols count" 
    Service Field "bad" - "Document uncertain symbols count"

     
    And a field "Quality" with a rule.

    int all = 0;int.TryParse(Context.Field("all").Text,out all);
    int bad = 0;
    int.TryParse(Context.Field("bad").Text,out bad);
    int good = all - bad;
    Context.Text = System.Math.Round(((float)good / (float)all)*100,2)+"% "+good+" of "+all;

    Save and publish the document definition. This can not be tested in the document definition editor. A new recognition should be run.
    Here is the result:

    Kind regards,

    Dmytro

    0

Please sign in to leave a comment.