zbar

Zbar + python, crashes on import (OSX 10.9.1)

前提是你 提交于 2019-11-30 14:40:19
问题 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 terminal: :~ aj$ cd '/Users/aj/Documents/nlcc/check in/python/' && '/usr/bin/python' '/Users/aj/Documents/nlcc/check in/python/test.py' && echo Exit status: $? && exit 1 Segmentation fault: 11 Other modules (wxPython, Numpy, openCV) work just fine, but this

Zbar + python, crashes on import (OSX 10.9.1)

一世执手 提交于 2019-11-30 11:21:07
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 terminal: :~ aj$ cd '/Users/aj/Documents/nlcc/check in/python/' && '/usr/bin/python' '/Users/aj/Documents/nlcc/check in/python/test.py' && echo Exit status: $? && exit 1 Segmentation fault: 11 Other modules (wxPython, Numpy, openCV) work just fine, but this one gives me the same crash every time. I've tried compiling and installing zbar from source, thinking

Customize Camera View for Android using zbar

别等时光非礼了梦想. 提交于 2019-11-30 09:43:10
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 find an appropriate API in zbar sdk to make the frame and attach the logo. This is my code: ZBarScannerActivity.java: package com.myCompany.android; import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager; import android.hardware.Camera; import android.media.MediaPlayer; import android.media.MediaPlayer

QR code scan from image file

心已入冬 提交于 2019-11-30 09:36:35
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 camera). Please. barmaley In the end I've found solution. Code is (originated from here ): import com.google.zxing.*; public static String scanQRImage(Bitmap bMap) { String contents = null; int[] intArray = new int[bMap.getWidth()*bMap.getHeight()]; //copy pixel data from the Bitmap into the 'intArray' array bMap.getPixels(intArray, 0, bMap.getWidth(),

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

我的梦境 提交于 2019-11-30 08:45:55
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 newer phones iPhone 5S.. Also running Xcode's static code analysis on the Zxing-library reveals memory errors, I'm not sure if these errors are false positive or not, but they make me doubt Zxing even more. Further, the performance of Zxing compared to other barcode scanners feels subpar. So my question is, what is the best alternative? I hear a lot of

ZBar with iOS7 and XCode5 compiling error libzbar.a architecture

拈花ヽ惹草 提交于 2019-11-30 02:26:37
just got some errors runnign ZBar with my iOS App. I included the newest Beta Version 1.3.1 in my Project and am Running the App locally on my iOS7 Device (iPhone 5). When trying to archive it for Distribution, there is the error with arm64. I've tried to recompile the source to generate my own libzbar.a (which was generated) with selected arm64 armv7 and armv7s, but even here the error was the same.. So what should I do? Thnaks for help! You can download the zbar library compiled for arm7, arm7s and arm64 here EDIT: I am still getting upvotes on this answer, the real current answer is that

Win10x64+Zbar_0.10+VS2015+Opencv3.0.0

ぃ、小莉子 提交于 2019-11-29 15:49:35
因为要写一个机器人识别二维码的程序,想用Zbar+opencv,我的电脑是win10,用的vs是2015,下载的都是最新的,结果在网上找了一堆教程各种报错,后来自己搞了一天时间终于成功了,把经验分享出来~ 如果有转载的话告诉我一下哟,因为这是我第一次写嘿嘿还有点激动 Win10x64+Zbar_0.10+VS2015+Opencv3.0.0 1. Zbar安装包下载 点击下载: http://zbar.sourceforge.net/download.html (Zbar官网下载链接),提供了Linux、Windows等版本的下载,目前最新版本是zbar-0.10。 点击链接首先进去看到的下图“ZBar 0.10 source tarball”是 示例的代码 ,下载后是一个压缩包 鼠标往下拖找到“ZBar 0.10Windows installer ”才是安装包,点击下载,建议下载路径放在D盘的D:\Program Files 2. Zbar安装 找到刚才的下载路径后双击 ,开始安装Zbar,如下图: 点击next,进入下图后勾选“DevelopmentHeaders and Libraries”: 点击next后进入下图选择安装路径: 点击install,等待安装完成之后在对应目录下出现下列文件夹,代表安装成功了 3.下载和安装opencv3.0.0 在OpenCV官网的下载页面

Customize Camera View for Android using zbar

青春壹個敷衍的年華 提交于 2019-11-29 14:43:22
问题 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 find an appropriate API in zbar sdk to make the frame and attach the logo. This is my code: ZBarScannerActivity.java: package com.myCompany.android; import android.app.Activity; import android.content.Intent; import android.content.pm

Scanning QR Code via zbar and Raspicam module

和自甴很熟 提交于 2019-11-29 10:22:07
问题 I want to use my raspi cam modul to scan QR codes. For detecting and decoding qr codes I want to use zbar. My current code: import io import time import picamera import zbar import Image if len(argv) < 2: exit(1) # Create an in-memory stream my_stream = io.BytesIO() with picamera.PiCamera() as camera: camera.start_preview() # Camera warm-up time time.sleep(2) camera.capture(my_stream, 'jpeg') scanner = zbar.ImageScanner() scanner.parse_config('enable') pil = Image.open(argv[1]).convert('L')

QR code scan from image file

喜欢而已 提交于 2019-11-29 09:18:30
问题 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 camera). Please. 回答1: In the end I've found solution. Code is (originated from here): import com.google.zxing.*; public static String scanQRImage(Bitmap bMap) { String contents = null; int[] intArray = new int[bMap.getWidth()*bMap.getHeight()]; //copy