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-vision</artifactId>
  <version>1.14.0</version>
</dependency>

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

compile 'com.google.cloud:google-cloud-vision:1.14.0'

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

libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.14.0"

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').v1p2beta1;

Python

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

Your requirements.txt should include:

google-cloud-vision==0.31.0

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

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

Send feedback about...

Cloud Vision API Documentation