Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #pip3 install qrcode[pil]
- # Import QR Code library
- import pyqrcode
- # L, M, Q, or H; each level can correct up to 7, 15, 25, or 30 percent of the data
- data= pyqrcode.create('mod16_setout ul01 8',error='L',mode='binary')
- data.svg('uca-url.svg',scale=8)
- print (data.terminal(quiet_zone=1))
- #big_code = pyqrcode.create('0987654321', error='L', version=27, mode='binary')
- #big_code.png('code.png', scale=8, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc])
- #data.png('code.png',scale=8, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc])
- data.png('setout8.png',scale=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement