zbar

Linker Error in Xcode 5 for libzbar.a

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After I integrate ZBar Sdk into my project, my xcode 5-DP starts showing below warning: "ld: warning: linking ObjC for iOS Simulator, but object file (/Documents/Projects/Project/Utility/ZBarSDK/libzbar.a(ZBarReaderViewController.o)) was compiled for MacOSX " 回答1: Building a ZBar library Sometime back I had a different problem with ZBar and was led to a helpful set of instructions here: https://web.archive.org/web/20170128181158/http://www.federicocappelli.net/2012/10/05/zbar-library-for-iphone-5-armv7s/ Basically, the instructions tell you

ZXing vs ZBar: 开源条形码SDK性能PK

孤人 提交于 2019-12-02 03:32:05
很多手机app条形码应用都使用了ZXing和ZBar两个开源条形码SDK。那么从检测速度和检测率看哪个更出色呢?ZXing用Java实现,ZBar用C/C++实现,为了确保公平,这里用JNI封装ZBar,用Java写测试。 参考原文: How to Benchmark Barcode SDK Performance – ZXing vs ZBar 作者: Desmond Shaw 翻译:yushulx SDK下载 ZXing Source code https://github.com/zxing/zxing ZBar Source Code https://github.com/ZBar/ZBar ZBar Windows Installer http://sourceforge.net/projects/zbar/files/zbar/ 如何使用Java解码TIFF文件 通过Java SDK中的ImageIO,我们可以解码很多图片格式,比如JPEG,PNG,BMP。但是TIFF是不支持的。实际使用的时候,经常会用到TIFF文件读取条形码。Oracle官方提供了 Java Advanced Imaging (JAI) 来支持TIFF。 JAI下载 照理说Oracle的官网是应该提供JAI的下载链接的。但是很奇怪的是打开之后都是404错误。在网上搜了一圈,找到了一个可用链接:

Failed to install zbar with pip on Windows

别说谁变了你拦得住时间么 提交于 2019-12-01 22:14:05
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(code, __file__, 'exec'))" install --record c:\users\ruiyang\appdata\local\temp\pip-4pohzw-record

Android Studio 0.2.6 and ZBar project setup

社会主义新天地 提交于 2019-12-01 20:11:45
I am using the latest Android Studio 0.2.6 and the latest ZBar Android SDK. What I have done so far: Created a brand new project called QRTest Created a folder called libs in my project Put the content of the Zbar libs directory into my project folder Right clicked the zbar.jar file in my project and Added as a Library In my build.gradle file, edited it so that it is now: dependencies { compile 'com.android.support:support-v4:13.0.0' compile files('libs/zbar.jar') } Basically copied the example code from the ZBar android SDK example to my own project. The project compiles and runs fine (0

Android Studio 0.2.6 and ZBar project setup

a 夏天 提交于 2019-12-01 20:08:37
问题 I am using the latest Android Studio 0.2.6 and the latest ZBar Android SDK. What I have done so far: Created a brand new project called QRTest Created a folder called libs in my project Put the content of the Zbar libs directory into my project folder Right clicked the zbar.jar file in my project and Added as a Library In my build.gradle file, edited it so that it is now: dependencies { compile 'com.android.support:support-v4:13.0.0' compile files('libs/zbar.jar') } Basically copied the

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

我们两清 提交于 2019-12-01 03:25:13
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 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile

Flash in zBar Camera

浪子不回头ぞ 提交于 2019-12-01 01:34:11
I am using ZBAR for Qr code scanning. I had implemented ZBar correctly. Now I want to make flash light on or off in Zbar. On ZBar website I only get information about Torch but no information about flash light. The "flash" is when the light "flashes" for a split second. The "torch" is when the light stays on. You do want "torch", not "flash". It would be hard to scan a barcode if the light only flashed for a split second. I've done what you are look for. I added a UIBarButtonItem to the navbar. I created the button with a custom image. The button handler is as follows: - (void)torchToggle:

How to reliably detect a barcode's 4 corners?

孤者浪人 提交于 2019-11-30 21:03:39
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 = Image.open("000.jpg").convert('L') width, height = pil.size plt.imshow(pil); plt.show() image = zbar.Image(width, height, 'Y800', pil.tobytes()) result = scanner.scan(image) for symbol in image: print symbol.data, symbol.type, symbol.quality, symbol.location, symbol.count, symbol.orientation but only one point is detected: (596, 210) . If I apply a black and white

Flash in zBar Camera

不羁岁月 提交于 2019-11-30 20:08:25
问题 I am using ZBAR for Qr code scanning. I had implemented ZBar correctly. Now I want to make flash light on or off in Zbar. On ZBar website I only get information about Torch but no information about flash light. 回答1: The "flash" is when the light "flashes" for a split second. The "torch" is when the light stays on. You do want "torch", not "flash". It would be hard to scan a barcode if the light only flashed for a split second. I've done what you are look for. I added a UIBarButtonItem to the

How to reliably detect a barcode's 4 corners?

三世轮回 提交于 2019-11-30 15:57:14
问题 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 = Image.open("000.jpg").convert('L') width, height = pil.size plt.imshow(pil); plt.show() image = zbar.Image(width, height, 'Y800', pil.tobytes()) result = scanner.scan(image) for symbol in image: print symbol.data, symbol.type, symbol.quality, symbol.location, symbol