English (English)

Sample 4. Step 9.1: Total Amount name, kwTotal element

This field name occurs on the images as "Total Chf", "Carried Over", or "Total". It is located below the table (this constraint has already been specifies for the SumGroup element) and always occurs on the last page.

To create a kwTotal element:

  1. In the SumGroup element, create an element of type Static Text and name it kwTotal.
  2. Click the Static Text. tab.
  3. In the Search text field, specify the text to search: TotalChf|CarriedOver|Total.
  4. Set Max error percentage to 20.
  5. Click the Search Constraints tab and limit the search area to the last page:
    • Select Absolute search area constraints
    • In the Pages field, select Last from the drop-down list
    • Do not select any other options
    • Click the Add button. The search area will appear in the Search areas list

      Show me...

  1. Click the Advanced tab.
  2. Among the many detected elements that contain the specified text, we must select the one that is located closest to the bottom boundary of the table. This location allows us to influence the quality of the hypotheses. In Advanced post-search relations specify additional parameters for the hypothesis:If a non-null hypothesis has been generated, calculate the distance between the upper boundary of the detected element and the bottom boundary of the last table detected in the document. Then check if this distance belongs to the specified fuzzy interval.In the FlexiLayout language, this condition can be written as follows:
    If not IsNull then
    { FuzzyQuality: Top - InvoiceTable.LastSubTable.Body.Rect.Bottom, {0,0,0, 50000}*dt;
    }
    //This check means that the greater the distance between the boundaries, the greater the penalty coefficient

25.05.2023 7:55:03

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.