Documentation

OcrWord
in package
implements Stringable uses FieldPositionMixin

A single word.

Table of Contents

Interfaces

Stringable

Properties

$boundingBox  : Polygon|null
$confidence  : float
$polygon  : Polygon
$text  : string

Methods

__construct()  : mixed
__toString()  : string
setPosition()  : void
Sets the position of a field.

Properties

$confidence

public float $confidence

The confidence score.

$text

public string $text

The extracted text.

Methods

__construct()

public __construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : mixed
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

__toString()

public __toString() : string
Return values
string

String representation.

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