Initial upload
This commit is contained in:
commit
bf8a8f965d
7 changed files with 77 additions and 0 deletions
13
encode_qrcode.py
Normal file
13
encode_qrcode.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import qrcode
|
||||
|
||||
data = input("Type anything you want to decode into a QR code: ")
|
||||
|
||||
qr = qrcode.QRCode(version = 1, box_size=10, border=5)
|
||||
|
||||
qr.add_data(data)
|
||||
|
||||
qr.make(fit=True)
|
||||
|
||||
img = qr.make_image(fill_color = 'blue', back_color = 'white')
|
||||
|
||||
img.save('./testimgs/myqrcode.png')
|
||||
Loading…
Add table
Add a link
Reference in a new issue