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

app won't read Qr codes on second launch #21

Closed
MattLsc opened this issue Jun 17, 2024 · 5 comments
Closed

app won't read Qr codes on second launch #21

MattLsc opened this issue Jun 17, 2024 · 5 comments

Comments

@MattLsc
Copy link

MattLsc commented Jun 17, 2024

Hello,
First of all, thanks for the code and the explanation on you blog it's really helpful for beginners like me :)

I'm having a problem using the MRTK3 project.
It's building fine and it's working perfectly on the first launch (the one where it's asking for permissions) but after i close the app or turn off the hololens 2 and try to launch it again it seems unable to read the Qr code again.
I checked and the app still have the permissions to use the camera, it seems to be running correctly (I can press the reset button) but still it doesn't read the Qr code.

Any suggestion on how to fix this problem ? Thanks a lot!

@LocalJoost
Copy link
Owner

Mmm. Not sure. What do you mean with "turn off" or "close the app". If you just leave it, for the home menu, it might stay active and not properly initialize anymore. What branch have you been using? There are quite some variants now, see.

@MattLsc
Copy link
Author

MattLsc commented Jun 18, 2024

I leave for the menu and close the tab that is popping up.
I also tried turning off the hololens and turning it back on, still not working :/
I'm using the MRTK3 project .zip

@LocalJoost
Copy link
Owner

LocalJoost commented Jun 18, 2024

I'm using the MRTK3 project .zip

You mean you are downloading this branch?
image

I leave for the menu and close the tab that is popping up.

You mean, you go to the HoloLens home menu using the wrist menu and close the window that says "QRCodeService" ?

I also tried turning off the hololens and turning it back on, still not working :/

So it ran once, and never, ever again? You know just pressing the off and on buttons does not really turn off the HoloLens, just puts it to sleep?

Please work with me, don't let me guess what you are doing or assume I am some godlike being with telepathic abilities. I wish I was :D

@MattLsc
Copy link
Author

MattLsc commented Jun 19, 2024

So i managed to make it work,

I used the debug logger and saw that it was detecting the Qr code but it was not creating the marker.
I printed a bigger Qr code (10x10cm) instead of (7x7cm) and i don't know how (probably forbidden magic and a lot of builds), it worked just fine.

I can't say for sure where the real problem was but working with your code will allow me to further understand it and maybe i'll come back with the solution another time :)

Thanks again!!

@MattLsc MattLsc closed this as completed Jun 19, 2024
@LocalJoost
Copy link
Owner

@MattLsc ah yes... In this article https://localjoost.github.io/Positioning-QR-codes-in-space-with-HoloLens-2-building-a-'poor-man's-Vuforia'/ there's a video in which I try various sizes. 10x10 is almost instant success - 9cm works also okay, below that the success rate rapidly drops off. Glad you were able to fix it it yourself. Have fun and good luck!

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

2 participants