Import the client library

Imports the Google Cloud client library for Cloud Vision.

Code sample

Ruby

Before trying this sample, follow the Ruby setup instructions in the Vision Quickstart Using Client Libraries. For more information, see the Vision Ruby API reference documentation.

# Imports the Google Cloud client library
require "google/cloud/vision"

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser