Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1TextDetectionConfig

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

Overview

Config for TEXT_DETECTION.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1TextDetectionConfig

Returns a new instance of GoogleCloudVideointelligenceV1TextDetectionConfig.



846
847
848
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 846

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

Instance Attribute Details

#language_hintsArray<String>

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format. Automatic language detection is performed if no hint is provided. Corresponds to the JSON property languageHints

Returns:

  • (Array<String>)


837
838
839
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 837

def language_hints
  @language_hints
end

#modelString

Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". Corresponds to the JSON property model

Returns:

  • (String)


844
845
846
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 844

def model
  @model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



851
852
853
854
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 851

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