Anchor content

A template library can only contain text and barcode type anchors.

  • Text

    The anchor contains static text. It is word based with a bounding box (can be LETTER based for backward compatibility). It can only contain one-line text. It is recommended to choose anchors that consist of 2-3 words. Try to choose text not resembling any nearby text, such as Drift area. It may contain fixed text or regular expression filter. Text can be positional, reference, selector and check anchor.

  • Barcode

    The anchor contains static barcode. The barcode type must be specified. It may contain fixed text or regular expression filter. Barcode can be positional, reference, selector and check anchor.

In the case of text and barcode anchors the regular expression filter works the following way:

  • If regular expression filter is not specified:

    The anchor is found if the Levenshtein distance (minimum number of single-character edits - insertion, deletion, substitution - required to change one word into the other) of the recognized text and the anchor text is less than a given threshold. This is not a fixed threshold: it is proportional to the number of characters in the anchor.

  • If regular expression filter is specified:

    The anchor is found if the recognized text matches the regular expression.