What is a working QR-Code? If you think, please check the following QR-Code.
You can also create a QR-Code based on the image as usual.
Isn't it cute! !! You can make a QR-Code that is so cute and sure to catch your eye in one minute. (If you can use python) I can't use python right away, but I want to try it. Also, if you want to try it before reading it, we have created a trial site so please use it.
Well then, let's get into the explanation. First, how to make a normal QR-Code. Next, how to make a QR-Code based on a still image. Next, I will explain how to create a moving QR-Code using a GIF image.
pip(3) install myqr(or MyQR)
summary
myqr Words
[-v {1,2,3,...,40}]
[-l {L,M,Q,H}]
[-n output-filename]
[-d output-directory]
[-p picture_file]
[-c]
[-con contrast]
[-bri brightness]
Words,-v,-l,-n,-2 for d.1 QR-Code
#### **`-p,-c,-con,-2 for bri.2 design QR-Code`**
```2 design QR-Code
I explain it.
2.1 QR-Code
#1 Words
#1 Words myqr https://github.com
Enter URLs and sentences in Words.
The resulting QR-Code will be named'qrcode.png' and will be saved in the current directory.
#2 -v, -l
#2 -v, -l myqr https://github.com -v 10 -l Q
#### -v: size
You can specify the size from 1 to 40.
By default, the number of characters determines the size.
#### -l: Error correction level
You can choose the error correction level from `` `L```, `` `M```, `` `Q```, `` `H```.
L is the lowest level and H is the highest level.
> The error correction level indicates the ability of the code itself to recover the data if the QR-Code is dirty or corrupted. Increasing the level will improve your error correction capabilities, but will increase the amount of data and the size of your code.
#3 -n, -d
#3 -n, -d myqr https://github.com -n github_qr.jpg -d .../paths/
By default, the created QR-Code is named'qrcode.png' and the file is saved in the current directory.
#### -n: filename and format
You can specify the file name of the created QR-Code.
The format can be specified from ``` .jpg```,` `.png```,` `.bmp```,` `.gif```.
#### -d: directory
You can specify the directory to save.
# 2.2 Design QR-Code
#1 -p
#1 -p myqr https://github.com -p github.jpg
You can use -p to create a QR-Code based on the images in the directory. By default, a black and white QR-Code is created.
#2 -c
#2 -c myqr https://github.com -p github.jpg -c
You can use -c to create a color QR-Code instead of black and white.
#3 -con, -bri
#3 -con, -bri myqr https://github.com -p github.jpg [-c] -con 1.5 -bri 1.6
#### -con: Contrast
You can change the contrast of the image.
The default value is 1.0.
#### -bri: Brightness
You can change the brightness of the image.
The default value is 1.0.
## 2.3 Moving GIF QR-Code
With the 2.2 design QR-Code, you can create a moving GIF QR-Code by converting the original image to a GIF image.
The options to change the color and output file name are the same as the design QR-Code.
.. However, the output file must also be in GIF format.
# 3 Required libraries
[pillow](https://pypi.python.org/pypi/Pillow/3.3.1)
[numpy](https://pypi.python.org/pypi/numpy)
[imageio](https://pypi.python.org/pypi/imageio)
# 4 End
I think it was easier than I expected.
Even if you put it on the site, I think it will have a great impact,
It would be interesting to show it to your friends! !!
By all means, QR-Code life! !!
# 5 (Promotion
If you like it because you do it yourself, please give it a try.
[gif-qrcode](http://gif-qrcode.club//)
Recommended Posts