zbar

AVFoundation isn’t reading a specific type of barcode

喜你入骨 提交于 2019-12-25 03:27:21
问题 I’m building an app for paying parking tickets. The problem is that we have a specific type of barcode that AVFoundation can’t read. I tried to found other frameworks to replace the AVFoundation, but turns out all of them use AVFoundation underneath. The only framework I found capable of reading it is the ZBar, but we’re not planning to use it since it hasn’t been updated for 6 years. Do you guys have any idea why it isn’t working? Image link https://i.stack.imgur.com/AEU0H.jpg Thank you.

New Yocto Recipe Builds but Work Directory is Deleted after Compilation

ぃ、小莉子 提交于 2019-12-24 08:11:06
问题 I am trying to update the recipe for zbar from 0.10.0 to 0.20.1. Here is the original recipe: https://github.com/openembedded/meta-openembedded/blob/master/meta-oe/recipes-support/zbar/zbar_0.10.bb My modified recipe is at the bottom of this question. The package does compile, but the problem is that something happens during the "packaging" step and the "work" directory is wiped out except for the "temp" directory inside the "work" directory. During compilation, if I list the files in the

ImportError: No module named zbar on Linux Mint

倾然丶 夕夏残阳落幕 提交于 2019-12-23 11:12:13
问题 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 sys import argv import zbar import Image However, that code crashes with the error: Traceback (most recent call last): File "./p4.py", line 3, in <module> import zbar ImportError: No module named zbar Normally I would expect to find some file named zbar

ImportError: No module named zbar on Linux Mint

爷,独闯天下 提交于 2019-12-23 11:12:02
问题 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 sys import argv import zbar import Image However, that code crashes with the error: Traceback (most recent call last): File "./p4.py", line 3, in <module> import zbar ImportError: No module named zbar Normally I would expect to find some file named zbar

how to customize CameraView for android ZBar QrCode Reader

纵饮孤独 提交于 2019-12-21 01:17:36
问题 I am using Zbar for reading QRCode. I use this https://github.com/DushyanthMaguluru/ZBarScanner example for my activity. The Question is how can I show cameraView on my FrameLayout ? EDIT: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); mCamera = getCameraInstance(); if(!isCameraAvailable()) { cancelRequest(); return; } requestWindowFeature(Window

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

喜你入骨 提交于 2019-12-20 17:36:05
问题 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 different. Is there a way of making the captured frame into a PIL Image? Thank you. from PIL import Image import zbar import cv2.cv as cv capture = cv.CaptureFromCAM(1) imgSize = cv.GetSize(cv.QueryFrame(capture)) img = cv.QueryFrame(capture)

Zbar SDK - missing required architecture x86_64

拈花ヽ惹草 提交于 2019-12-20 08:54:38
问题 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 environment (Xcode) I rebuild libzbar.a library in the same architecture ( I have done it based on solution found at: Linker Error in Xcode-5) Maybe somebody also had same problem and finally he had solved it, please share with solution:) 回答1: I had the

Failed to install zbar with pip on Windows

浪尽此生 提交于 2019-12-20 02:13:52
问题 I'm trying to install zbar on my Windows x64 machine: pip install zbar And this is what I got: Collecting zbar Using cached zbar-0.10.tar.bz2 Installing collected packages: zbar Running setup.py install for zbar ... error Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\ruiyang\\appdata\\local\\temp\\pip-build-t2okcg\\zbar\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile

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

放肆的年华 提交于 2019-12-19 05:46:31
问题 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 plugin: 'com.android.application' android { compileSdkVersion 15 buildToolsVersion "23.0.1" defaultConfig { applicationId "net.sourceforge.zbar.android.CameraTest" minSdkVersion 9 targetSdkVersion 23 } buildTypes { release { minifyEnabled false

libzbarjni.so has text relocations. This is wasting memory and prevents security hardening

烈酒焚心 提交于 2019-12-12 17:12:16
问题 In my barcode scanner application, using zbar lib for scanning barcode. It is thowing runtime exception as OutOfMemoryError. Anybody please help to resolve this issue. logcat: 2-16 13:06:01.635: W/linker(15501): libzbarjni.so has text relocations. This is wasting memory and prevents security hardening. Please fix. 12-16 13:06:06.483: E/art(15501): Throwing OutOfMemoryError "Failed to allocate a 53654136 byte allocation with 16777216 free bytes and 47MB until OOM" 12-16 13:06:06.483: E