Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1p1beta1/classes.rb,
generated/google/apis/vision_v1p1beta1/representations.rb,
generated/google/apis/vision_v1p1beta1/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
-
#features ⇒ Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature>
Requested features.
-
#image ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Image
Client image to perform Google Cloud Vision API tasks over.
-
#image_context ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext
Image context and/or feature-specific parameters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1AnnotateImageRequest
constructor
A new instance of GoogleCloudVisionV1p1beta1AnnotateImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1AnnotateImageRequest
Returns a new instance of GoogleCloudVisionV1p1beta1AnnotateImageRequest.
994 995 996 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 994 def initialize(**args) update!(**args) end |
Instance Attribute Details
#features ⇒ Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature>
Requested features.
Corresponds to the JSON property features
982 983 984 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 982 def features @features end |
#image ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Image
Client image to perform Google Cloud Vision API tasks over.
Corresponds to the JSON property image
987 988 989 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 987 def image @image end |
#image_context ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext
Image context and/or feature-specific parameters.
Corresponds to the JSON property imageContext
992 993 994 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 992 def image_context @image_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
999 1000 1001 1002 1003 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 999 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 |