KeyMaster- / HoloLensArucoTracking

A simple aruco marker tracking library for the HoloLens and the Unity Editor
MIT License
46 stars 13 forks source link

Delay in the tracking #3

Closed cvisl closed 6 years ago

cvisl commented 6 years ago

Hello,

I managed to get the example working (there is one step missing in the instruction and that is to set the "webcam" capability in Unity), but I noticed there is a significant lag/delay in the tracking. Even with a slow head movement the delay very pronounced.

Is this the expected result? Or is there something wrong at my side?

Casper

KeyMaster- commented 6 years ago

Hi, thanks for the heads up on the missing instruction step, I've added it to the readme. I managed to get fairly responsive tracking with this code, so I suspect that your issue lies with the resolution of your camera image and related parameters. If you request a very large image size, the processing will necessarily take long and be unresponsive. Try reducing the requested image size (webcamDesiredWidth and webcamDesiredHeight on the GeneralCameraProvider) as well as the sizeReduce on ArucoRunner, which scales down the received image before passing it to tracking. It'll reduce the tracking accuracy, but I've found that it's fairly tolerable.

Sorry for the slow response, hope this still helps!