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
114
votes
9 answers

How to decode a QR-code image in (preferably pure) Python?

TL;DR: I need a way to decode a QR-code from an image file using (preferable pure) Python. I've got a jpg file with a QR-code which I want to decode using Python. I've found a couple libraries which claim to do this: PyQRCode (website here) which…
kramer65
  • 50,427
  • 120
  • 308
  • 488
37
votes
4 answers

convert openCV image into PIL Image in Python (for use with Zbar library)

I'm trying to use the Zbar library's QR code detection methods on images I extract with OpenCV's camera methods. Normally the QR code detection methods work with images (jpg, png, etc.) on my computer, but I guess the captured frames of OpenCV are…
QuantumRich
  • 886
  • 2
  • 9
  • 21
17
votes
4 answers

With Zxing retiring for iOS, which barcode-scanner to switch to?

I have implemented ZXing to my iOS-app, however I am questioning it's maintainability as not long ago it was announced that ZXing to iOS is retiring: Retiring C++, Objective C code I've also read that there might be compatibility issues with the…
user1354603
  • 4,034
  • 4
  • 31
  • 43
16
votes
1 answer

Zbar + python, crashes on import (OSX 10.9.1)

I've attempted to install Zbar for use with python 2.7.6 with Homebrew and pip (brew install zbar, then pip install zbar) but every time I import it, python crashes. Simply running: #!/usr/bin/python import zbar lands me with this from the…
AJM
  • 521
  • 4
  • 8
14
votes
1 answer

QR code scan from image file

Tried to use several libraries like ZXing, ZBar and their forks but didn't find way to scan barcode not from camera but from file. Can someone point me to right direction? Preferably I'm looking into ZXing: how to scan image from file (not from…
Barmaley
  • 16,638
  • 18
  • 73
  • 146
13
votes
1 answer

How to change area of scan Zbar?

I want to change the area of camera scan. Now I take image to scan as big as screen of device. I'm trying to crop image to analyze. So just the center of preview will be source to scan. Is there any option to set captured preview to be smaller or…
user2245026
  • 153
  • 3
  • 8
13
votes
4 answers

How to change libs directory in Gradle?

I want to integrate Zbar into my application but cant seem to figure out how to accomplish this using the new Android Studio. I have looked through the example and have copied over the code without any issues. The problem I am having is adding the…
SuNnY_sYeD
  • 513
  • 1
  • 6
  • 19
11
votes
3 answers

How to reliably detect a barcode's 4 corners?

I'm trying to detect this Code128 barcode with Python + zbar module: (Image download link here). This works: import cv2, numpy import zbar from PIL import Image import matplotlib.pyplot as plt scanner = zbar.ImageScanner() pil =…
Basj
  • 41,386
  • 99
  • 383
  • 673
11
votes
2 answers

Gradle can't resolve external dependancies

For some unknown reason Gradle is refusing to download every dependancy that I put in my gradle.build file. I'm trying to get the 'me.dm7.barcodescanner:zbar:1.7' dependancy but every time I try to sync my gradle it just gives me the following…
Anubis
  • 1,162
  • 4
  • 14
  • 31
10
votes
5 answers

ImportError: Unable to find zbar shared library on Flask

Im trying to use pyzbar 0.1.4 on a Flask Server in Docker The image was created by us, based in python 2.7 taken from alpine. Install ZBar by apk update apk add zbar Im getting the following error when running dockerfile File…
Nicolas Fuchs
  • 125
  • 1
  • 1
  • 13
9
votes
3 answers

ZBAR barcode scanning library not working when using target sdk version 23 in gradle

I am using zbar scanner library in my project. After updating to sdk 23 Marshmallow scanner is not working. Following is the gradle file. Scanner is working if I set targetSdkVersion anything other than 23. Following is the gradle file: apply…
alphanso
  • 409
  • 5
  • 22
9
votes
1 answer

How to install Python bindings originating from an apt package?

I've got a website hosted at Heroku, and I now want to use the python-qrtools package which uses the ZBar bar code scanner. On a regular debian (based) I can do a simple: sudo apt-get install python-qrtools According to the command dpkg-query -L…
kramer65
  • 50,427
  • 120
  • 308
  • 488
9
votes
6 answers

Zbar SDK - missing required architecture x86_64

I had one problem during building application in the recent Xcode 5.1. Compilation fails with "Undefined symbols for architecture x86_64" error. I build my project with Valid Architecture: armv7, armv7s and arm64. After switch to the newest…
mbutan
  • 1,359
  • 2
  • 13
  • 23
9
votes
4 answers

ZBar - QR Code Scanner, crashing in Android Studio

I have downloaded from git latest zBar QR Code Scanner (SDK 0.2). I am trying to implement it in my application. I work on Android Studio. What have I done: I have copied zBar.jar to libs folder of my Project. I have created *.jar files from…
F1sher
  • 7,140
  • 11
  • 48
  • 85
9
votes
1 answer

Zbar integration into Android app

I am using the Android ADT Bundle for dev work. After reading multiple guides online I have added the package com.dm.zbar.android.scanner to my project. I have included the files CameraPreview.java, ZBarConstants.java, and ZBarScannerActivity.java…
Rilcon42
  • 9,584
  • 18
  • 83
  • 167
1
2 3
26 27