zbar-sdk

ZBar - QR Code Scanner, crashing in Android Studio

无人久伴 提交于 2019-12-05 02:09:25
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 "amerabi", "amerabi-v7a", "x86" by zip'ing them and changing their format to *.jar. I have copied amerabi.jar, amerabi-v7a.jar and x86.jar to libs folder of my Project. There is no need to change anything in gradle because it is already configured to import every jar file from libs projects. See below: dependencies { compile 'com.android.support:support-v4

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

拜拜、爱过 提交于 2019-12-04 21:06:53
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 aViNaSh 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:CGRectMake(0,0,320,58)]; [TopBar setImage:[UIImage imageNamed:@"topbar.png"]]; [view addSubview:TopBar];

ZBar memory leak on iOS?

╄→гoц情女王★ 提交于 2019-12-04 18:21:59
问题 I am very satisfied with ZBar scanning performance, however I ran into a big problem on a project that runs under ARC if that counts at all. Namely, it seems that there is a serious memory leak that rises exponentially with each and every new display of the readerView. after some 10x memory usage starts to rise exponentially and around 20x scan program become unusable. I have seen example that are build with same version and there is no problem with it. I also tried method flushCache on

QR Code decoder library for python

孤者浪人 提交于 2019-12-04 12:18:15
I am trying to build an application in python that would encode and decode QR codes. I am successful with the encoder, but i don't find libraries(but zbar ) for decoding in python. I am using Python 2.7 in a Windows 7 system. I am not able to install zbar in my system. I installed the dependency module required by the library and even then I end up with so many errors, whenever I try to install it - so many syntax errors in zbar.h and in zbarmodule.c. I don't understand why and clueless about what the problem is. I get the following errors while installing zbar C:\Users\vijay>easy_install zbar

How to hide info button in ZBar Bar Code Reader for iOS6.0 and above

試著忘記壹切 提交于 2019-12-04 05:06:14
I am using ZBar Bar Code Reader for iOS 5.0 and above in my iOS App. I have made info button hidden using following code on Camera Interface. UIView * infoButton= infoButton = [[[[[reader.view.subviews objectAtIndex:1] subviews] objectAtIndex:0] subviews] objectAtIndex:2]; [infoButton setHidden:YES]; But somehow this code doesn't work for iOS6.0 and Above. Try this code, this worked for me on iOS5.0 and above. float currentVersion = 5.1; float sysVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; UIView * infoButton; if (sysVersion > currentVersion) infoButton = [[[[[reader.view

using opencv instead of imagemagick in zbar qr code decoder

女生的网名这么多〃 提交于 2019-12-03 22:15:53
I am writing a qr code decoder using Zbar api. I am using windows pre built libraries . I used the following code to load the image to ZBar IplImage *src=cvLoadImage("image.png",CV_LOAD_IMAGE_GRAYSCALE); ImageScanner scanner; scanner.set_config(ZBAR_NONE, ZBAR_CFG_ENABLE, 1); int width = src->width; int height = src->height; uchar* raw = (uchar *)(src->imageData); Image image(width, height, "Y800", raw, width * height); int n = scanner.scan(image); But it failed to decode the image. Am I using the correct way to read image data using opencv ? . When I tested only one image decoded and failed

ZBar with iOS7 and XCode5 compiling error libzbar.a architecture

为君一笑 提交于 2019-12-03 18:52:55
问题 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! 回答1: You can download the zbar library compiled for

Can't turn off gcc optimizer, Makefile from automake

旧城冷巷雨未停 提交于 2019-12-03 17:36:48
问题 I am trying to get ZBar in a debug session. I am able to do so, but I can't get the optimizer to turn off, so my debug session jumps around unexpectedly and many variables are labeled as optimized-out in Eclipse Indigo. I am running in Ubuntu. I have tried adding -O0 as far right in any gcc call in the Makefiles as possible, since the last -O is the acting one. I used -Q --help=optimizers to find what to be looking for, but its output is a bit odd: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I

iPhone camera loses auto-focus when using ZBarSDK

谁说胖子不能爱 提交于 2019-12-03 15:14:56
I'm working on an app that the user can select if he wants to scan a barcode or take a picture of something. For taking a picture I'm using the UIImagePickerController as usual. For scanning barcode I'm using the ZbarSDK 1.2 ZBarReaderViewController . When taking a picture everything works perfect. When scanning a barcode: If you start the app and scan a barcode before taking a picture, it's also works perfect. But is you take a picture, and then go back and try to scan a barcode, the camera loses the auto-focus and it's just impossible to scan a barcode. To summarize: Start -> Scan -> Auto

zbar SDK dont work for armv7s(iPad 4 iOS 7)

别来无恙 提交于 2019-12-03 11:59:06
I replace zBar SDK in my project and faced with the problem. ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Volumes/ZBarSDK/ZBarSDK/libzbar.a file '/Volumes/ZBarSDK/ZBarSDK/libzbar.a' for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) I downloaded SDK from http://nerdvision.net/app-development/ios/zbar-sdk P.S. In simulator it work. You can use a custom version of ZbarSdk built for iOS 7, which can be found here : http://nerdvision.net/app-development/ios/zbar-sdk I didn't have any luck with the NerdVision version,