Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageRequest

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

Overview

Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1AnnotateImageRequest

Returns a new instance of GoogleCloudVisionV1p2beta1AnnotateImageRequest.



2717
2718
2719
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 2717

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

Instance Attribute Details

#featuresArray<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature>

Requested features. Corresponds to the JSON property features



2705
2706
2707
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 2705

def features
  @features
end

#imageGoogle::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Image

Client image to perform Google Cloud Vision API tasks over. Corresponds to the JSON property image



2710
2711
2712
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 2710

def image
  @image
end

#image_contextGoogle::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext

Image context and/or feature-specific parameters. Corresponds to the JSON property imageContext



2715
2716
2717
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 2715

def image_context
  @image_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2722
2723
2724
2725
2726
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 2722

def update!(**args)
  @features = args[:features] if args.key?(:features)
  @image = args[:image] if args.key?(:image)
  @image_context = args[:image_context] if args.key?(:image_context)
end