In this example, we are going to create an application that uses the Computer Vision API to analyze some pictures.
First, you need to obtain an API subscription key from https://docs.microsoft.com/en-us/azure/cognitive-services/Computer-vision/Vision-API-How-to-Topics/HowToSubscribe.
Next you have to open up Visual Studio 2017.
- Click on File | New | Project, and in the New Project window, select Console App. Name the project and click on OK:
- Create a new class, named Extensions.cs, and replace the code with the following:
using System;using System.Collections.Generic;namespace ...