Closed giserhe closed 11 months ago
Hi @giserhe, one of the reasons for a QR code not being recognized might be that your QR code is a version that isn't one of the supported versions. Another reason might be the physical size of the QR code in relation to the distance to your HoloLens device, or a number of other factors such as insufficient lighting. You can find a set of best practices here.
If you're still having issues after troubleshooting with the information linked above feel free to reach out again with a more in-depth description of the issue you're having and I'll make sure to look into it :)
@simonrobl Thank you for your reply!I designed an MR application on unity, it has the function of scanning QR codes, if I install it on H2, it can work normally, but when I use Holographic Remote Player to steam out content, this function cannot work.I don't kown what problem.
@giserhe Always happy to help! Please provide me with the following information intended to assist me in reproducing the behavior on my end:
Sorry, I have been delayed in replying to you due to some matters. The parameters you need are as follows,I am looking forward to your reply: Windows Os Version[22H2] Unity and unity plugin Version[unity:2021.3.27f1 | MRTK Fundation 2.8.0] Using Mixed Reality OpenXR Version[1.4.1] | Open XR[1.8.2] GPU0:intel(R) UHD Grapphics 630|GPU1 NVIDIA 536.19 ,GeForce RTX 3070 Hololens2 parameters: Version 22621.1125 |snapdragon(TM)850@2.80GHz Holographic Remoting player versionm 2.9.1.0
using Microsoft.MixedReality.QR;When build application and installed in hololens2,it can operation.But it can't for Holographic Remoting r I use the script"HelloQR",reference from https://blog.syntegrate.jp/2022/08/05/lets-make-hololens-app-2-jp/
Hi @giserhe, no worries, and thanks for providing me with the info! I'll look into replicating the issue and will get back to you afterwards :)
Hi@simonrobl, I'd like to know what's going on with this issue.Could you give me some information,thank you for your reply!
Hi @giserhe, I have confirmed with my colleagues that the Microsoft.MixedReality.QR package gets remoted correctly. The fault lies within the sample code you're using, as it was not intended to be used with Remoting and OpenXR.
The sample code makes use of several #if WINDOWS_UWP
checks, which, according to Unity's documentation, do not get compiled when running from the editor. Therefore the code relevant to processing the QR Codes simply does not get run. You can remove those checks and add the Mixed Reality WinRT projections to your code to get access to the Windows.Perception.Spatial
and Windows.Perception.Spatial
namespaces.
Be aware that these namespaces make use of the deprecated Windows Holographic and not OpenXR APIs. As such you won't be able to make use of any OpenXR features.
If you instead wish to make use of OpenXR you should drop the namespaces and associated fields / function calls and replace them with their corresponding OpenXR calls :thumbsup:
I want to use QR code align the building model in real structure,when i use Holographic remoting,H2 cant recognize QR code