zbar-sdk

zbarsdk ZBarReaderViewController - set full screen for ipad

廉价感情. 提交于 2019-12-11 01:17:36
问题 I am not able to display the zbarsdk reader in full screen on iPad. It keeps showing in the top left hand corner. I have tried the following reader.wantsFullScreenLayout = YES; reader.cameraOverlayView.frame=CGRectMake(0, 0, X, Y); //X and Y are iPad dimensions [reader.cameraOverlayView sizeToFit]; Any suggestions would be much appreciated 回答1: OK, the solution did come from the zbar sourceforge forums. iPad full screen support is only supported in their latest beta version. To get this, go

Python code for determining corner locations of a QR Code using Zbar

耗尽温柔 提交于 2019-12-10 05:32:11
问题 I would like to extend the code here to extract the corners of the QCodes. #!/usr/bin/python from sys import argv import zbar from PIL import Image if len(argv) < 2: exit(1) # create a reader scanner = zbar.ImageScanner() # configure the reader scanner.parse_config('enable') # obtain image data pil = Image.open(argv[1]).convert('L') width, height = pil.size raw = pil.tostring() # wrap image data image = zbar.Image(width, height, 'Y800', raw) # scan the image for barcodes scanner.scan(image) #

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

我的梦境 提交于 2019-12-09 09:23:38
问题 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. 回答1: You can use a custom version of ZbarSdk built for iOS 7, which can be found

Maximum length of a Code 128 barcode

冷暖自知 提交于 2019-12-09 02:49:25
问题 I need to create a Code 128 barcode with a maximum of 44 characters. What is the maximum number of characters supported by the Code 128 barcode format? I came to know that Code 128 can encode all 128 characters of ASCII, but I cannot determine the maximum number of characters it supports. 回答1: The specification for Code 128 (ISO/IEC 15417) leaves the maximum length undefined and states that this is something that should be defined by any derivative application [*] standard: 4.7.1 Symbology

ZBar API Embedded Scanner Blur issue

∥☆過路亽.° 提交于 2019-12-08 10:44:53
问题 I am using ZBar iPhone SDK in one of my projects (iOS SDK 5.1 ,XCode 4.4.1 and device running iOS 5.5.1). I am using the embedded scanner from the examples provided in the SDk itself. Now the issue which I am facing is that I successfully scan a bar code and move to another view controller ( using navigation controller). When I come back (pop the second view controller) the scanner i.e the ZBarReaderView doesn't scan the subsequent bar codes , infact the overlay shows a blur image of the

Issue with Zbar qr code scanner on Sony Phone

和自甴很熟 提交于 2019-12-08 05:53:45
问题 I am developing an android application that scans QR codes using the Zbar API. However upon testing, I have noticed that the application worked perfectly fine on Samsung, HTC and a chinese brand phone but not on a sony device(Xperia z1). What happens is that the camera and viewer works fine in the first few seconds but suddenly crashes. Is there an issue with regards to the Zbar API for it not to work with Sony phones, or is this an isolated scenario?? Are there already solutions for this

Add overlay over top of ZBar scanner

久未见 提交于 2019-12-07 08:19:05
问题 I'm using the ZBar SDK to read QR codes on iPhone, however I want to add some text to the bottom of the camera/scanner view that is instructional text for the user. Here is what I have so far: UIView *cameraOverlayView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; cameraOverlayView.backgroundColor = [UIColor redColor]; UILabel *instructionLabel = [[UILabel alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; [instructionLabel setTextColor:[UIColor

ZBar - QR Code Scanner, crashing in Android Studio

让人想犯罪 __ 提交于 2019-12-06 21:23:55
问题 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

Add overlay over top of ZBar scanner

给你一囗甜甜゛ 提交于 2019-12-05 12:13:06
I'm using the ZBar SDK to read QR codes on iPhone, however I want to add some text to the bottom of the camera/scanner view that is instructional text for the user. Here is what I have so far: UIView *cameraOverlayView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; cameraOverlayView.backgroundColor = [UIColor redColor]; UILabel *instructionLabel = [[UILabel alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; [instructionLabel setTextColor:[UIColor grayColor]]; [instructionLabel setBackgroundColor:[UIColor clearColor]]; [instructionLabel setFont:[UIFont

using opencv instead of imagemagick in zbar qr code decoder

走远了吗. 提交于 2019-12-05 04:45:48
问题 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