Display and decode QRcode in Linux Terminal

I need to display the qrcode in Linux Terminal.  I find there is another convenient tool we can use.

Install qrencode in Debian-based Linux:

sudo apt-get install qrencode

Usage example:

qrencode -o - -t UTF8 '北京欢迎你'
qrencode -o - -t UTF8 'hello world'

 

These commands will display the information in QRcode in terminal.
qrencode

Check.

PS:

1.save QRcode as picture(hello.png in this case)

qrencode -o hello.png   'Hello, my friends!'
qrencode -o hello.png   '你好,我的朋友!'
  1. Using libdecodeqr-examples to decode the QRcode picture

Install:

sudo apt-get install libdecodeqr-examples

Usage:

libdecodeqr-simpletest hello.png

Have fun !

发表评论