Hi,
I am learning javascript / Node JS...
My purpose is to create a web page that can use "google vision apis".
Can anyone help me and show me how to use HTML/Javascript to get the same result as the nodejs code below?
Thank you in advance.
Paolo
-------------------------------------------------
The code is the nodejs code I found in Google API's site. It generates lables corresponding to the selected picture (by URL).
process.env.GOOGLE_APPLICATION_CREDENTIALS = 'PBProject-b4a0aa9f09cf.json';
async function quickstart() {
const vision = require('@google-cloud/vision');
const client = new vision.ImageAnnotatorClient();
const labels = result.labelAnnotations;
console.log('Labels:');
labels.forEach(label => console.log(label.description));
}
quickstart()