Google Cloud Discovery Engine V1 Client - Class OcrParsingConfig (1.2.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class OcrParsingConfig.

The OCR parsing configurations for documents.

Generated from protobuf message google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ DocumentProcessingConfig \ ParsingConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enhanced_document_elements array

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

↳ use_native_text bool

If true, will use native text instead of OCR text on pages containing native text.

getEnhancedDocumentElements

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEnhancedDocumentElements

[DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to layout_parsing_config.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getUseNativeText

If true, will use native text instead of OCR text on pages containing native text.

Returns
Type Description
bool

setUseNativeText

If true, will use native text instead of OCR text on pages containing native text.

Parameter
Name Description
var bool
Returns
Type Description
$this