Having Trouble with html5-qrcode Scanner—Need Help!

0
11
Asked By CreativeCoder42 On

I'm trying to set up a QR code generating and scanning system for a local event, but I'm facing some issues getting the scanner to work. I'm using the html5-qrcode library, and after granting camera permissions, my PC just gets stuck on "Launching Camera...". I have decent experience with Python and C++, but I'm a bit lost when it comes to HTML and JavaScript. I'm following a guide I found online, but I'm not sure where I'm going wrong. Any suggestions on this matter or tips for my project would be greatly appreciated!

2 Answers

Answered By ScannerWhiz123 On

Have you tried running the demo of the scanner? It can be helpful to see if your setup is right. I’ve been using a different QRCode scanner that requires a hefty WASM file but yields great results. Here’s the link: github.com/antfu/qr-scanner-wechat. Testing might give you some clarity!

CreativeCoder42 -

Yes, I tried the demo and it worked fine. I'll give that other scanner a shot as well!

Answered By CameraTechie99 On

First off, does your PC actually have a camera? It's something worth checking. Sometimes, browser settings can be a bit finicky. If you’ve confirmed that your camera works (like you mentioned that Chrome can access it), then it might be an issue with the html5-qrcode setup. Let me know if that's the case!

CreativeCoder42 -

Yes, it does have a camera, and I can also use my phone camera via Phone Link. I confirmed this since Chrome shows the camera footage when I allow permissions. But after granting permission, the camera icon disappears and it just gets stuck.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.