Difficulty reading qrcode using MRTK in hololens

Barbosa, Mariana 26 Reputation points

I'm developing an application for hololens that reads qr code. Even having used the sample code from microsoft the reading is difficult. If I try to read a qrcode with my app closed, the native hololens reader reads it very quickly. But in the same position, when I open my app, the reading takes a while to detect or sometimes it doesn't (if it's a qrcode already read previously).
I used the example code in https://github.com/microsoft/MixedReality-QRCode-Sample
Do you have any tip? Any settings I might have missed? Is there any example code for the native hololens reader?
I found on the microsoft page a recommendation to filter the qrcodes by date. But I don't understand where should this filter be made? Do you have any examples?

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
364 questions
{count} votes

Accepted answer
  1. Seth DU - MSFT 541 Reputation points

    Hello, welcome to Microsoft Q&A,

    clear the qrCodesList in the QRCodesManager

    Currently it is not supported to programmatically manage the cached QR code list in the system. The "qrCodesList" that you are referred from https://github.com/microsoft/MixedReality-QRCode-Sample is locally maintained data structure and data are added when "QRCodeWatcher_Added" event is triggered (changes according to specific events). Removing all data in this list won't have effects on the cached data in the system. Rebooting device or restart driver is the only method. The current QRcode version has limits, and the product team is working on it to improve this feature, but for now all the supported APIs are listed at [QR Code tracking API reference] (https://learn.microsoft.com/en-us/windows/mixed-reality/develop/native/qr-code-tracking-cs-cpp#qr-code-tracking-api-reference).

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful