# Google Cloud Document Ai V1 Client - Class PremiumFeatures (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 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` |   |