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

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

主站蜘蛛池模板: 肇源县| 武安市| 铜梁县| 麦盖提县| 田东县| 日喀则市| 招远市| 屏南县| 土默特左旗| 长乐市| 司法| 工布江达县| 岑巩县| 大同市| 渭南市| 方城县| 临潭县| 闸北区| 华阴市| 吉林省| 丹寨县| 贡山| 临沂市| 澜沧| 于都县| 德庆县| 林芝县| 三都| 大同市| 海丰县| 楚雄市| 南郑县| 伊春市| 浠水县| 胶州市| 邵东县| 察雅县| 夏河县| 疏附县| 民乐县| 讷河市|