class Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage
Detected language for a structural component.
Attributes
confidence[RW]
Confidence of detected language. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]
language_code[RW]
The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see www.unicode.org/reports/tr35/#Unicode_locale_identifier. Corresponds to the JSON property `languageCode` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 2685 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/vision_v1/classes.rb, line 2690 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @language_code = args[:language_code] if args.key?(:language_code) end