Giter VIP home page Giter VIP logo

vuforia-uwp-driver's Introduction

Vuforia Driver for UWP

This project demonstrates a way to use cameras that are not recognized or supported by Vuforia (UWP only). This is made possible by the External Camera feature from Vuforia and the lower-level MediaCapture APIs.

The code is based on Vuforia SDK 8.3.8.

Requirements

  • at least Vuforia SDK 8.3.8
  • at least Windows 10 SDK 14393
  • Visual Studio 2019 with workload for UWP development with C++

Build

  1. Download the Vuforia SDK for UWP here
  2. Add an environment variable VUFORIA_SDK that points to the \build\ directoy inside the extracted SDK files, e.g. C:\SDK\vuforia-sdk-uwp-8-3-8\build\
  3. Open VuforiaUwpDriver.sln in Visual Studio, make sure to select Release and the correct platform (x86, x64 or ARM64) then start building (CTRL+SHIFT+B) or run build.cmd in the Developer Command Prompt for VS2019.

Usage

You can configure the library through the DriverUserData struct. The only thing you can do for now is choosing a specific camera.

In C++

// declare it
DriverUserData userData;

// and use it like this to set your camera
userData.cameraName = "Microsoft LifeCam Rear";
Vuforia::setDriverLibrary("VuforiaUwpDriver.dll", &userData);

Take a look at the VuforiaSetup.cs script for usage with Unity and C#.

Sample

The sample folder contains a project for Unity 2018.4 that shows how to setup the driver library.

Steps to run this sample:

  1. Make sure you have the correct version of the Vuforia SDK for Unity installed. You can check the version by selecting the VuforiaConfiguration.asset in the project explorer. One of the first things you will see in the inspector is the version and a link to the newest SDK if you have an older one installed.
  2. Copy the DLLs you built to the respective plugin folders, e.g. the VuforiaUwpDriver.dll for x86 has to be copied to Plugins/WSA/x86.
  3. Build the project (CTRL+B)
  4. Build the generated solution using Visual Studio. You might have to manually retarget the solution to successfully build all projects.

vuforia-uwp-driver's People

Contributors

janniklassahn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.