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 ...

Get Microsoft HoloLens By Example now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.