Class: Google::Apis::VisionV1::AnnotateImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::AnnotateImageRequest
- Includes:
- Core::Hashable
- Defined in:
- lib/google/apis/vision_v1/classes.rb,
lib/google/apis/vision_v1/representations.rb,
lib/google/apis/vision_v1/representations.rb
Overview
Request for performing Vision tasks over a user-provided image, with user-requested features.
Defined Under Namespace
Classes: Representation
Instance Attribute Summary collapse
-
#features ⇒ Array<Google::Apis::VisionV1::Feature>
Requested features.
-
#image ⇒ Google::Apis::VisionV1::Image
Client image to perform Vision tasks over.
-
#image_context ⇒ Google::Apis::VisionV1::ImageContext
Image context.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnnotateImageRequest
constructor
A new instance of AnnotateImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnnotateImageRequest
67 68 69 |
# File 'lib/google/apis/vision_v1/classes.rb', line 67 def initialize(**args) update!(**args) end |
Instance Attribute Details
#features ⇒ Array<Google::Apis::VisionV1::Feature>
Requested features. Corresponds to the JSON property ‘features`
65 66 67 |
# File 'lib/google/apis/vision_v1/classes.rb', line 65 def features @features end |
#image ⇒ Google::Apis::VisionV1::Image
Client image to perform Vision tasks over. Corresponds to the JSON property ‘image`
55 56 57 |
# File 'lib/google/apis/vision_v1/classes.rb', line 55 def image @image end |
#image_context ⇒ Google::Apis::VisionV1::ImageContext
Image context. Corresponds to the JSON property ‘imageContext`
60 61 62 |
# File 'lib/google/apis/vision_v1/classes.rb', line 60 def image_context @image_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
72 73 74 75 76 |
# File 'lib/google/apis/vision_v1/classes.rb', line 72 def update!(**args) @image = args[:image] if args.key?(:image) @image_context = args[:image_context] if args.key?(:image_context) @features = args[:features] if args.key?(:features) end |