GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/vision at main · GoogleCloudPlatform/java-docs-samples

Expand file tree

/

vision

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

vision

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
automl
automl
 
 
face-detection
face-detection
 
 
snippets
snippets
 
 
spring-framework
spring-framework
 
 
README.md
README.md
 
 

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.

  • Quickstart Walkthrough
  • Java Code
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.