Google Cloud Document Ai V1 Client - Class PremiumFeatures (1.14.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
Name Description
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
Type Description
bool

setEnableSelectionMarkDetection

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

Parameter
Name Description
var bool
Returns
Type Description
$this

getComputeStyleInfo

Turn on font identification model and return font style information.

Returns
Type Description
bool

setComputeStyleInfo

Turn on font identification model and return font style information.

Parameter
Name Description
var bool
Returns
Type Description
$this

getEnableMathOcr

Turn on the model that can extract LaTeX math formulas.

Returns
Type Description
bool

setEnableMathOcr

Turn on the model that can extract LaTeX math formulas.

Parameter
Name Description
var bool
Returns
Type Description
$this