Google Cloud Vision API detects individual objects and faces within images, and finds and reads printed words contained within images. Along with Google App Engine, the app analyzes image uploaded in the http form request and returns sentiment analysis on people's facial expression.
- Download the Google Cloud SDK
- Open the Google Developers Console and click Create Project.
- Clone this repo and change the Cloud configuration
gcloud config set project <project-id> - Run the command
gcloud app deploy - Enable Vision API for the project
Test curl https://<project-id>.appspot.com/emotion -F "image=@face.jpg"
appengine.Main()if top level package main with function mainctx := appengine.NewContext(r)for a valid request context on App Engineimport "google.golang.org/appengine/log"to handle request logs and application logs on App Engine