How to make dynamic QR Code in python
This article will explain in detail how to make dynamic QR codes in python. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
From MyQR import myqr
# you need to install the myqr module before use, and run it in the terminal: pip install myqr
Myqr.run (
Words=' https://a.scene.eprezi.com/s/XteInz0v?adpop=1',
# enter links or sentences as parameters, scan the QR code and display them
Version=5
# controls the side length, which ranges from 1 to 40. The larger the number, the larger the side length. The default side length depends on the length of the information you enter and the error correction level you use.
Level='H'
# controls the level of error correction, ranging from L, M, Q, H, rising in turn from left to right
Picture=' launches the heart. GIF'
# combine the QR QR code image with an image in the same directory, and set the picture here
Colorized=True
# the default is black and white (False), and you can choose color (True)
Contrast=1.0
# adjust the contrast of the picture, 1.0 represents the original picture, a smaller value indicates lower contrast, and vice versa. The default is 1.0.
Brightness=1.0
# adjust the brightness of the picture, using the same as contrast.
Save_name='xinxin.gif'
# output file name, which can be .jpg, .png, .bmp, .gif
Myqr.run (words=' https://www.cnblogs.com/Estate-47/') on how to make dynamic QR codes in python is shared here. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.