Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Google Cloud Vision API Java examples

This directory contains Cloud Vision API Java samples.

For Android samples, check out the mobile samples for the Cloud Vision API. (Source code for Android sample)

Prerequisites

Download Maven

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.

Setup

  • 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.json

Samples

Face Detection

This sample identifies faces within an image.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.