Read QR Code with UWP - Windows 10

I need to create a UWP application that can (phone / tablet) use the camera to read a QR barcode from a computer screen. I need to detect a QR barcode when the camera is turned on, because I do not want to take a picture (or similar) and save it to a file, and then read it. It must be detected at runtime.

Is there a MIT license code (in C #) that I can use there?

Many applications that use this functionality typically have a β€œtarget” window that does not use the entire screen. How can I achieve this?

Can someone point me in the right direction, how can I do this?

Thank you very much.

+5
source share
1 answer

After quite a bit of research, I eventually found several articles that pointed me in the right direction.

This is interesting: Scanning a mobile barcode using Zxing.Net

This provided me with the gist of what I needed: Windows 8 - 8.1 QR Code reader is the definitive guide , but used the SoftwareBitmapLuminanceSource from Zxing.Net.Mobile class .

And while I got above to work as expected, I started researching ZXing.Net.Mobile and downloaded the complete project. It supports various platforms, including UWP.

It took me a while to get it to start and run, but in the end I did it, and while their UWP application crashes for most barcode reading scripts, Continuous Scanning works as expected and works very well and very fast.

Download the full project from here: ZXing.Net.Mobile

I will continue the investigation, but this will help you get started if you need a QR reader for UWP.

Hope this helps others.

+4
source

Source: https://habr.com/ru/post/1246411/


All Articles