LocalJoost / QRCodeService

Show a MRTK2 service to read (and position) QR codes using HoloLens 2
MIT License
76 stars 25 forks source link

Unable to Read QRcode #9

Closed hakyung9712 closed 2 years ago

hakyung9712 commented 2 years ago

Hi, I want to try reading QRcode with your code. But I have some problems.

Before showing the situation, I get the code from your "openxr" branch. And print QRcode in your blog. When I turn off the app, the green box shows above the QRcode.

When I build the Scene1, the text don't change after the "Initializing QR tracker attempt 1". And when I build the Scene2, the airplane and tracker shows, but the QR displayer doesn't show the QRCode information like link .. or something.

I am trying to this so much time and I really want your help... Thanks 20220221_141826_HoloLens 20220221_141300_HoloLens

LocalJoost commented 2 years ago

Hello! I just built the app with Scene 1 and deployed, and it worked fine: image

What you might need to do is move the QR code a bit closer to your head, a bit further away, and look at it from a straight angle. Also, I have found out that the smaller the QR code, the harder it is to recognize for the HoloLens. Finally, remember the HoloLens cameras are basically sitting on your forehead. So if you hold the code before your eyes, you might be holding them too low.

Good luck. I am sure it works. The fact you can show the airplane proves it.

Patsufr commented 2 years ago

Hi, i have the same problem. When i try to detect your Qr this happening with visual studio : image When I try without visual studio nothing happens like hakyung9712. Do you have any ideas ? Thanks you.

LocalJoost commented 2 years ago

I can tell you, running from Visual Studio does not make any sense. You are now debugging a generated C++ application.

If deploy and build Scene 1, I get this: image If I deploy and build Scene 2, I get this: https://user-images.githubusercontent.com/47092708/154894557-66d44c0d-05d6-45d0-9c89-47dd1479d978.jpg

From what you send me I can tell nothing

Patsufr commented 2 years ago

I tried your main branch and your blog1 branch. I used 2019.4.34f1 I build for release.

Thank you about Visual Studio i'm beginner in this domain.

LocalJoost commented 2 years ago

So the best branch to pull is https://github.com/LocalJoost/QRCodeService/tree/slightly_improved_version

Have you read my blog post about this? and then especially the end. It has very specific build instructions.

Patsufr commented 2 years ago

I will try that ! Thanks I come back to you

hakyung9712 commented 2 years ago

I found I was using Unity 2020. I will try and come back. Thanks!

Also, I have a question. Can only one QR code be recognized? I found "Local Qr Value" in Qr Tracker Controller.

LocalJoost commented 2 years ago

@hakyung9712 If you want to use Unity 2020, pull branch https://github.com/LocalJoost/QRCodeService/tree/openxr and read this follow up article