ListFieldValue
in package
uses
FieldPositionMixin
A single Value or word.
Table of Contents
Properties
- $boundingBox : Polygon|null
- $confidence : float|mixed
- $content : string|mixed
- $polygon : Polygon
- $pageId : int|null
Methods
- __construct() : mixed
- __toString() : string
- setPosition() : void
- Sets the position of a field.
Properties
$boundingBox
public
Polygon|null
$boundingBox
A right rectangle containing the word in the document.
$confidence
public
float|mixed
$confidence
Confidence score.
$content
public
string|mixed
$content
The content text.
$polygon
public
Polygon
$polygon
A polygon containing the word in the document.
$pageId
private
int|null
$pageId
Page number for multi pages document.
Methods
__construct()
public
__construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
- $pageId : int|null = null
-
Page number for multi pages document.
__toString()
public
__toString() : string
Return values
string —String representation.
setPosition()
Sets the position of a field.
protected
setPosition(array<string|int, mixed> $rawPrediction) : void
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.