• Understands the content of submitted images. • Encapsulating powerful machine learning models. • Classifies images into thousands of categories. • detects individual objects • faces within images • finds and reads printed words contained within images. • Official Documentation • https://cloud.google.com/vision/docs/ Cloud Vision API
Getting Started • Enabling the Google Cloud Vision API • API Manager > Overview > Cloud Vision API • Setting Up a Service Account • API Manager > Credentials > Create Credentials • Get service account credentials json file $ export GOOGLE_APPLICATION_CREDENTIALS =~/.credentials/service_account.json
Installation • The pigeon provides the command-line tools. • a • Make sure that pigeon was installed correctly: $ go get github.com/kaneshin/pigeon/tools/cmd/...
GAE Oriented • Unavailable packages including Sirupsen/logrus • PR: https://github.com/Sirupsen/logrus/pull/343 • Some packages can’t access to http.Client to send a request. • Web Application Framework • Double Context Problem. (Complicated)
GAE Oriented - http.Client Best Practice type ( // A Config provides service configuration for service clients. // all clients will use the {defaults.DefaultConfig} structure. Config struct { // The credentials object to use when signing requests. // Defaults to application credentials file. Credentials *credentials.Credentials // The HTTP client to use when sending requests. // Defaults to `http.DefaultClient`. HTTPClient *http.Client } )