Discover Packages
github.com/adams-sarah/golang-samples
vision
label
command
Version:
v0.0.0-...-44a0656
Opens a new window with list of versions in this module.
Published: Dec 31, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Google Cloud Vision API Go example
Authentication
Create a project with the Google Cloud Console , and enable
the Vision API .
From the Cloud Console, create a service account,
download its json credentials file, then set the
GOOGLE_APPLICATION_CREDENTIALS
environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json
Run the sample
To build and run the sample:
go run label.go ../testdata/cat.jpg
Expand ▾
Collapse ▴
Documentation
¶
Command label uses the Vision API's label detection capabilities to find a label based on an image's content.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.