class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Word

A word representation.

Attributes

bounding_box[RW]

A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingBox` @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]

confidence[RW]

Confidence of the OCR results for the word. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]

property[RW]

Additional information detected on the structural component. Corresponds to the JSON property `property` @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]

symbols[RW]

List of symbols in the word. The order of the symbols follows the natural reading order. Corresponds to the JSON property `symbols` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Symbol>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 6717
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_v1p1beta1/classes.rb, line 6722
def update!(**args)
  @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
  @confidence = args[:confidence] if args.key?(:confidence)
  @property = args[:property] if args.key?(:property)
  @symbols = args[:symbols] if args.key?(:symbols)
end