Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cube is far from marker (probably copy of #17) #43

Open
rschurade opened this issue Mar 18, 2019 · 6 comments
Open

Cube is far from marker (probably copy of #17) #43

rschurade opened this issue Mar 18, 2019 · 6 comments

Comments

@rschurade
Copy link

rschurade commented Mar 18, 2019

I'm running the HoloLenARToolKitSingle demo. I'd say it works fine so far, marker is recognized and it exactly follows any rotation or tilt of the marker. However it is roughly 20-30cm away from the marker. When I hold the marker in my hand and extend the arm it's about halfway between hand and eye.

Is it possible to adjust for that offset and can you advice where and how to do it?

Edit: Hmm it's depending on the distance of the Hololens camera to the marker so there's probably no easy fix.

@doughtmw
Copy link

Have you performed camera calibration of the HoloLens RGB camera that you're using for tracking?

If not, check out the code to calibrate the RGB camera here. You need to print off a checkerboard pattern, stick it on a planar board and take a bunch of pictures of it with the HoloLens camera (using the desired camera resolution which you will use for subsequent tracking). You can then use Long's code to estimate the intrinsic and distortion matrices, convert them into ARToolKit format and update them within the tracking code in this repo. Here is an example of camera calibration using OpenCV link.

@rschurade
Copy link
Author

Thanks for the answer. I see this not really practicable as I need to put that into an app that is run on many hololenses for any number of users. So I guess we'd need access to the calibration settings the user creates when creating the account on the hololens and then adjusting for that.

@qian256
Copy link
Owner

qian256 commented Mar 19, 2019

@rschurade If the offset is constant, then you can manually offset all tracking results. But from your description, it is dependent on the distance of marker, than probably means that your HoloLens camera intrinsics are quite different from the default I provided (calibrating using my HoloLens).
You can calibrate the camera yourself as suggested by @doughtmw . In terms of updating camera matrix for each hololens. You can do something like this: http://longqian.me/2017/02/08/hololens-file-transfer/
The idea is to use Device Portal to upload files to hololens, and read from C# scripts. However the code may be obsolete due to API changes (I am not sure).

@GuiGermano
Copy link

How can I take photos with a specific resolution of the camera?

@actarus1975
Copy link

Hi @qian256, hi all, I still have this strange behaviour, that is the cube/virtual content stays far from the marker and tendentially moves towards the observer while he moves farther.
I calibrated the HoloLens 2 by using your applications/scripts and generated the .dat file, but even using the new matrix the results are very similar.
Can you suggest something to fix this issue?

@actarus1975
Copy link

I'm running the HoloLenARToolKitSingle demo. I'd say it works fine so far, marker is recognized and it exactly follows any rotation or tilt of the marker. However it is roughly 20-30cm away from the marker. When I hold the marker in my hand and extend the arm it's about halfway between hand and eye.

Is it possible to adjust for that offset and can you advice where and how to do it?

Edit: Hmm it's depending on the distance of the Hololens camera to the marker so there's probably no easy fix.

@rschurade I have the same identical issue. Did you find a way to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants