Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigPremiumFeatures

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb
more...

Overview

Configurations for premium OCR features.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1OcrConfigPremiumFeatures

Returns a new instance of GoogleCloudDocumentaiV1OcrConfigPremiumFeatures.

[View source]

4653
4654
4655
# File 'lib/google/apis/documentai_v1/classes.rb', line 4653

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

Instance Attribute Details

#compute_style_infoBoolean Also known as: compute_style_info?

Turn on font identification model and return font style information. Corresponds to the JSON property computeStyleInfo

Returns:

  • (Boolean)

4637
4638
4639
# File 'lib/google/apis/documentai_v1/classes.rb', line 4637

def compute_style_info
  @compute_style_info
end

#enable_math_ocrBoolean Also known as: enable_math_ocr?

Turn on the model that can extract LaTeX math formulas. Corresponds to the JSON property enableMathOcr

Returns:

  • (Boolean)

4643
4644
4645
# File 'lib/google/apis/documentai_v1/classes.rb', line 4643

def enable_math_ocr
  @enable_math_ocr
end

#enable_selection_mark_detectionBoolean Also known as: enable_selection_mark_detection?

Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors. Corresponds to the JSON property enableSelectionMarkDetection

Returns:

  • (Boolean)

4650
4651
4652
# File 'lib/google/apis/documentai_v1/classes.rb', line 4650

def enable_selection_mark_detection
  @enable_selection_mark_detection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4658
4659
4660
4661
4662
# File 'lib/google/apis/documentai_v1/classes.rb', line 4658

def update!(**args)
  @compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
  @enable_math_ocr = args[:enable_math_ocr] if args.key?(:enable_math_ocr)
  @enable_selection_mark_detection = args[:enable_selection_mark_detection] if args.key?(:enable_selection_mark_detection)
end