Original link: http://wowubuntu.com/qrencode.html
# Author: Riku//This article uses cc BY-NC-SA 2.5 license, reprint please indicate this article link.
For the QR code everyone should be not unfamiliar, the English name 2-dimensional bar code or QR code, is a graphic information technology, the most common is applied to mobile phone applications. Users through the mobile phone camera scan two-dimensional code or enter the QR code below the number, keywords can achieve fast mobile internet access, quick and easy to browse the Web, download graphics, music, video and so on.
On Ubuntu/linux, there's a command-line tool called Qrencode that can easily help us generate QR codes.
Installation
sudo apt-get install Qrencode
Use
Qrencode-o [Filename.png] ' [text/url/information to encode] '
For example, to generate the two-dimensional code of the site
Qrencode-o wowubuntu.png ' http://wowubuntu.com '
The output graph is as follows, if you have a QR code recognition software installed on your phone, you can use your phone to shoot and identify.
If you want to customize the size, add the-s parameter, such as-s 6 to indicate the size of the 6x6 square image table, as follows.
Qrencode-o ~/desktop/google.png-s 6 ' http://wowubuntu.com '
In addition, you can use more other parameters, detailed usage please man qrencode.
-Message Source
Update: The QR code is recognized at the command line:
# Install Libdecodeqr-examples
Apt-get Install Libdecodeqr-examples
Use
Libdecodeqr-simpletest < QR code images >
such as the identification of the previous generation of the QR code image
Libdecodeqr-simpletest Wowubuntu.png
Output results
Libdecodeqr-simpletest Wowubuntu.png
LIBDECODEQR version 0.9.3 ($Rev: 42 $)
status=2000
Http://wowubuntu.com
Hits any key to end.
Qrencode:linux command line to generate two-dimensional code image