2/10/2024 0 Comments Free qr code generator discord![]() ![]() We can also try to increase the image contrast to see how it would look like in the scanner: It seems the top half part of the image is a bit too dark and makes the scanner hard to distinguish. Hover on the Highlight Mismatch button, we can see the mismatched spots highlighted: We can see that the image is not scannable because we have quite a lot of mismatches, saying that some parts of the image might not have enough contrast. Using the Compare tab of the toolkit, upload both the generated image and the original QR Code, tweak the grid size, and then we could see the mismatched spots and inspect the nodes. This one is unfortunately not scannable.įrom a glance, we see there are quite some QR Code-ish spots in this image, which should make it recognizable by the scanner. As mentioned earlier, you may not get lucky every time. I will first use my phone to try to scan it. Say I find one quite interesting and see some potential of being a good one. Running overnight, I now got like 200 images generated. For detailed steps, please refer to my previous blog post. Now we have the QR Code, we could move up to generate those images with Stable Diffusion and ControlNet. Also, it allows you to change the styles of the dots, or add some random noise to the border making the generated image more blended-in. You can change the error correction level, mask pattern, version of the QR Code, and rotation to find a good distribution of the black & white spots. It offers me the full capability of the generation process. So specifically for this need, I built a QR generator based on QR Code Generator Library: Sadly, most of the generators do not provide the capability to change it. There are in total 8 different kind of patterns can apply to the QR Code that serves the same content. If you are familiar with QR Code enough, you might know there is a step in QR Code generated called Mask Pattern. We would need to find different versions of the QR Code to find a better fit to the image we want. Sometimes we might find some patterns might be hard to work around. In addition, since the distribution of QR Codes is directly affecting the image’s composition. You can see the difference is quite significant. The images above are generated with the exactly same parameters, and the same seed, except the QR Code inputs has slightly different on the styles. It’s worth to try with dots, rounded, or other styled QR Codes to see if they can help to generate a better image. The basic square QR Code will lead to a more square-ish and blocky image. One thing I found quite important is that the generated QR Code we put in the ControlNet affects the image quite a lot. Let me introduce you to a bit about it.Īnthony's QR Code Toolkit Generating the Base QR Code # And I came up with a simple web tool to do so. So, I need to find a way to automate this, helping me to verify and refine the generated QR Code easier. Meanwhile, doing this manually can also be inaccurate as the scanning algorithm might see them differently. It works to some extent, but pretty inefficient as you need to go back and forth quite a few times. To improve this, my workflow was to open up Photoshop, overlay the generated image with the original QR Code, manually check the difference, use the brush to mark those spots and send to inpaint to draw those areas. Since there is quite some randomness in the process, sometimes it could be a pity when you find a good one but realize it’s not scannable. If you go too far, the QR Code will be unscannable, and if you don’t go far enough, the image will just be like a boring QR Code. It’s still quite hard to find a good composition that represents the black & white spots, while keeping the content meaningful to human. We need to find a balance, tweaking the weights to try and error. When doing so, I consider my goal is to find an image that looks like a QR Code as little as possible to humans, but still be recognizable by the machine. Last week, I wrote a blog post about how I learned to generate scannable QR Codes. Update: New blog posts - Stable Diffusion QR Code 101 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |