| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample uses the Apache Maven build system. Before getting started, be sure to download and install it. When you use Maven as described here, it will automatically download the needed client libraries.
Create a project with the Google Cloud Console, and enable the Vision API.
Set up your environment with Application Default Credentials. For example, from the Cloud Console, you might create a service account, download its json credentials file, then set the appropriate environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.jsonTo build and run the sample:
mvn clean compile assembly:single
java -cp target/vision-label-1.0-SNAPSHOT-jar-with-dependencies.jar com.google.cloud.vision.samples.label.LabelApp data/cat.jpg| Back | FazBrowse Home | New Git URL |