Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb
Overview
Config for Document OCR.
Instance Attribute Summary collapse
-
#enable_native_pdf_parsing ⇒ Boolean
(also: #enable_native_pdf_parsing?)
Enables special handling for PDFs with existing text information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3OcrConfig
constructor
A new instance of GoogleCloudDocumentaiV1beta3OcrConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3OcrConfig
Returns a new instance of GoogleCloudDocumentaiV1beta3OcrConfig.
8433 8434 8435 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_native_pdf_parsing ⇒ Boolean Also known as: enable_native_pdf_parsing?
Enables special handling for PDFs with existing text information. Results in
better text extraction quality in such PDF inputs.
Corresponds to the JSON property enableNativePdfParsing
8430 8431 8432 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8430 def enable_native_pdf_parsing @enable_native_pdf_parsing end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8438 8439 8440 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8438 def update!(**args) @enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing) end |