Class: Google::Apis::VisionV1::GroupedResult

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

Overview

Information about the products similar to a single product in a query image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupedResult

Returns a new instance of GroupedResult.



8459
8460
8461
# File 'lib/google/apis/vision_v1/classes.rb', line 8459

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

Instance Attribute Details

#bounding_polyGoogle::Apis::VisionV1::BoundingPoly

A bounding polygon for the detected image annotation. Corresponds to the JSON property boundingPoly



8447
8448
8449
# File 'lib/google/apis/vision_v1/classes.rb', line 8447

def bounding_poly
  @bounding_poly
end

#object_annotationsArray<Google::Apis::VisionV1::ObjectAnnotation>

List of generic predictions for the object in the bounding box. Corresponds to the JSON property objectAnnotations



8452
8453
8454
# File 'lib/google/apis/vision_v1/classes.rb', line 8452

def object_annotations
  @object_annotations
end

#resultsArray<Google::Apis::VisionV1::Result>

List of results, one for each product match. Corresponds to the JSON property results

Returns:



8457
8458
8459
# File 'lib/google/apis/vision_v1/classes.rb', line 8457

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8464
8465
8466
8467
8468
# File 'lib/google/apis/vision_v1/classes.rb', line 8464

def update!(**args)
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
  @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
  @results = args[:results] if args.key?(:results)
end