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-05 01:52:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
913d24b756f3efec76ab0526d77e957e9c40de53
913d24b7
1 parent
9110fa4e
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app.js
app.js
View file @
913d24b
...
...
@@ -81,10 +81,12 @@ function handleEvent(event) {
}
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'image'
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
cheerio
=
require
(
'cheerio'
);
let
subscriptionKey
=
process
.
env
[
'COMPUTER_VISION_SUBSCRIPTION_KEY'
];
let
endpoint
=
process
.
env
[
'COMPUTER_VISION_ENDPOINT'
];
console
.
log
(
endpoint
);
var
uriBase
=
endpoint
+
'vision/v2.1/ocr'
;
var
options
=
{
uri
:
uriBase
,
...
...
Please
register
or
login
to post a comment