generate artistic or animated QR-Code with python MyQR

  1. pip install myqr
  2. generate common qr-code
from MyQR import myqr
myqr.run(
    words='https://www.ibm.com',
)

3. generate colorized artistic qr-code with your own png picture

from MyQR import myqr
myqr.run(
words='https://www.ibm.com',
picture='C:\Users\zhuby\panda.png',
colorized=True,
)

4. generate animated qr-code

from MyQR import myqr
myqr.run(
    words='https://www.ibm.com',
    version=5,  
    level='H', 
    picture='C:\\Users\\zhuby\\cat.gif',  
    colorized=True, 
    contrast=1.0, 
    brightness=1.0, 
    save_name='cat_qrcode.gif', #format could be .jpg .png .bmp .gif
    save_dir='C:\\Users\\zhuby',
)

Leave a Reply

Your email address will not be published. Required fields are marked *