zbar-sdk

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

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

iOS: CGImageCreateWith[PNG or JPEG]DataProvider causes segmentation fault

无人久伴 提交于 2019-12-18 05:54:20
问题 I'm facing a weird problem. I'm developing an iOS command line barcode scanner utility using libzbar (yes, this is for jailbroken devices). All goes fine except when I'm trying to use the CGImageCreateWithPNGDataProvider() or CGImageCreateWithJPEGDataProvider() methods to obtain a CGImageRef from a file - because these two functions throw a segfault on my 5.1.1 iPad. The problem is not in my custom class, ZBarScanner , because if I use an UIImage to obtain the image data, using something like

iOS: CGImageCreateWith[PNG or JPEG]DataProvider causes segmentation fault

落花浮王杯 提交于 2019-12-18 05:53:22
问题 I'm facing a weird problem. I'm developing an iOS command line barcode scanner utility using libzbar (yes, this is for jailbroken devices). All goes fine except when I'm trying to use the CGImageCreateWithPNGDataProvider() or CGImageCreateWithJPEGDataProvider() methods to obtain a CGImageRef from a file - because these two functions throw a segfault on my 5.1.1 iPad. The problem is not in my custom class, ZBarScanner , because if I use an UIImage to obtain the image data, using something like

Is it possible to put a square bracket for the focus when the camera appears in the ZBar SDK?

柔情痞子 提交于 2019-12-12 09:28:52
问题 I'm trying to place an image (a square bracket for the focus) in the camera view of the ZBAR SDK? Can anyone please help me what needs to be done? thanks 回答1: You can set overlay of camera screen to set the cameraOverlayView property. Design a view as per your requirement and assign it: reader.cameraOverlayView = [self CommomOverlay]; -(UIView *)CommomOverlay{ UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,480)]; UIImageView *TopBar = [[UIImageView alloc] initWithFrame

Can't see IBOUTLETs when using StoryBoard with ZBARReaderView

冷暖自知 提交于 2019-12-12 04:32:53
问题 I am trying to write the embedded reader example in ZBar SDK using a story board and not NIB files. I Declare my IBOutlets as so: @interface MYQViewController : UIViewController < ZBarReaderViewDelegate > { ZBarReaderView *readerView; UITextView *resultText; } @property (strong, nonatomic) IBOutlet ZBarReaderView *readerView; @property (strong, nonatomic) IBOutlet UITextView *resultText; @end However when I create a ZBarReaderView View Controller on the main UIView and try click and drag to

project with source files of Zbar

穿精又带淫゛_ 提交于 2019-12-12 02:57:11
问题 I am building an iOS, code scanner project using ZBar SDK. I am trying to build my project directly from the source of ZBar, rather than including the libzbar.a static library. Here are the steps i did 1) Copied the source file to my project. 2) Added the path to the folder containing the source and headers to the Header Search Paths build setting of the project. (eg include/ZBarSdk) 3)Added the following user defined build setting to the project: EXCLUDE_SOURCE_FILE_NAMES USE_HEADERMAP But

How to set camera flash light level in zbar sdk

吃可爱长大的小学妹 提交于 2019-12-11 19:19:19
问题 I am using zbar sdk in my ios app. I want to dim the camera flash light. In ios documentation I have found AVCaptureDevice - (BOOL)setTorchModeOnWithLevel:(float)torchLevel error:(NSError **)outError In AVCaptureDevice class setTorchModeOnWithLevel function sets the light level between 0-1. In zbar sdk I have found this object in readerview class I am using following code ZBarReaderViewController *mReader = [[ZBarReaderViewController alloc] init]; mReader.showsZBarControls = NO; mReader

ZBarReadview with custom size from StoryBoard,but when it's called,it's size is not I set

给你一囗甜甜゛ 提交于 2019-12-11 05:53:13
问题 i've got a ZBarReaderView created from storyboard with 300*90 px which is shown as roughly 200*400 px because ZBarReaderView doesn't take it's size too serious... I Declare my IBOutlets as so: @interface MYQViewController : UIViewController < ZBarReaderViewDelegate > { ZBarReaderView *readerView; ZBarCameraSimulator *cameraSim; UITextView *resultText; } @property (strong, nonatomic) IBOutlet ZBarReaderView *readerView; @property (strong, nonatomic) IBOutlet UITextView *resultText; @end in the

Wrong decoding of barcodes also in ZBAR SDK example

妖精的绣舞 提交于 2019-12-11 05:10:19
问题 I am using the ZBarSDK with a project for iPhone. I am using ZBar as an embeded reader. Basically hooking up a UIView in Interface Builder. Changing the class to ZBarReaderView and implementing the delegate method -(void)readerView: (ZBarReaderView*) view didReadSymbols: (ZBarSymbolSet*) syms fromImage: (UIImage*) img . This works fine most of the time. There are however barcodes that apparently do not scan correctly. The first block gets interpreted wrong. I get something like 5008914... the