You can do it in 3 minutes! How to make a moving QR code (GIF)!

What is a working QR-Code? If you think, please check the following QR-Code. pichu_animacion_by_dark_clefita_qrcode.gif giphy_qrcode.gif

You can also create a QR-Code based on the image as usual.

neko_qrcode.png

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.

gif-qrcode

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.

1. Installation

pip(3) install myqr(or MyQR)

2. Usage

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

You can do it in 3 minutes! How to make a moving QR code (GIF)!
How to make a container name a subdomain and make it accessible in Docker
If you guys in the scope kitchen can do it with a margin ~ ♪
You can do it in 5 minutes !? Create a face detection API with FastAPI and OpenCV and publish it on Heroku
Even a new graduate engineer can do it! The trick to make a difference in synchronization by commenting out
How to make a Python package using VS Code
How to use Decorator in Django and how to make it
How to import a file anywhere you like in Python
How to make a Japanese-English translation
[Python] How to do PCA in Python
[See in the photo] How a kaggle beginner can rank up from "novice" to "Contributor" in 10 minutes.
How to make a string into an array or an array into a string in Python
What to do if you get a minus zero in Python
How to make a slack bot
How to make a crawler --Advanced
How to make a recursive function
How to make a deadman's switch
[Blender] How to make a Blender plugin
How to deploy a Django app on heroku in just 5 minutes
Check if you can connect to a TCP port in Python
How to make a crawler --Basic
How to run TensorFlow 1.0 code in 2.0
"Cython" tutorial to make Python explosive: How to parse an Enum class defined in C ++ code into a Python Enum.
Tweet in Chama Slack Bot ~ How to make a Slack Bot using AWS Lambda ~
How to make a model for object detection using YOLO in 3 hours
How to make a rock-paper-scissors bot that can be easily moved (commentary)
Python --How do you split a list into evenly sized chunks in Python?
How to make a request to bitFlyer Lightning's Private API in Go language
Qiita (1) How to write a code name
[Python] How to make a class iterable
How to do R chartr () in Python
How to get a stacktrace in python
Do you make something like a rocket?
How to make a Backtrader custom indicator
How to make a Pelican site map
How to do Server-Sent Events in Django
[Python3] Code that can be used when you want to cut out an image in a specific size
What to do if you get a "No versions found" error in pipenv
Generate an SSID and password, make it a QR code and throw it into Slack.
How to read a serial number file in a loop, process it, and graph it
What do you like about how to convert an array (list) to a string?
How to make a dialogue system dedicated to beginners
How to clear tuples in a list (Python)
How to embed a variable in a python string
Would you like to make a Twitter resume?
How to create a JSON file in Python
How to make a dictionary with a hierarchical structure.
How to implement a gradient picker in Houdini
How to make a QGIS plugin (package generation)
How to remember when you forget a word
How to notify a Discord channel in Python
I read "How to make a hacking lab"
[Python] How to draw a histogram in Matplotlib
How to create a Rest Api in Django
How to write a named tuple document in 2020
How to count numbers in a specific range
How to read a file in a different directory
How to make Python Interpreter changes in Pycharm
How to Mock a Public function in Pytest
Consideration when you can do a good job in 10 years with Python3 and Scala3.
What you can understand because you are a beginner How to create a file (first post)