官术网_书友最值得收藏!

The project

It's been a while since we talked about the specifics for the example of this chapter, so let's quickly revise what we are trying to achieve before jumping to the project.

HoloLens includes a world-facing camera color mounted on the front of the device, which enables apps to see what the user sees. The example for this chapter is to create an application that captures what the user sees (the frames from this camera) and uses Microsoft's Cognitive Service Face API that we just set up to detect and identify faces. When a face is recognized, we will display their name along with a predicted age and gender. This example was based on the Microsoft's Holographic face tracking sample, which is available at https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/HolographicFaceTracking.

Let's start by launching the starter solution for this chapter; this can be found in the Chapter2\Starter directory from the https://github.com/PacktPublishing/Microsoft-HoloLens-By-Example repository. Launch the Visual Studio solution by either double-clicking on the FaceTag.sln solution file or by loading from within Visual Studio by clicking on File | Open | Project/Solution and navigating to, and selecting the FaceTag.sln file. The starter solution is the standard Visual C# Holographic DirectX 11 App Template we created in the previous section, with the addition of some classes and shaders used to analyze the frame used by the Face API Cognitive service we set up earlier and also used to render the results. Including this in the starter will allow us to focus on HoloLens-specific code, such as capturing the HoloLens frames and positioning the label in the scene (and keep this chapter at a reasonable length).

主站蜘蛛池模板: 祥云县| 绍兴市| 孟津县| 长宁县| 南京市| 杂多县| 邹城市| 苍南县| 砚山县| 青田县| 天门市| 乌苏市| 黄大仙区| 无棣县| 沙坪坝区| 民勤县| 濮阳县| 富平县| 宾川县| 荥阳市| 珲春市| 磐石市| 双辽市| 裕民县| 山阳县| 揭东县| 五河县| 大渡口区| 大田县| 高邑县| 石景山区| 天气| 峨眉山市| 西乡县| 津市市| 富锦市| 保靖县| 五台县| 松潘县| 宿迁市| 长顺县|