package
0.0.0-20180403234405-3be5551c975d
Repository: https://github.com/guregodevo/golang-samples.git
Documentation: pkg.go.dev

# 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