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
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:
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.
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;
Beta features are available from the regular Vision API client library for Python.
requirements.txt should include:
In your Python application, import the
v1p3beta1 version of the API:
from google.cloud import vision_v1p3beta1 as vision