Using the Computer Vision API

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.

  1. Click on File | New | Project, and in the New Project window, select Console App. Name the project and click on OK:
Creating Console application
  1. Create a new class, named Extensions.cs, and replace the code with the following:
using System;using System.Collections.Generic;namespace ...

Get Architecting Microsoft Azure Solutions - Exam Guide 70-535 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.