Generic document field.

Hierarchy (view full)

Constructors

Properties

confidenceWeight: number

Confidence weight.

Default is 1.0

image: null | ImageRef

Crop of the field.

parsedData: FieldParsedData[]

Parsed data.

polygonInRoot: Point[]

Coordinates of the field in the root document coordinate system.

type: FieldType

The type of the field.

validationStatus: FieldValidationStatus

Field validation status. Applicable only to fields that support some kind of validation.

Default is NONE

value: null | OcrResult

Value of the field. Applicable only to text fields.

Methods

  • Returns Promise<void>

  • Returns void

  • Parameters

    Returns Promise<{
        confidenceWeight?: number;
        image?: null | {
            buffer: undefined | string;
            uniqueId?: string;
            clear?: any;
            clone?: any;
            encodeImage?: any;
            encodeInPlace?: any;
            hibernate?: any;
            info?: any;
            isRetained?: any;
            release?: any;
            retain?: any;
            saveImage?: any;
            serialize?: any;
        };
        parsedData?: (undefined | {
            type?: FieldDataFormat;
            value?: string;
            serialize?: any;
        })[];
        polygonInRoot?: (undefined | {
            x?: number;
            y?: number;
        })[];
        type?: {
            commonType?: null | CommonFieldType;
            fullName?: string;
            listIndex?: null | number;
            name?: string;
            normalizedName?: string;
            serialize?: any;
        };
        validationStatus?: FieldValidationStatus;
        value?: null | {
            confidence?: number;
            text?: string;
            serialize?: any;
        };
        encodeImages?: any;
        release?: any;
        serialize?: any;
    }>