File tree 3 files changed +3
-15
lines changed
packages/google-cloud-vision
3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -69,21 +69,9 @@ const vision = require('@google-cloud/vision');
69
69
// Creates a client
70
70
const client = new vision.ImageAnnotatorClient ();
71
71
72
- // The name of the image file to annotate
73
- const fileName = ' ./resources/wakeupcat.jpg' ;
74
-
75
- // Prepare the request object
76
- const request = {
77
- image: {
78
- source: {
79
- filename: fileName,
80
- },
81
- },
82
- };
83
-
84
72
// Performs label detection on the image file
85
73
client
86
- .labelDetection (request )
74
+ .labelDetection (' ./resources/wakeupcat.jpg ' )
87
75
.then (results => {
88
76
const labels = results[0 ].labelAnnotations ;
89
77
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @google-cloud/vision" ,
3
3
"description" : " Google Cloud Vision API client for Node.js" ,
4
- "version" : " 0.12 .0" ,
4
+ "version" : " 0.13 .0" ,
5
5
"license" : " Apache-2.0" ,
6
6
"author" : " Google Inc" ,
7
7
"engines" : {
Original file line number Diff line number Diff line change 13
13
},
14
14
"dependencies" : {
15
15
"@google-cloud/storage" : " 1.4.0" ,
16
- "@google-cloud/vision" : " 0.12 .0" ,
16
+ "@google-cloud/vision" : " 0.13 .0" ,
17
17
"async" : " 2.5.0" ,
18
18
"natural" : " 0.5.4" ,
19
19
"redis" : " 2.8.0" ,
You can’t perform that action at this time.
0 commit comments