The QR codes got quite popular this days. In this short guide, I will show you how to use Zbar to scan and decode QR codes. Zbar can also scan and decode different code bar types, but this is not the subject of the article.
Let’s get started.
Installing Zbar on Ubuntu 13.04, Ubuntu 12.10 and Ubuntu 12.04:
$ sudo apt-get install zbar-tools
Start Using Zbar:
Save the QR image and do this (i will save it as linuxg.png):
$ zbarimg linuxg.png
scanned 1 barcode symbols from 1 images in 0.02 seconds
Zbar can also decode QR code by webcam, but I have not tested this. Install zbarcam if you are curious: sudo apt-get install zbarcam.