Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OcrParams
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OcrParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta2/classes.rb,
lib/google/apis/documentai_v1beta2/representations.rb,
lib/google/apis/documentai_v1beta2/representations.rb
Overview
Parameters to control Optical Character Recognition (OCR) behavior.
Instance Attribute Summary collapse
-
#language_hints ⇒ Array<String>
List of languages to use for OCR.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2OcrParams
constructor
A new instance of GoogleCloudDocumentaiV1beta2OcrParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2OcrParams
Returns a new instance of GoogleCloudDocumentaiV1beta2OcrParams.
7077 7078 7079 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7077 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_hints ⇒ Array<String>
List of languages to use for OCR. In most cases, an empty value yields the
best results since it enables automatic language detection. For languages
based on the Latin alphabet, setting language_hints
is not needed. In rare
cases, when the language of the text in the image is known, setting a hint
will help get better results (although it will be a significant hindrance if
the hint is wrong). Document processing returns an error if one or more of the
specified languages is not one of the supported languages.
Corresponds to the JSON property languageHints
7075 7076 7077 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7075 def language_hints @language_hints end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7082 7083 7084 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7082 def update!(**args) @language_hints = args[:language_hints] if args.key?(:language_hints) end |