07.01.2020

This commit is contained in:
Mikolaj 2020-01-07 20:07:10 +01:00
parent 25aaa8c2d5
commit 4b648d4886
2 changed files with 17 additions and 0 deletions

17
GENERATEQR.py Normal file
View 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')

BIN
pc3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B