Class: Services::Builders::AnnotateImage

Inherits:
Object
  • Object
show all
Defined in:
lib/services/builders/annotate_image.rb

Instance Method Summary collapse

Constructor Details

#initialize(image, features) ⇒ AnnotateImage

Returns a new instance of AnnotateImage.



6
7
8
9
# File 'lib/services/builders/annotate_image.rb', line 6

def initialize(image, features)
  @image = image
  @features = features
end

Instance Method Details

#callObject



11
12
13
# File 'lib/services/builders/annotate_image.rb', line 11

def call
  Google::Apis::VisionV1::AnnotateImageRequest.new(image: @image, features: @features)
end