Class: Google::Cloud::Vision::V1::Image

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#contentString

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.

Returns:

  • (String)

    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.



78
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 78

class Image; end

#sourceGoogle::Cloud::Vision::V1::ImageSource

Returns Google Cloud Storage image location. If both 'content' and 'source' are filled for an image, 'content' takes precedence and it will be used for performing the image annotation request.

Returns:

  • (Google::Cloud::Vision::V1::ImageSource)

    Google Cloud Storage image location. If both 'content' and 'source' are filled for an image, 'content' takes precedence and it will be used for performing the image annotation request.



78
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 78

class Image; end