O'Reilly logo

Microsoft HoloLens By Example by Joshua Newnham

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

Capturing frames

At the moment, the FaceTagMain class is still rendering the cube that we had seen in the first part of this chapter; in this section, we will change it to render the names of the recognized people on labels just in front of them. Let's start by disabling the template by removing the macro #define DRAW_SAMPLE_CONTENT. You can do this by simply removing the line or commenting it.

Next, we will set up the FaceTagMain class to grab frames using the FrameGrabber, which will then be passed to the FrameAnalyzer to perform face detection and face identification via the Face API we set up earlier; start by adding the following variable to the FaceTagMain class:

        FrameGrabber frameGrabber;         FrameAnalyzer frameAnalyzer;

Next, we will ...

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