O'Reilly logo

Learning Microsoft Cognitive Services - Second Edition by Leif Larsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Identifying a person

To identify a person, we are going to do so by uploading an image. Open the HomeView.xaml file and add a ListBox element to the UI. This will contain the person groups to choose from when identifying a person. We will need to add a button element to find an image, upload it, and identify the person. A TextBox element is added to show the working response. For our own convenience, we also add an image element to show the image we are using.

In the View model, add an ObservableCollection property of the PersonGroup type. We need to add a property for the selected PersonGroup type. Also, add a BitmapImage property for our image, and a string property for the response. We will also need an ICommand property for our button. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required