Code sample for Terminator Vision article on Building Apps for Windows: https://blogs.windows.com/buildingapps
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Assets Fixed possible problem with missing / in computer vision endpoint Mar 6, 2018
MixedRealityToolkit-Unity @ 0d54a2d Added Mixed Reality Toolkit as a sub module. Also updated the Hud cod… Feb 15, 2018
ProjectSettings
UWP adding source code for Terminator Vision post Mar 1, 2017
UnityPackageManager Added Mixed Reality Toolkit as a sub module. Also updated the Hud cod… Feb 15, 2018
.gitignore Added Mixed Reality Toolkit as a sub module. Also updated the Hud cod… Feb 15, 2018
.gitmodules Added Mixed Reality Toolkit as a sub module. Also updated the Hud cod… Feb 15, 2018
README.MD Fixed Text Typer mixing up text. Changed setup instructions in README Mar 6, 2018
screenshot.jpg Add a readme Mar 11, 2017

README.MD

Terminator Vision

This is a hololens application that uses the Microsoft Computer Vision API and overlays the result in a style similar to the movie Terminator. It can detect objects, faces, and OCR text.

See the Windows Blog post for more information

Screenshot

Some setup instructions

  1. Sign up for a Cognitive Services account and generate a subscription key for the Computer Vision API.
    If you already have an Azure account you can skip that and setup a Computer Vision App directly in your Azure subscription. To do that go directly to the Azure portal.

  2. Clone this repository with the --recursive flag. This will also get the appropriate version of the MRTK in the root folder for this project.

  3. Open a command prompt, navigate to the root folder for this project and execute this command:

    mklink /j .\Assets\HoloToolkit .\MixedRealityToolkit-Unity\Assets\HoloToolkit

    This will create a linked folder to the HoloToolkit in the Assets folder of the project. Now the MRTK is included in the project.

  4. Open the root folder of the project in Unity

  5. Open the main scene, which you kind find in the root of the Assets folder

  6. Select the HUD game object in the hierarchy and enter these fields for the Hud script:

    • Computer Vision key
      Get a key from the Keys page under Resource Management for your Computer Vision app in the Azure portal you created in step 1.
    • Computer Vision Endpoint
      The endpoint for your Computer Vision app in the Azure portal created in step 1. This can be found on the Overview page.
  7. Set the project settings using the Mixed Reality Toolkit menu Configure - Apply Mixed Reality Project Settings. Keep the defaults selected and click Apply.

  8. Open the Build Settings dialog File | Build Settings. Click on Add Open Scenes to add the main scene to your build.

  9. Build the UWP app from the Build Settings dialog. Create a new folder called Builds and select it.

  10. Open the solution in the Builds folder with Visual Studio.

  11. Set the configuration in the top bar to Debug and x86. Select Device if your Hololens is connected with a cable, Remote Machine if it's connected over WiFi or the Hololens Emulator.

  12. Build the solution in Visual Studio and deploy to your Hololens.