I’ll be speaking at Visual Studio Live!, August 13-17 at Microsoft HQ in Redmond. 
 I’ll be presenting the following sessions:
  • TH04 - Using The Microsoft Cognitive Custom Vision Service - Thursday, August 16
  • TH14 - Building Business Applications Using Bots - Thursday, August 16 
  As a speaker, I can offer $500 savings on the 5-day package.
  Register here: http://bit.ly/RMSPK30Reg

 

Microsoft Cognitive Custom Vision Service (Tutorial Series)

Jun 4

Written by:
6/4/2017 6:24 PM  RssIcon

image

Microsoft’s Custom Vision Service allows you to upload sample images, classify them, train a model, and then use that model to evaluate and automatically classify your images.

It also allows you to add additional images, correct, and re-train the model. All features can be performed and invoked using the REST based API so you can incorporate all functionality into your custom programs.

This article is the first in a series of tutorials:

  • (this article) Custom Vision Application – Create a Custom Vision project that classifies images and allows you to upload images to be classified.
  • Angular 4 Application (Part One) – Creating an application that allows you to upload an image and have it classified.
  • Angular 4 Application (Part Two) – Upload new training images, tag them, and re-train the model.

 

Getting Started

image

To get started, go to https://www.customvision.ai/ and sign in with your Microsoft account.

image

Create a New Project.

image

Enter a Name, Description, Project Type, Classification Type, select a Domain and click Create Project.

 

image

Click the button to add images.

image

Browse your local files and select images.

image

We need at least 30 images for each tag.

We will upload the images that represent bracelets for Men (these are blue and yellow).

Next, we set the tag, then click the Upload button

image

image

When the images have been uploaded and processed, we click the Done button.

We repeat the process with the images for the bracelets for the Women (pink and red) but tag them Women.

image

Now we click Train.

image

The Performance tab will display the results of this iteration.

image

We can now click the Quick Test button to test the model against images that it has never seen before.

image

Click the Browse local files button to select an image from our computer.

image

The service will return the probability for the image against each tag in the application.

image

Clicking the Performance tab, then the Prediction URL will display the information we need to programmatically pass images to the model and receive probability predictions for the image against each tag in the project.

image

You can also click on the gear icon to get the Training Key.

You will need this if you want to programmatically upload images and re-train the model.

This is covered in the remaining sections of this tutorial series.

Links

https://www.customvision.ai/

Custom Vision Documentation