class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetection

Relevant information for the image from the Internet.

Attributes

best_guess_labels[RW]

The service's best guess as to the topic of the request image. Inferred from similar images on the open web. Corresponds to the JSON property `bestGuessLabels` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]

full_matching_images[RW]

Fully matching images from the Internet. Can include resized copies of the query image. Corresponds to the JSON property `fullMatchingImages` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]

pages_with_matching_images[RW]

Web pages containing the matching images from the Internet. Corresponds to the JSON property `pagesWithMatchingImages` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]

partial_matching_images[RW]

Partial matching images from the Internet. Those images are similar enough to share some key-point features. For example an original image will likely have partial matching for its crops. Corresponds to the JSON property `partialMatchingImages` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]

visually_similar_images[RW]

The visually similar image results. Corresponds to the JSON property `visuallySimilarImages` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]

web_entities[RW]

Deduced entities from similar images on the Internet. Corresponds to the JSON property `webEntities` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 4723
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 4728
def update!(**args)
  @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
  @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
  @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
  @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
  @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
  @web_entities = args[:web_entities] if args.key?(:web_entities)
end