Class: Google::Apis::VisionV1::AnnotateImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::AnnotateImageRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb
Overview
Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.
Instance Attribute Summary collapse
-
#features ⇒ Array<Google::Apis::VisionV1::Feature>
Requested features.
-
#image ⇒ Google::Apis::VisionV1::Image
Client image to perform Google Cloud Vision API tasks over.
-
#image_context ⇒ Google::Apis::VisionV1::ImageContext
Image context and/or feature-specific parameters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnnotateImageRequest
constructor
A new instance of AnnotateImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AnnotateImageRequest
Returns a new instance of AnnotateImageRequest
453 454 455 |
# File 'generated/google/apis/vision_v1/classes.rb', line 453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#features ⇒ Array<Google::Apis::VisionV1::Feature>
Requested features.
Corresponds to the JSON property features
446 447 448 |
# File 'generated/google/apis/vision_v1/classes.rb', line 446 def features @features end |
#image ⇒ Google::Apis::VisionV1::Image
Client image to perform Google Cloud Vision API tasks over.
Corresponds to the JSON property image
441 442 443 |
# File 'generated/google/apis/vision_v1/classes.rb', line 441 def image @image end |
#image_context ⇒ Google::Apis::VisionV1::ImageContext
Image context and/or feature-specific parameters.
Corresponds to the JSON property imageContext
451 452 453 |
# File 'generated/google/apis/vision_v1/classes.rb', line 451 def image_context @image_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
458 459 460 461 462 |
# File 'generated/google/apis/vision_v1/classes.rb', line 458 def update!(**args) @image = args[:image] if args.key?(:image) @features = args[:features] if args.key?(:features) @image_context = args[:image_context] if args.key?(:image_context) end |