Documentation

Inference
in package

AbstractYes

Base Inference class for all predictions.

Table of Contents

Properties

$endpointName  : string
$endpointVersion  : string
$isRotationApplied  : bool|null
$pageId  : int|null
$pages  : array<string|int, mixed>
$prediction  : Prediction
$product  : Product

Methods

__construct()  : mixed
__toString()  : string

Properties

$endpointName

public static string $endpointName

Name of the product's endpoint.

$endpointVersion

public static string $endpointVersion

Version of the product's endpoint.

$isRotationApplied

public bool|null $isRotationApplied

Whether the document has had any rotation applied to it.

$pageId

public int|null $pageId

Optional page id for page-level predictions.

$pages

public array<string|int, mixed> $pages

A document's pages.

$product

public Product $product

Name and version of a given product, as sent back by the API.

Methods

__construct()

public __construct(array<string|int, mixed> $rawInference[, int|null $pageId = null ]) : mixed
Parameters
$rawInference : array<string|int, mixed>

Raw inference array.

$pageId : int|null = null

Page number for multi pages document.

__toString()

public __toString() : string
Return values
string

String representation.


        
On this page

Search results