Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-03 18:33:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
918408b3f6d979bb9ef89443c61f756947216c67
918408b3
1 parent
d013f4fd
remove await visionclient
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app.js
app.js
View file @
918408b
var
express
=
require
(
"express"
);
var
app
=
express
();
const
line
=
require
(
'@line/bot-sdk'
);
...
...
@@ -64,7 +63,7 @@ const visionclient = new vision.ImageAnnotatorClient();
// const fileName = 'Local image file, e.g. /path/to/image.png';
// Performs text detection on the local file
const
[
result
]
=
await
visionclient
.
textDetection
(
'/home/ubuntu/a/LINEBOT/photo/Fancy-TWICE.jpg'
);
const
[
result
]
=
visionclient
.
textDetection
(
'/home/ubuntu/a/LINEBOT/photo/Fancy-TWICE.jpg'
);
const
detections
=
result
.
textAnnotations
;
console
.
log
(
'Text:'
);
detections
.
forEach
(
text
=>
console
.
log
(
text
));
...
...
Please
register
or
login
to post a comment