November 23, 2015

Scan Barcode QR Code From Webcam & Image File in Linux

ZBar bar code reader/scanner. Software to Scan Barcode + QR Code From Webcam & Image File in Linux named ZBar. With ZBar you can decode barcode from file, decode barcode from webcam. Inspite of barcode you can also decode QR code from web camera also. This article will inform to you how to install ZBar and review about it.

Scan Barcode + QR Code From Webcam & Image File in Linux

ZBar - Bar Code Reader program is an open source software suite for reading bar codes from various sources, such as video streams, image files and raw intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code. These are the Python bindings for the library.

The flexible, layered implementation facilitates bar code scanning and decoding for any application: use it stand-alone with the included GUI and command line programs, easily integrate a bar code scanning widget into your Qt, GTK+ or PyGTK GUI application, leverage one of the script or programming interfaces (Python, Perl, C++) ...all the way down to a streamlined C library suitable for embedded use.

How to Install Zbar - Barcode, QR Code Reader for Linux Desktop

ZBar have been added to linux repository so that you can install directly from software center or you can install ZBar from Terminal by executing these:
sudo apt-get install zbar-tools
 
Wait until installation completed. You can't open ZBar after install because it is a Terminal based applications.

ZBar Review - Software to Scan Barcode QR Code From Camera

Because of its great function, ZBar is used by many platform. It is command line based tool, very lighweight. The facilities as follow:
  1. cross platform - Linux/Unix, Windows, iPhone®, embedded...
  2. high speed - real time scanning from video streams
  3. small memory footprint
  4. small code size - the core scanner and EAN decoder represent under 1K lines of C code
  5. not limited to images
  6. no floating point operations
  7. suitable for embedded applications using inexpensive processors/hardware
  8. modular components can be used together or separately

How to Scan Barcode / QR Code in Linux Using ZBar

We will practice to scan QR code generated from this trial (you can make a trial too or use the QR code image below to scan):
scan barcode linux barcode scan linux scan qr code linux
Save QR code above as "test.png" to follow this experiment!
ZBar has some command to decode QR code or barcode as follow:
  1. man zbarimg  or  man zbarcam , used to show ZBar manual
  2. zbarimg --help  or  zbarcam --help , used to show ZBar help
  3. zbarimg --version atau zbarcam --version , used to show ZBar installed version
Go to directory where to save the "test.png" file, right click on the blank area and choose "Open in Terminal" , then decode it by typing zbarimg test.png -- You will see result as follow
decode barcode in linux decode barcode linux scan barcode linux barcode scan linux scan qr code linux

See another Linux Command Line Based Tool QR Code Barcode Software Utility Program for Linux

Scan Barcode QR Code From Webcam & Image File in Linux
4/ 5
Oleh

LINUX SOFTWARE UPDATE

Subscribe to our new Linux software update from inbox message. Type your email then press enter.