# 教程：详细二维码

> 艺术二维码制作教程：二维码工具处理、SD+LoRA生成、ControlNet扩图及扫码识别优化。

- 来源: https://www.waytoagi.com/kb/ai-art/art-qr-code-tutorial
- 飞书原文: https://waytoagi.feishu.cn/wiki/FmglwirelimpREkv413cUBXjnig
- 更新于: 2026-11-21

---

## 成品：

![](https://www.waytoagi.com/api/kb-media/F1EqbZR47oz9NLxiO8bcd4GCnxb)

![](https://www.waytoagi.com/api/kb-media/T4KobZSEpoKIrsxFmVdcD5C1n8f)

![](https://www.waytoagi.com/api/kb-media/RxHMbvtu9oIMVexVxYLcRiG0nGg)
![](https://www.waytoagi.com/api/kb-media/AbkpbZRCgoPcZ6xO2RScInyUnTe)

## 1、二维码处理

https://qrcode.antfu.me/

可以把二维码处理成图下的样子（可以下载原图练习），使用短的链接生成的二维码比较简单，越复杂越难做，

左边的出图更自然，右边的识别度更好，自己调节多多试试

二维码增加旁边的点可以让二维码生成的时候在二维码之外增加点元素。

![](https://www.waytoagi.com/api/kb-media/K0zUbjyrJoVpoVxirWScTCMSnS2)
![](https://www.waytoagi.com/api/kb-media/HYt5b6wFMorATPxKYRccOJiHnfG)

![](https://www.waytoagi.com/api/kb-media/NP8zbAKizoeEF4xV162cN523nwh)

## 2、sd的生成二维码

万能模型：https://civitai.com/models/7371/rev-animated

lora：https://www.liblib.art/modelinfo/fa73b6416c1a45e4af06d0ca18c20a83

正关键词

```sql
(best quality),((masterpiece)),(highres),original,longpan on plants and flowers,(flower:1.1),goldn dragon,extremely detailed 8K wallpaper,(an extremely delicate and beautiful),Chinese dragon illustration style,red background,goldn hair,front view,(plant:1.1),cloud,(best quality:1.2),<lora:20231213-1702403862783:0.8>,3d style,c4d,virtualization engine,the dragon disk is above the plants,beautiful lighting,white cloud,chinese architecture,
```

负关键词

(worst quality, low quality:1.4),(depth of field, blurry:1.2),(greyscale, monochrome:1.1),3D face,cropped,lowres,text,(nsfw:1.3),(worst quality:2),(low quality:2),(normal quality:2),normal quality,((grayscale)),skin spots,acnes,skin blemishes,age spot,(ugly:1.331),(duplicate:1.331),(morbid:1.21),(mutilated:1.21),(tranny:1.331),mutated hands,(poorly drawn hands:1.5),blurry,(bad anatomy:1.21),(bad proportions:1.331),extra limbs,(disfigured:1.331),(missing arms:1.331),(extra legs:1.331),(fused fingers:1.61051),(too many fingers:1.61051),(unclear eyes:1.331),lowers,bad hands,missing fingers,extra digit,bad hands,missing fingers,(((extra arms and legs))),

先做一个小图我这里是768x768，然后再高清放大1.5倍，如果电脑带的动也可以设置放大2倍。也可能会出现小图能识别扫码，高清修复以后大大图又不能识别的情况（看第四步）

可以换不同的模型和lora做不同的风格。

![](https://www.waytoagi.com/api/kb-media/EKiZbD41qoC1r2xLrS1c5pBFnsh)

一定会要点击💥和启用

![](https://www.waytoagi.com/api/kb-media/WkbWbjfJPo89knxnLlwc6iG8n4g)

![](https://www.waytoagi.com/api/kb-media/JWLKbscFoohFMex1upjcDIegnud)

## 3、sd扩图

和第二步一样的关键词和模型发送过来，按照下面的参数设置

![](https://www.waytoagi.com/api/kb-media/BWfybXmV3oVScxxabX4cl5Rdnub)

我原本的图片尺寸是1152x1152 我需要增高高度这里设置为（1152x1526）

![](https://www.waytoagi.com/api/kb-media/IY37brR6CohRWGxo9uAcN5wcn9f)

ControlNet设置

![](https://www.waytoagi.com/api/kb-media/SfOQbjhdVoy308xxbchcyIHknPf)

### 4、无法识别处理

能扫码不能长按识别

1、提高ControlNet的权重（增加预处理权重，降低引导介入时机直到为0，增加引导终止时机直到为1）

2、或降低重绘幅度（高清修复大图的时候才用的上）

3、把原始的黑白二维码叠加在二维码上方（正片叠底，保留4个定位点，擦去其他地方），调节下透明度。

4、使劲的抽卡！！！

![](https://www.waytoagi.com/api/kb-media/Q7gRb59kVohA4rxKUulcYfn5n1f)
