Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
The OCR options for parsing documents.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Required.
-
#enhanced_document_elements ⇒ Array<String>
Apply additional enhanced OCR processing to a list of document elements.
-
#use_native_text ⇒ Boolean
(also: #use_native_text?)
If true, will use native text instead of OCR text on pages containing native text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaOcrConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaOcrConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaOcrConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaOcrConfig.
1805 1806 1807 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1805 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig
options to apply.
Corresponds to the JSON property enabled
1789 1790 1791 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1789 def enabled @enabled end |
#enhanced_document_elements ⇒ Array<String>
Apply additional enhanced OCR processing to a list of document elements.
Supported values: * table: advanced table parsing model.
Corresponds to the JSON property enhancedDocumentElements
1796 1797 1798 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1796 def enhanced_document_elements @enhanced_document_elements end |
#use_native_text ⇒ Boolean Also known as: use_native_text?
If true, will use native text instead of OCR text on pages containing native
text.
Corresponds to the JSON property useNativeText
1802 1803 1804 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1802 def use_native_text @use_native_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1810 1811 1812 1813 1814 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1810 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements) @use_native_text = args[:use_native_text] if args.key?(:use_native_text) end |