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

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

主站蜘蛛池模板: 雷州市| 勃利县| 美姑县| 措美县| 通山县| 冷水江市| 纳雍县| 海丰县| 湘乡市| 徐汇区| 监利县| 怀仁县| 资兴市| 随州市| 井陉县| 德阳市| 赤峰市| 黄冈市| 平利县| 阿鲁科尔沁旗| 台前县| 旬阳县| 张家口市| 佛坪县| 二连浩特市| 丰城市| 镇康县| 东兴市| 蒲江县| 吉木乃县| 卫辉市| 文昌市| 正宁县| 安图县| 江西省| 凯里市| 南充市| 海口市| 平南县| 武宣县| 宁化县|