rooi / Hololens-PictureSample

How to take a picture with Hololens 2 and use the image as texture to create a photo you can hold in AR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hololens-Picture Sample

This project shows how to use windows media capture in Hololens 2 to access the Camera, take picture and use the resulting image as a texture in Unity to create an augmented reality photograph.

Refer to Locatable camera info from Microsoft for details on the Device Camera.

Locatable camera in Unity provides the key API and sample scripts.

Dependencies

  • MRTK Foundation 2.3.0

Install

Open the project in Unity 2019.2.17f1

Import MRTK 2.3.0 Foundation.

Unity should ask to install Text Mesh Pro.

Verify that

  • 'App MixedRealitySpeechCommandsProfile' in CustomProfile folder contains the key word "Take Picture".
  • your build settings is correctly set for Hololens 2
  • The build contains the scene TakePictureScene

Build, deploy to Hololens 2 (through Visual Studio).

The App should request access to Camera and Microphone, accept !

Enjoy taking Picture by just saying "Take Picture"

Next Steps

  • Add a visor
  • Add annotation capability

About

How to take a picture with Hololens 2 and use the image as texture to create a photo you can hold in AR


Languages

Language:C# 96.3%Language:ShaderLab 3.0%Language:GLSL 0.4%Language:HLSL 0.2%