From 32aa7bb95d1f2b75f45cc5c58269d15ad259e0dc Mon Sep 17 00:00:00 2001 From: sylnsfar Date: Mon, 5 Sep 2016 12:22:59 +0800 Subject: [PATCH] update README --- README.md | 26 +++++++++++++++++++++----- example/a0.png | Bin 0 -> 8585 bytes example/aa.png | Bin 0 -> 8987 bytes 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 example/a0.png create mode 100644 example/aa.png diff --git a/README.md b/README.md index cb347a8..12f50cc 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,21 @@ The only one difference from Artistic QR-Code mentioned above is that you should +## Tips + +* Use a **square** picture instead of a rectangle one. + + 请采用**正方形**的图片 + +* If part of picture is transparent, the qr code will be like: ![](https://github.com/sylnsfar/qrcode/blob/master/example/aa.png) + + You can change it into white, then be like: ![](https://github.com/sylnsfar/qrcode/blob/master/example/a0.png) + + ​ + + 如果图片的模式是 “**RGBA**” 且 A 值为0(即透明无色),最终效果是:![](https://github.com/sylnsfar/qrcode/blob/master/example/aa.png) + + 你可以将透明部分修改成白色,最终效果会变成![](https://github.com/sylnsfar/qrcode/blob/master/example/a0.png) @@ -166,18 +181,19 @@ The only one difference from Artistic QR-Code mentioned above is that you should · , . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and (space) ``` - ​ + + ## Dependences 依赖库 -* Python 3 * pillow * numpy * [imageio](https://pypi.python.org/pypi/imageio) -## System 系统 -* Linux -* Windows \ No newline at end of file +## Environment 运行环境 + +* Linux, Python 3 +* Windows, Python 3 \ No newline at end of file diff --git a/example/a0.png b/example/a0.png new file mode 100644 index 0000000000000000000000000000000000000000..476fbe8dabff8ccf4189e34a094a4cc7420e34b6 GIT binary patch literal 8585 zcmeI1dsI_L9>*snApt~*fPjFF5eyHLOA-PmzUk`lH?G{l80t5kq06~BtKoIyP z5?F?5)jGA&WI#=N0|3+l@_0Vs0rQ5#1(YfKd{N=JO%_H1P*gN+Pv;i&eRh6CZt+Vz zMTBO806~BtKoB4ZOcU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Pi2jf11oP#Xhd?ssi?FOL2_eCUdFAF+*QoR@V*xw?^x6BK2|lnBfXz{J@Q(8T!UhN zQq6+Ukwfwh#t`kcQLHlSfE0?J$OK7J5z&tdG6G~%7lEq!|Tbo2XTnwlYtdL+f-`t7lL*Tx#_ z`(NY@?Y=IlZTBGuXnh`Hzozb9eYN*;ZbI{O@?eRz;m(nx7d!h(o1=Y-Viw1pi9eg2 z>>EoH`FB_7>o$e89RHZSpzOZp!C?LH*qRrMypvLgo35(r8JXvzE@XAuKxNRuIkwyX E1a8xan*aa+ literal 0 HcmV?d00001 diff --git a/example/aa.png b/example/aa.png new file mode 100644 index 0000000000000000000000000000000000000000..b54777b35b028b659dbc16458a656dd0e72b15cb GIT binary patch literal 8987 zcmeI1c~H~W7RPT$LINlPf-JHbkhR%mi-CwBAc~BjV&z$y4TwMjNsxd@5T$?x6?}rA z2x=?VjR7l&Yz2{`%*b;=Wl@Z{6lBLj&_LcVNU^W4f0Xw+Z{|&NGxzs9znk;B=YBu; zWadn+{E7TI(DL=)pIQ0}zl6 zgY4}m3l(=@41m@@`i%h!8e0TCyFnco_d^%7!csOR0VM$?0VM$?0VRRIA^~?+6o<Em&j}HLy2z<7l(1q%Tb4L*K_KlqESsP9!0g#jP$^KMZpbHfIl(ofQF^iO%l?0Ro zlmwInlmtEzAQ6a;6oLzd;9yQ9QHV|yG7$Lcj-f=*olcihn&c z%)^DkXbK+B72xPB9)pcz@}lq}dNiJhBj5p*CW@vrBiKT720M(yb+sO@uD3Sluw1Q! z9Q+7=(H`t@j!y!g9hk6b3o{{t>B6$6xh+(^?E3lZG zz>_Ut@;T8$4v%ZDn2^rk#R^?9v9TN$C6pfOz+kZ)unanxg(VVMbS#}kCSqA+GRw(< z=u8SFGB9)DS-Zv`sc3v57Ba?vX~U6V(mQs$MAvd znE!6KBROvWQdEDG35|Xr=JM=0YWI98}B7yMPBkA(5&`1WFaDibkQ(>e?Dm zjiIi$L~D_@fu50}fu4c>a#QOS%S~3A=o?^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