21 Feb 2016
Google Cloud Vision API on Golang
Google announced on 2/18 the beta release of Google Cloud Vision API. Now we can submit our images to the service to understand the content of those images by encapsulating powerful machine learning models.
- Announced by Google:
It quickly classifies images into thousands of categories, detects individual objects and faces within images, and finds and reads printed words contained within images.
Getting Started with Golang
See official documentation if you’d like to read more details.
1. Enabling the Cloud Vision API
Actually, the Google Cloud Vision API is still beta release. You need to turn it on manually to be available. Let’s see and enable on your developer console.
2. Setting Up a Service Account
Set up a service account on credentials page and get a service account credentials json file.
3. Get App and Submit Your Image.
I implemented an app, which is available the Google Cloud Vision API via Golang.
Getting a Vision Service by Authorized HTTP Client.
Creates an Annotate Image Request.
vision.Image can apply base64 encoded image and Google Cloud Storage URIs of the form
vision.Feature indicates what are using detections.
Submit the Requests on Batched
Til next time,
kaneshin at 08:30