FieldPositionMixin
Mixin trait to add position information.
Table of Contents
Properties
- $boundingBox : Polygon|null
- $polygon : Polygon
Methods
- setPosition() : void
- Sets the position of a field.
Properties
$boundingBox
public
Polygon|null
$boundingBox
A right rectangle containing the word in the document.
$polygon
public
Polygon
$polygon
A polygon containing the word in the document.
Methods
setPosition()
Sets the position of a field.
protected
setPosition(array<string|int, mixed> $rawPrediction) : void
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.