07.01.2020
This commit is contained in:
parent
25aaa8c2d5
commit
4b648d4886
17
GENERATEQR.py
Normal file
17
GENERATEQR.py
Normal file
@ -0,0 +1,17 @@
|
||||
import qrcode
|
||||
|
||||
#qr = qrcode.make('hello world')
|
||||
#qr.save('myQR.png')
|
||||
|
||||
qr = qrcode.QRCode(
|
||||
version = 1,
|
||||
error_correction =qrcode.constants.ERROR_CORRECT_M,
|
||||
box_size=15,
|
||||
border=5
|
||||
)
|
||||
|
||||
data = 'localhost/index2'
|
||||
qr.add_data(data)
|
||||
qr.make(fit=True)
|
||||
img = qr.make_image(fill='black',back_color='white')
|
||||
img.save('pc3.png')
|
Loading…
Reference in New Issue
Block a user