- Microsoft HoloLens By Example
- Joshua Newnham
- 280字
- 2021-07-02 18:36:01
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).
- C#程序設計實訓指導書
- AWS Serverless架構:使用AWS從傳統部署方式向Serverless架構遷移
- MATLAB定量決策五大類問題
- 軟件測試技術指南
- 快人一步:系統性能提高之道
- Python深度學習:模型、方法與實現
- Instant PHP Web Scraping
- Serverless Web Applications with React and Firebase
- 愛上C語言:C KISS
- Python網絡爬蟲實例教程(視頻講解版)
- jQuery從入門到精通(微課精編版)
- 數字媒體技術概論
- Moodle 3.x Developer's Guide
- Raspberry Pi Robotic Projects
- Python數據分析與挖掘實戰(第2版)