banner
Geek

Geek

🧠在家居士 | 🥦素食者 | 🏃🏻马拉松爱好者 | 📡AI降临派 | 过🪜技术资深学者 | 🤖科技狂 | 📤更新狂🆅 https://www.igeekbb.com/
twitter
github

Create a cool QR code in just four steps with Amazing-QR.

TitleProject Address
Amazing-QRhttps://github.com/x-hw/amazing-qr
  • Amazing QR is an open-source Python application for generating cool QR code images and dynamic GIF images.

    It can generate normal QR codes, artistic QR codes with images (black and white or color), and dynamic QR codes (black and white or color).

Image Description Image Description Image Description Image Description

qrs2.jpg

qrs1.jpg


Installation#

Generate Normal QR Code#

Installing and running amzqr in a virtual environment ensures that the correct Python interpreter and module installation path are used.

First, open the terminal and create a new virtual environment:

python3 -m venv myenv

carbon (2).png

Activate the virtual environment:#
source myenv/bin/activate

carbon (3).png

Install amzqr using pip#
pip install amzqr

carbon (4).png

Run the amzqr command#
amzqr https://github.com

carbon (5).png

🎉 Done!

/Users/geek/qrcode.png

qrcode.png


Generate Artistic QR Code#

Black and White Image#

The parameter -p is used to combine the QR code image with an image in the same directory to produce a black and white image. I put the avatar in the qr folder.

amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.jpg

qr_qrcode.png

Color Image#

Adding the -c parameter can change the generated image from black and white to color.

amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.jpg -c -con 1.5 -bri 1.6
  • The -con parameter is used to adjust the contrast of the image. 1.0 represents the original image, smaller values represent lower contrast, and larger values represent higher contrast. The default value is 1.0.
  • The -bri parameter is used to adjust the brightness of the image. The usage and values are the same as -con.

qr_qrcode.png

GIF Image#
amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.gif -c -con 1.5 -bri 1.6

qr_qrcode.gif


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.