Class: Google::Cloud::Vision::V1::Image
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1::Image
- Defined in:
- lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb
Overview
Client image to perform Google Cloud Vision API tasks over.
Instance Attribute Summary collapse
-
#content ⇒ String
Image content, represented as a stream of bytes.
-
#source ⇒ Google::Cloud::Vision::V1::ImageSource
Google Cloud Storage image location.
Instance Attribute Details
#content ⇒ String
Returns Image content, represented as a stream of bytes. Note: as with all +bytes+ fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
113 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 113 class Image; end |
#source ⇒ Google::Cloud::Vision::V1::ImageSource
Returns Google Cloud Storage image location. If both +content+ and +source+ are provided for an image, +content+ takes precedence and is used to perform the image annotation request.
113 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 113 class Image; end |