Running this example https://cloud.google.com/vision/docs/face-tutorial?hl=zh-tw
by rails on 'google-cloud-vision', '~> 0.31.0'
got the error
uninitialized constant Google::Cloud::Vision::ImageAnnotator
here's the code
require "google/cloud/vision"
project_id = 'xxxxxx'
vision = Google::Cloud::Vision.new project: project_id
image_annotator = Google::Cloud::Vision::ImageAnnotator.new