1
0
mirror of https://github.com/x-hw/amazing-qr.git synced 2025-07-13 01:20:29 +02:00

complete ecc

This commit is contained in:
sylnsfar
2016-08-27 11:27:09 +08:00
parent 3dc5729aae
commit 3ca7797360
2 changed files with 38 additions and 16 deletions

View File

@ -2,6 +2,7 @@
from PIL import Image, ImageDraw
# test:
m1 = [[1]*7+[0]*7+[1]*7,
[1,0,0,0,0,0,1]+[0]*7+[1,0,0,0,0,0,1],
[1,0,1,1,1,0,1]+[0]*7+[1,0,1,1,1,0,1],
@ -41,4 +42,5 @@ def draw_qrcode(qrmatrix):
pic.save('qrcode.jpg')
pic.show()
# test:
draw_qrcode(m1)