I was wondering if anyone knows of a QR code scanner module to use in anvil. I checked out anvil extras and fuond alot of neat things, but no scanner. If anyone has any information on this that would be great.
Very basic app that uses the FileLoader component to upload an image to the server.
The server code then reads the codes in the image using pyzbar and returns a list of the decoded data from each code.
It does work with multiple qr codes in the same image but could do with some tweaking on the image before reading it to reduce errors in reading.
https://anvil.works/build#clone:7HMZJ6G6RRYKFTKM=Y36TMMD3BXUOZQPUFUAP2PM3
Here’s one that the community made.
I seen this it takes the qrcode that is uploaded. I’m looking capture the qrcode with a camera. Either the computer camera or phone camera.
ianb
April 21, 2025, 5:50pm
4
Try researching and incorporating Html5-QRCode.js
into Anvil using something like Meredydd does here:
Yes, it is entirely possible to embed Vega Lite – like any Javascript library – into an Anvil app. You have to write a little bit of Javascript to glue it together, but once that’s done you can use it entirely from Python. Here’s an example app, and a step-by-step guide to how I built it.
Here’s the example app, which embeds the example you just linked to:
https://anvil.works/build#clone:EBK7KDYPKS7V4ADB=YQK2LLDCPHBOZAITZIB3BWS6
And here’s how I did it:
1. Import the Vega embedding libraries …
1 Like