Questions tagged [zbar]

for questions not specific to iPhone. ZBar is an open source (GNU LGPL 2.1) software suite for reading bar codes from various sources, such as video streams, image files and raw intensity sensors. It supports many popular symbologies (types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.

ZBar 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 many popular symbologies (types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code. ZBar supports several platforms: Windows, Linux, iPhone.

ZBar is used widely in iOS applications and has an SDK specifically for iphone devices.

ZBar SDK supports the iPhone 3GS and iPhone 4, as they have a camera with auto-focus. The ZBar library does not support the iPhone 3G. At the same time ZBar supports iPad 2 camera, in spite of absense of auto-focus camera.

ZBar is licensed under the GNU LGPL 2.1 to enable development of both open source and commercial projects.

Use this tag for ZBar issues not related to iPhone ZBar SDK, for which there is a specific tag.

392 questions
6
votes
3 answers

Customize Camera View for Android using zbar

I am new in android development. My app should activate the camera to scan a QR code and decode it to a string. This works fine, but I have one more requirement: to present the camera view in a frame and with a logo in one of the corners. I did not…
user2336535
  • 71
  • 1
  • 1
  • 2
5
votes
1 answer

Read blurry barcode in python with pyzbar

I have been trying to read some barcodes from images uzing Python and pyzbar. Unfortunately, the images are taken from several feet away under several constraints and I cannot move or zoom the camera any closer. Is it possible to read barcodes this…
Mason McGough
  • 532
  • 5
  • 13
5
votes
3 answers

Preprocessing images for QR detection in python

I used Zbar and OpenCV to read the QR code in the image below but both failed to detect it. For ZBar, I use pyzbar library as the python wrapper. There are images that QR is detected correctly and images really similar to the successful ones that…
MFA
  • 537
  • 2
  • 6
  • 16
5
votes
1 answer

ZBar Scanner QR only

I'm using ZBar QR scanner for my android application. Everything is running fine and have no problems with the library and the settings. The problem is that I want to make ZBar to scan only QR codes and no barcodes. Is there a way to do it?…
Boris Pawlowski
  • 1,781
  • 4
  • 16
  • 22
5
votes
1 answer

Python code for determining corner locations of a QR Code using Zbar

I would like to extend the code here to extract the corners of the QCodes. #!/usr/bin/python from sys import argv import zbar from PIL import Image if len(argv) < 2: exit(1) # create a reader scanner = zbar.ImageScanner() # configure the…
user3614305
  • 81
  • 1
  • 5
5
votes
4 answers

ImportError: No module named zbar on Linux Mint

I want to use zbar with python on Linux Mint. I tried apt-get zbar and I didn't find any packages. So I tried to use apt-get install zbar-tools and that seemed to work. I tried to run basic example code that starts with: #!/usr/bin/python from…
dataquerent
  • 267
  • 2
  • 5
  • 13
5
votes
1 answer

Speed of decoding ZXing and ZBar in android

I've been testing ZBar and ZXing, I saw a lot of posts saying "ZXing is to slow", "ZBar is much faster", but I didn't saw any tests made public. I change the code to accept images from gallery and repeat the decoding of the QRCode 50 times, made a…
xanexpt
  • 713
  • 8
  • 20
5
votes
1 answer

Run 32 bit library on iPhone 5s 64 bit

I'am using zbar in my application. If I want to run it on my iPhone 5s with an 64 bit processor, I get the following errors: Is it possible to use the 32 bit library on a 64 bit device, because I don't think, the library is going to be updated.
jussi
  • 2,166
  • 1
  • 22
  • 37
5
votes
1 answer

Zbar with Android : Scanner camera viewport remain inactive and black after showing the url in browser

I need to have a QR scanner in my project. I use ZBar for doing this task. Mainly I did a very small change on the example code given by ZBar git example to do the job. I need to show the scanned result in a browser(if url) or in a dialog(if normal…
Sakib
  • 472
  • 5
  • 17
5
votes
3 answers

iOS: ZBar SDK unicode characters

When scanning QR codes with ZBar the string resulting from the process does not display unicode characters properly. The word Márti encoded as a QR code by any free to use QR code generator (like http://qrcode.kaywa.com) would result in Mテ。rti. In…
Zoltán Matók
  • 3,923
  • 2
  • 33
  • 64
4
votes
0 answers

Cross compiling zbar c library for windows

I'm writing a program in rust that makes use of the zbar library, using rust bindings for zbar from magiclen and want to extend the build script to support building from source. libzbar is normally built with autotools but I had separate issues with…
Mehow
  • 41
  • 2
4
votes
0 answers

Ionic 2 Zbar plugin bug on iOS11

The main goal of my app is scanning reduction/promotion. Since the beginning, I used Zbar plugin: https://ionicframework.com/docs/native/zbar/ I'm on Ionic 2.4 and this plugin works really well, fast etc... iOS 11 is released and I updated Xcode for…
Askpte
  • 51
  • 3
4
votes
1 answer

Get the barcode's bounding box with ZBar

How can I get the bounding box for a given rectangle in ZBar? Currently I calculate it from the location polygon using this code: for(Image::SymbolIterator symbol = image.symbol_begin(); symbol != image.symbol_end(); ++symbol) { int pointsCount…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
4
votes
1 answer

./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found

I was trying to install zbar on my Macbook. When I execute command pip install zbar (after brew install zbar) Exception is thrown as below: Collecting zbar Using cached zbar-0.10.tar.bz2 Installing collected packages: zbar Running setup.py…
Yongfeng
  • 666
  • 7
  • 22
4
votes
1 answer

How to get type of Encoding Style of QR/bar-code with python-qrtools/ZBar?

On my Ubuntu server I've installed the python-qrtools package (which makes use of zbar) using sudo apt-get install python-qrtools to decode images of QR-codes and bar-codes in Python like this: >>> qr = qrtools.QR() >>>…
kramer65
  • 50,427
  • 120
  • 308
  • 488
1 2
3
26 27