Live data from Hacker News

How to make a QR code with Stable Diffusion

stable-diffusion-art.com

31–40 of 75 posts

Re: How to make a QR code with Stable Diffusion

#31
post #6

this guide starts by promoting their gumroad book which i dont want. currently using a1111 off of https://colab.research.google.com/github/TheLastBen/fast-sta... and hoping to go from there

Yep, these guys have spammed the front page as of now all from the same url

Re: How to make a QR code with Stable Diffusion

#33
post #27

As an engineer, the lack of consideration for the matter of how much one should corrupt a signal (which might be scanned under different conditions, such as different light levels and resolutions) is grating to me. It’s like scratching a design onto the bottom of an audio CD, playing it, and if it works on your CD player, shipping it. “Works for me”

This is a classic read: http://datagenetics.com/blog/november12013/index.html

Interestingly when I long pressed the codes marked as “No” (in Safari mobile), a lot of them were still decoded.

Re: How to make a QR code with Stable Diffusion

#35
post #24
post #21

Earlier quoted context omitted.

None of what I wrote impacts the CRC calculation.

Diffusion models cannot generate a qr code by itself. The article even shows you need to generate the base image yourself. What you are proposing would mean bruteforcing the QR codes until we see a better shape.

It would be at least possible to write a python plugin for the 'automatic1111' ui which allows you to simply input the QR text, and have it generate images based on a variety of possible configurations in batch so you can go through and pick the one which is most aesthetically pleasing.

edit: It would also be beneficial to have a script which automatically distorts the image in various ways and checks to see if it would be recognized by a QR code scanner, and give a score so you can see how likely it would be to be scannable in various conditions.

Re: How to make a QR code with Stable Diffusion

#36
post #7

The funny thing is that no-one AFAICT has realized that the same content can be encoded in different-looking QR codes. Beside the obvious (different error-correction levels), the content itself can be changed while maintaining its semantic meaning (e.g. " https://example.com/foo ", "HTTPS://EXAMPLE.COM/foo", or "HtTpS://eXaMpLe.CoM/foo" are all semantically identical) and even the QR encoding itself can be tweaked (e…

I think this has been done for a long time? I made this one that looks like a VLC logo and links to VLC, back in 2013. https://imgur.com/a/rq8WzGm inspired by some post I read at the time.

If you scan it, you realize it's putting lots of "junk" at the end of the URL that doesn't change its meaning, but is used to tweak how the QR code looks.

The URL is on the form videolan.org/#234234234523453455...

Re: How to make a QR code with Stable Diffusion

#37

As an engineer, the lack of consideration for the matter of how much one should corrupt a signal (which might be scanned under different conditions, such as different light levels and resolutions) is grating to me. It’s like scratching a design onto the bottom of an audio CD, playing it, and if it works on your CD player, shipping it. “Works for me”

Meanwhile, bare QR codes are ugly AF and draw the eye away from any other design... Things like this might lead to greater use.

Re: How to make a QR code with Stable Diffusion

#39
post #24
post #21

Earlier quoted context omitted.

None of what I wrote impacts the CRC calculation.

Diffusion models cannot generate a qr code by itself. The article even shows you need to generate the base image yourself. What you are proposing would mean bruteforcing the QR codes until we see a better shape.

Sure, but as I mentioned it has absolutely nothing to do with the CRC calculation, that is what you claimed.

Re: How to make a QR code with Stable Diffusion

#40
post #7

The funny thing is that no-one AFAICT has realized that the same content can be encoded in different-looking QR codes. Beside the obvious (different error-correction levels), the content itself can be changed while maintaining its semantic meaning (e.g. " https://example.com/foo ", "HTTPS://EXAMPLE.COM/foo", or "HtTpS://eXaMpLe.CoM/foo" are all semantically identical) and even the QR encoding itself can be tweaked (e…

I think this has been done for a long time? I made this one that looks like a VLC logo and links to VLC, back in 2013. https://imgur.com/a/rq8WzGm inspired by some post I read at the time. If you scan it, you realize it's putting lots of "junk" at the end of the URL that doesn't change its meaning, but is used to tweak how the QR code looks. The URL is on the form videolan.org/#234234234523453455...

Sorry, yes, I should have clarified I meant "no-one has done it in the current batch of diffusion-based experiments". As you point out it has been done multiple times before, e.g. https://research.swtch.com/qart (online demo https://research.swtch.com/qr/draw/).
Post reply on HN