Documentation

Ocr
in package

OCR extraction from the entire document.

Table of Contents

Properties

$mvisionV1  : MVisionV1

Methods

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

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $rawPrediction) : mixed
Parameters
$rawPrediction : 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<string|int, mixed>
Parameters
$regex : string

The regular expression to match against.

Return values
array<string|int, mixed>

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


        
On this page

Search results