Lurker News
I originally built a QR code generator as a resume project using Rust and I realized a web interface would make customization way easier.

This still generates the "data" using that rust library via wasm, but the rendering is all editable javascript to make an SVG or paint on an HTML canvas.
I was especially inspired by https://qrbtf.com which had some unique style options I had never seen before, which I ended up copying, and then I made some more.

Comments (79) 17 threads

bscphil2 replies#
This looks super cool but I could only get 10/21 to scan with the classic zxing scanner (>100M downloads), and 3 of those took a bunch of playing with camera angles and distance, so I'd recommend against using anything too fancy for real world barcodes.
zhengkyl1 reply#
Thanks for trying it out! I definitely agree, the fancier it gets the harder it is to scan so these should not be used for real world stuff where reliability is important.

I basically only tested these on my own phone, a pixel 7 with default camera app, so I'm not surprised people with different hardware/software are getting varied results. I think I might try to automate testing using different scanners if I can figure that out.

jerjerjer#
Pixel 8, about half of the codes work.
sandos1 reply#
Hmm, yes, I did not try these but I have noticed that my default phone app in my S22 is freakishly fast at detecting QR codes, something I never remember that zxing was.

Does anyone know if these are today implemented in neural networks or something? Specialized hardware? Or just very well optimized. Sometimes it feels like only 1 frame in the camera is enough, and distance, angle, lighting and focus is not important.

yonatan8070#
I'm pretty sure the decoding is done on each frame individually, so as long as you get a single good frame, you scan it
KolmogorovComp3 replies#
Neat! In my opinion those generated by generative AI with controlnet are even more impressive [0], albeit also reducing their likelihood of being correctly read by all.

[0] https://stable-diffusion-art.com/qr-code/

Jleagle2 replies#
While I do agree, one can be done almost instantly in your browser, one takes hours of rendering.
Miraste#
Even on a slower machine, it'll be minutes, not hours. A fast one with an optimized process can be seconds.
Uehreka#
Libs like qrframe are great for automating QR code creation in a web app, the ControlNet stuff is great for if you just need to make one QR code for an event or want an animated QR code (stuff like this is usually several frames per minute if you’ve got a good GPU).
mock-possum#
Wow somebody likes anime girls
hipjiveguy#
People have to be able to recognize that it is a QR code visually - these are too graphical to realize their true purpose, imho
thih91 reply#
Looks great, very inspiring.

Some of these, like examples/blocks.svg[1], are not immediately recognized as qr codes by humans. This could lead to interesting possibilities; e.g. art with qr code/codes seamlessly integrated into it - and perhaps noticed only after someone tries to take a picture.
[1]: https://github.com/zhengkyl/qrframe/blob/b7705844b71764bcea8...

Load more comments