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 16:29:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fae761041ac8b8ffd4ed9e345b64cccb8f8e1127
fae76104
1 parent
ca288d2f
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app.js
app.js
View file @
fae7610
...
...
@@ -90,7 +90,7 @@ async function handleEvent(event) {
});
});
console
.
log
(
file
);
var
cheerio
=
require
(
'cheerio'
);
var
uriBase
=
'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr'
;
var
options
=
{
...
...
@@ -108,7 +108,6 @@ async function handleEvent(event) {
console
.
log
(
body
);
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
data
=
body
;
console
.
log
(
data
);
var
text
=
''
;
while
(
data
.
indexOf
(
'text\\'
)
!=-
1
)
{
...
...
Please
register
or
login
to post a comment