Google Cloud Document Ai V1 Client - Class PremiumFeatures (1.9.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class PremiumFeatures.

Configurations for premium OCR features.

Generated from protobuf message google.cloud.documentai.v1.OcrConfig.PremiumFeatures

Namespace

Google \ Cloud \ DocumentAI \ V1 \ OcrConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enable_selection_mark_detection bool

Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.

↳ compute_style_info bool

Turn on font identification model and return font style information.

↳ enable_math_ocr bool

Turn on the model that can extract LaTeX math formulas.

getEnableSelectionMarkDetection

Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.

Returns
TypeDescription
bool

setEnableSelectionMarkDetection

Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getComputeStyleInfo

Turn on font identification model and return font style information.

Returns
TypeDescription
bool

setComputeStyleInfo

Turn on font identification model and return font style information.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEnableMathOcr

Turn on the model that can extract LaTeX math formulas.

Returns
TypeDescription
bool

setEnableMathOcr

Turn on the model that can extract LaTeX math formulas.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this