A field containing a text value.

Hierarchy (view full)

Constructors

Properties

boundingBox: BoundingBox

Contains exactly 4 relative vertices coordinates (points) of a right rectangle containing the field in the document.

confidence: number

The confidence score of the prediction.

pageId?: number

Page ID for multi-page document.

polygon: Polygon = []

Contains the relative vertices coordinates (points) of a polygon containing the field in the document.

rawValue?: string

Value as it appears on the document.

reconstructed: boolean

true when the field was reconstructed or computed using other fields.

value?: string

The value.

Methods

  • Parameters

    • array1: Field[]

      first Array of Fields

    • array2: Field[]

      second Array of Fields

    • attr: string = "value"

      Attribute to compare

    Returns boolean

    true if all elements in array1 exist in array2 and vice-versa, false otherwise