Morteza Namvar
Morteza Namvar

Reputation: 13

The physical image is not observe by Hololens 2 using Vuforia for Image tracking

I have problem to use Vuforia for image tracking. So I explained what I did in detail as follows:

These steps are taken to use Vuforia for image tracking:

This tutorial is used to set up a project in Unity 2022.3.41f1 LTS:

https://learn.microsoft.com/en-us/training/modules/learn-mrtk-tutorials/1-1-introduction

So, the configuration is as follows for the camera:

enter image description here

enter image description here

VuforiaBehavior and DefaultInitializerErrorHandeler are added to the main camera as follows:

enter image description here

For the configuration of the Vuforia engine after pasting the license (Already created on the Vuforia website), the play mode changed to “SIMULATOR” as it is desired to use HoloLens:

enter image description here

An empty game object is added to the scene. Then an Image Target of the Vuforia engine is added to the scene:

enter image description here

A database is created on the Vuforia website and imported into the Unity project. Then “image target behavior” is configured to use that image as follows:

enter image description here

Node: On the Vuforia database the width of the image is set to 0.2 also.

A cube is created as the child of the ImageTarget and placed in the scene:

enter image description here

After running the app on the HoloLens in remoting mode I see the following:

enter image description here

Problem is that it doesn’t observe the physical image to put the sphere on it as expected:

enter image description here

Upvotes: 0

Views: 74

Answers (1)

Ying Li - MSFT
Ying Li - MSFT

Reputation: 154

If you want to scan any physical objects, you need to select WEBCAM mode in the Vuforia configuration to use the webcam on your PC or laptop. If you want to test Vuforia features on HoloLens, you could build and deploy your application to the HoloLens.

Upvotes: 1

Related Questions