Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -81,10 +81,12 @@ function handleEvent(event) { | ... | @@ -81,10 +81,12 @@ function handleEvent(event) { |
81 | } | 81 | } |
82 | else if (event.type == 'message'&& event.message.type == 'image') { | 82 | else if (event.type == 'message'&& event.message.type == 'image') { |
83 | return new Promise((resolve,reject)=>{ | 83 | return new Promise((resolve,reject)=>{ |
84 | + | ||
84 | var cheerio = require('cheerio'); | 85 | var cheerio = require('cheerio'); |
85 | 86 | ||
86 | let subscriptionKey = process.env['COMPUTER_VISION_SUBSCRIPTION_KEY']; | 87 | let subscriptionKey = process.env['COMPUTER_VISION_SUBSCRIPTION_KEY']; |
87 | let endpoint = process.env['COMPUTER_VISION_ENDPOINT']; | 88 | let endpoint = process.env['COMPUTER_VISION_ENDPOINT']; |
89 | + console.log(endpoint); | ||
88 | var uriBase = endpoint + 'vision/v2.1/ocr'; | 90 | var uriBase = endpoint + 'vision/v2.1/ocr'; |
89 | var options = { | 91 | var options = { |
90 | uri: uriBase, | 92 | uri: uriBase, | ... | ... |
-
Please register or login to post a comment