diff --git a/GENERATEQR.py b/GENERATEQR.py new file mode 100644 index 0000000..4016f0a --- /dev/null +++ b/GENERATEQR.py @@ -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') \ No newline at end of file diff --git a/pc3.png b/pc3.png new file mode 100644 index 0000000..43668c9 Binary files /dev/null and b/pc3.png differ