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 master · burakaydn/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

..
face-detection
face-detection
 
 
label
label
 
 
landmark-detection
landmark-detection
 
 
text
text
 
 
README.md
README.md
 
 

README.md

Outline

Google Cloud Vision API Java examples

This directory contains Cloud Vision API Java samples.

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

Label Detection

This sample annotates an image with labels based on its content.

  • Java Code

Face Detection

This sample identifies faces within an image.

  • Quickstart Walkthrough
  • Java Code

Landmark Detection Using Google Cloud Storage

This sample identifies a landmark within an image stored on Google Cloud Storage.

  • Documentation and Java Code

Text Detection Using the Vision API

This sample uses TEXT_DETECTION Vision API requests to build an inverted index from the stemmed words found in the images, and stores that index in a Redis database. The example uses the OpenNLP library (Open Natural Language Processing) for finding stopwords and doing stemming. The resulting index can be queried to find images that match a given set of words, and to list text that was found in each matching image.

Documentation and Java Code

You are visitor 01402775 — 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.