Document AI V1 API - Class Google::Cloud::DocumentAI::V1::OcrConfig::Hints (v0.15.0)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::OcrConfig::Hints.

Hints for OCR Engine

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#language_hints

def language_hints() -> ::Array<::String>
Returns
  • (::Array<::String>) — List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting 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).

#language_hints=

def language_hints=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting 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).
Returns
  • (::Array<::String>) — List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting 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).