Documentation

Ocr
in package
implements Stringable

Ocr extraction from the entire document.

Table of Contents

Interfaces

Stringable

Properties

$mvisionV1  : MVisionV1

Methods

__construct()  : mixed
__toString()  : string
findLineByRegex()  : array<int, array<string|int, OcrLine>>
Finds all lines matching the given regex in the Ocr data, indexed by their page.

Properties

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

findLineByRegex()

Finds all lines matching the given regex in the Ocr data, indexed by their page.

public findLineByRegex(string $regex) : array<int, array<string|int, OcrLine>>
Parameters
$regex : string

The regular expression to match against.

Return values
array<int, array<string|int, OcrLine>>

All lines that match the regex, indexed by their page.

On this page

Search results