Beta Client Libraries

Depending on your application language, you may need to use a beta-specific client library to use the Vision API beta features.

Installing the client library

Java

If you are using Maven, add this to your pom.xml file:

<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-storage</artifactId>
  <version>1.37.1</version>
</dependency>

If you are using Gradle, add this to your dependencies:

compile 'com.google.cloud:google-cloud-storage:1.37.1'

If you are using SBT, add this to your dependencies:

libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.37.1"

If you're using IntelliJ or Eclipse, you can add client libraries to your project using these IDE plugins:

Besides adding client libraries, the plugins provide additional functionality, such as service account key management. Refer to the documentation for each plugin for more details.

Node.js

Beta features are available from the regular Vision API client library for Node.js.

In your Node.js application, specify the beta version of the API with the following line:

const vision = require('@google-cloud/vision').v1p3beta1;

Python

Beta features are available from the regular Vision API client library for Python.

Your requirements.txt should include:

google-cloud-vision==0.33.0

In your Python application, import the v1p3beta1 version of the API:

from google.cloud import vision_v1p3beta1 as vision
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Vision API Documentation
Need help? Visit our support page.