class Google::Apis::VisionV1::Image

Client image to perform Google Cloud Vision API tasks over.

Attributes

content[RW]

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. Currently, this field only works for BatchAnnotateImages requests. It does not work for AsyncBatchAnnotateImages requests. Corresponds to the JSON property `content` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

source[RW]

External image source (Google Cloud Storage or web URL image location). Corresponds to the JSON property `source` @return [Google::Apis::VisionV1::ImageSource]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 8490
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1/classes.rb, line 8495
def update!(**args)
  @content = args[:content] if args.key?(:content)
  @source = args[:source] if args.key?(:source)
end