Ocr
in package
OCR extraction from the entire document.
Table of Contents
Properties
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
$mvisionV1
public
MVisionV1
$mvisionV1
Mindee Vision v1 results.
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
stringfindLineByRegex()
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.