#Mission 3: Identifying an image using Bing Computer Vision API
Alright you're pretty much on your own for this mission. The goal of the mission is to be able to let the bot know you want to scan an image. The bot then takes in a url, sends it to Bing CV, and gets the caption.
The completed conversation if you complete this mission should look like this:
Note that you MUST use LUIS!
I'm feeling generous today so here are some hints:
- You'll need the Bing Computer Vision API. Here's the API reference. Refer to it when building your options for the API call in your code. Retrieving the subscription keys is similar to how you did it for LUIS and the news search.
The options for your API call should be in the following format:
var options = {
method: 'POST', // thie API call is a post request
uri: '**REFER TO API REFERENCE AND FIND OUT THE API ENDPOINT**',
headers: {
'Ocp-Apim-Subscription-Key': '**YOUR BING COMPUTER VISION KEY**',
'Content-Type': '**REFER TO API REFERENCE**'
},
body: {
url: '**THE IMAGE URL PROVIDED BY THE USER**'
},
json: true
}Here's the full documentation to request-promise in case you need it.
####Once you think you've got it, put the following image links into your bot:
- http://cp91279.biography.com/1000509261001/1000509261001_2051017826001_Bio-Biography-Neil-Armstrong-SF.jpg
- http://cdn1us.denofgeek.com/sites/denofgeekus/files/styles/article_width/public/2016/01/millennium-falcon.jpg
- https://heavyeditorial.files.wordpress.com/2016/05/harambe-22.jpg
Let us know what the captions for each 3 are. No cheating! We will be reviewing your code and potentially asking questions.