Exercise using Software as a Service: Google Cloud Vision API
due 11pm April 14
In your groups your team will be developing code AND documentation for a client HTML form (you must also create) that uploads an image from browser client and invoke a servier side program that recieves the image data and sends it to the Google Cloud Vision Labeling service and takes the resulting label annotations and returns an HTML response to the browser client with a welll formatted list of detected labels. SERVER SIDE code (Java Servlet/JSP or Spring) must be deployed to Google App Engine. Create a shared GitHub repository to host your code and a wiki documenting the process and code. Turn in URL of the github repository to BB->Discussion Board-> Exercise SaaS
TIP1: To call Google Cloud Vision api: I would probably do with the client libraries rather than the REST api https://cloud.google.com/vision/docs/libraries
-
Google documentation (search if link broken) on how to download Google Cloud Vision Client Library
TIP 2: search on image file upload and creating form for user on client browser to specify image file to be sent to server
-
FileUpload. Example for Java Servlet -see Video & corresponding web tutorial(using ServletFileUpload. But, instead of saving to a file you want to load into a Bitmap for call to Google Cloud Vision service. NOTE: ServletFileUpload exists in org.appache.commons package you must download jar for separately and add as library to your project. (Also, it may be found in the org.apache.tomcat packages).
<form action="server_program_toUploadImageFile" encType="multipart/form-data"> <input type="file" name="pic" accept="image/*"> <input type="submit"> </form> |
Deliverables
-
Create a Github for your team that has the code and wiki that documents the work you have done with the following wiki pages:
-
app - link to the deployed application (that is up and running for me to try)
-
demonstration - screen shots showing app working
-
explanation - discuss in detail the code and how it works and how you deployed it to GAE
-
state of system - tell me if fully working or if any issues.
-
-
Turn in URL to github (EVERY PERSON IN GROUP ) on Blackboard -> CS651-> Discussion Board->Exercise-SaaS) and tell me in the submission the list of all your group members.