Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3OcrConfig

Returns a new instance of GoogleCloudDocumentaiV1beta3OcrConfig.



8570
8571
8572
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8570

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#advanced_ocr_optionsArray<String>

A list of advanced OCR options to further fine-tune OCR behavior. Corresponds to the JSON property advancedOcrOptions

Returns:

  • (Array<String>)


8561
8562
8563
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8561

def advanced_ocr_options
  @advanced_ocr_options
end

#enable_native_pdf_parsingBoolean 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

Returns:

  • (Boolean)


8567
8568
8569
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8567

def enable_native_pdf_parsing
  @enable_native_pdf_parsing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8575
8576
8577
8578
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8575

def update!(**args)
  @advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
  @enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
end