13 lines
No EOL
275 B
Python
13 lines
No EOL
275 B
Python
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') |