Seeing the environment 

In this section, we will implement a class that will be responsible for capturing frames from the HoloLens color camera and another class that will make use of Microsoft's Cognitive Vision API service to tag each of these frames to help us understand what the user sees. 

Let's start by creating a data object that will be used to store the details of each frame. This data object, Sighting, will be added to a collection of the Node class so that we can find the most appropriate node and construct a path when required. 

Within Visual Studio, create a new class called Sighting in the Content folder and make the following amendments:

internal class Sighting{public string Description { get; private set; }public HashSet<string> ...

Get Microsoft HoloLens By Example 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.