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