Documentation

AmountField extends BaseField
in package
uses FieldConfidenceMixin, FieldPositionMixin

A field containing an amount value.

Tags
extends

Table of Contents

Properties

$boundingBox  : Polygon|null
$confidence  : float
$pageId  : int|null
$polygon  : Polygon
$reconstructed  : bool
$value  : T|null

Methods

__compare()  : bool
Compares with the value of another field.
__construct()  : mixed
__toString()  : string
setConfidence()  : void
Sets the confidence score.
setPosition()  : void
Sets the position of a field.

Properties

$pageId

public int|null $pageId

The document page on which the information was found.

$reconstructed

public bool $reconstructed = false

$value

public T|null $value

Raw field value.

Methods

__compare()

Compares with the value of another field.

public __compare(BaseField<string|int, string|float|int|bool|Polygon$obj) : bool
Parameters
$obj : BaseField<string|int, string|float|int|bool|Polygon>

Field to compare.

Return values
bool

__construct()

public __construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction[, int|null $pageId = null ][, bool $reconstructed = false ]) : mixed
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

$pageId : int|null = null

Page number for multi pages document.

$reconstructed : bool = false

Whether the field was reconstructed.

__toString()

public __toString() : string
Return values
string

String representation.

setConfidence()

Sets the confidence score.

protected setConfidence(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

setPosition()

Sets the position of a field.

protected setPosition(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

On this page

Search results