Skip to main content
The name of the Invoice Number field occurs on all the images and distinguishes this document type from others. When processing semi-structured documents in ABBYY FlexiCapture, avoid accidental recognition of documents that do not belong to the selected type. One way to identify a document is to create at least one required element. Mark this element as required, and use it as an identifier for this document type. On some images this name is written as Invoice No., and on others as Credit note no. The search string must include both variants. Specify each string without spaces, so the maximum number of errors applies to the entire phrase, not to separate words.

Create the kwInvoiceNumber element

1

Create the Static Text element

In the InvoiceHeader element, create a Static Text element and name it kwInvoiceNumber.
2

Mark the element as required

On the General tab, select Required element.
3

Enter the search text

Click the Static Text tab. In the Search text field, enter InvoiceNo.|CreditNoteNo.
4

Set the error tolerance

Set Max error percentage to 20.
5

Set the location relation

Click the Relations tab. The keywords of the Invoice Number field name can occur only below the Delivery Address field name, so set this relation:
  • Below the InvoiceHeader.kwDeliveryAddress element, Offset = 0
Screenshot of the Relations tab of the Properties of SearchElements.InvoiceHeader.StaticText dialog box in ABBYY FlexiLayout Studio, showing a Below relation to the kwDeliveryAddress element.
6

Add the search-area constraint

Click the Advanced tab. Since the Delivery Address field is in the upper third and in the left third of the image, set this additional search constraint in the Advanced pre-search relations field: look for the object in the left third of the image and in the upper third of the image. In the FlexiLayout language:
7

Verify the match

Match the FlexiLayout with the test images and confirm that FlexiLayout Studio detects the element on all the images.
If a field name is worded differently from image to image, specify all the possible variants, or at least the majority of them. To learn the possible variants for this document type, ask for more test images or contact your customer.