diff --git a/vision/samples/detect.js b/vision/samples/detect.js index 4332f73063..398c040d95 100644 --- a/vision/samples/detect.js +++ b/vision/samples/detect.js @@ -102,7 +102,7 @@ function detectLabels(fileName) { .then(results => { const labels = results[0].labelAnnotations; console.log('Labels:'); - labels.forEach(label => console.log(label)); + labels.forEach(label => console.log(label.description)); }) .catch(err => { console.error('ERROR:', err); @@ -130,7 +130,7 @@ function detectLabelsGCS(bucketName, fileName) { .then(results => { const labels = results[0].labelAnnotations; console.log('Labels:'); - labels.forEach(label => console.log(label)); + labels.forEach(label => console.log(label.description)); }) .catch(err => { console.error('ERROR:', err);