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

Generic image analysis

We start by adding some UI to the ImageAnalysis.xaml file. All the Computer Vision example UIs will be built in the same manner:

    <Grid.ColumnDefinitions> 
        <ColumnDefinition Width="*" /> 
        <ColumnDefinition Width="*" /> 
    </Grid.ColumnDefinitions> 

The UI should have two columns. The first one will contain the image selection, while the second one will display our results.

In the left-hand column, we create a vertically oriented StackPanel label. In this, we add a label and a ListBox label. The listbox will display a list of visual features we can add to our analysis query. Notice how we have a SelectionChanged event hooked up in the ListBox label. This will be added behind the code and will be covered shortly:

 <StackPanel ...

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