zxing

How to implement zooming feature with zxing barcode reading application?

送分小仙女□ 提交于 2019-12-06 10:55:09
问题 I'm having the zxing barcode reading application. I need to add zooming feature in the application, so that i can scan barcode from larger distance. i.e. during scanning the barcode, it should be able to zoom the camera preview. How can i do this? Thanks. 回答1: Zooming doesn't really help, because it's digital zoom. In fact it tends to hurt scanning. It only helps by making the user hold back further, but you can do that with other UI prompts. But, it's not hard to set zoom. You set whatever

scanning more than one barcode with zxing in java

萝らか妹 提交于 2019-12-06 10:32:36
I need to read pdf417 barcodes from tiffs. There is usually more than one barcode on the image- This is my code: InputStream in = null; BufferedImage bfi = null; File[] files = new File(DIR).listFiles(); for (int i = 0; i < files.length; i++) { if (files[i].isFile()) { try { System.out.println(files[i].getName()); in = new FileInputStream(files[i]); bfi = ImageIO.read(in); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if (in != null) { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } } if (bfi != null) {

How to create for IntentIntegrator in Android with zXing

匆匆过客 提交于 2019-12-06 09:19:30
I want to create a object for IntentIntegrator in Android. IntentIntegrator integrator = new IntentIntegrator(ZBarReaderActivity.this); Here ZBarReaderActivity is my Activity class. Thanks in Advance, Please help me. IntentIntegrator is class from com.google.zxing.integration.android.IntentIntegrator package. which is used for identify Qr Code content is Telephone Number, WebSite, WebUrl. IntentIntegrator integrator = new IntentIntegrator(this); /* "this" is enough */ for further information, watch this: http://www.youtube.com/watch?v=mVkaua4Lcvo it's explained in german, but you can see the

Xamarin Android QR-Image ZXing - Not working

浪子不回头ぞ 提交于 2019-12-06 08:47:32
问题 My project with Xamarin and MvvmCross has a Core-Project (to share code). In this Core-Project, I generate a QR-Image and save it to the local-drive in my Android-App. The following code generates the bytes for a content (always an url): var options = new QrCodeEncodingOptions { Height = 300, Width = 300, Margin = 0, PureBarcode = true }; var writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE, Options = options }; return writer.Write(content); I save this byte-array with the File

using zxing barcode reader through surfaceview

这一生的挚爱 提交于 2019-12-06 07:41:48
问题 I am creating a Barcode Scanner app and I want to use Zxing to read barcodes, my app has a surfaceview and showing camera into that, but now I want to scan barcode from my SurfaceView camera , the reason that I use it, is that I have two Edittexts under the surface view in my layout to show content of barcode. How should I create an app like, the main problem is that how can I set zxing into surface. If there's any way I would appreciate. Layout screenshot: 回答1: Customize your zxing layout

ZxingWidget archive error on ios6.0

纵饮孤独 提交于 2019-12-06 07:31:09
问题 I try to archive the ZxingWedget Demo,scanTest. compile is ok. it can run on the simulator. but it can not archive completely on ios6.0. this is the error: Stripping /Users/ganguo/Library/Developer/Xcode/DerivedData/ScanTest-gadjcaxemklyqpcxsvmiorzakfhu/Build/Intermediates/ArchiveIntermediates/ScanTest/IntermediateBuildFilesPath/ZXingWidget.build/Release-iphoneos/ZXingWidget.build/Objects-normal/armv7/libZXingWidget.a cd /Users/ganguo/objc/lib/zxing/iphone/ZXingWidget setenv PATH "

ZXing Result.getRawBytes(), what exactly is it?

老子叫甜甜 提交于 2019-12-06 07:24:53
I'm working with the zxing QR code APIs, and I'm trying to extract binary data from a QR code on an android device. However, on android, Result.getResultMetadata() isn't passed through to me through the Intent, so I tried to use Result.getRawBytes() to retrieve my byte array. However, getRawBytes() does not seem to return the same thing. What exactly is Result.getRawBytes() and does anyone know how to extract byte arrays from zxing QR codes properly? Thanks So what i think you want is the raw, decoded data in a byte array. The intent source that zxing gives you is missing the metadata, but it

Objective-C : is it possible to detect QR code data type?

这一生的挚爱 提交于 2019-12-06 02:44:57
I did qr code with Zxing, Right now I can read data but what I want is : Example: Be able read type of QR Code is wifi, VCard, Calendar, url, etc... if detect QR Code is wifi so I be able code to change wifi setting key, So, how do i know that data read from QR code is wifi? QR Code itself does not specify any types. Its plain text. It can be an HTTP URL or a custom URL. (e.g. it should have "type://wifi" inside it. You can then use it to see what the type is). But off-the-shelf, there is no such thing. You have to know who is creating the QR Codes and what is he storing in them. There is no

ZXing: Finding the bounding rectangle of Barcode

余生颓废 提交于 2019-12-06 02:34:55
问题 I was experimenting with ResultPoints which returns the points related to the barcode in the image. For a QR Code, ResultPoints returns a set of 4 points which are the coordinates of the four boxes at each corner of the QR Code. When I experimented the same with a Barcode, it returns two points which denote the width of the barcode. How do I find the bounding rectangle of the barcode? Is there any way by which I can calculate the coordinates of the top left corner and bottom right corner of

Apache FOP 1.1 QRCodes with zxing

房东的猫 提交于 2019-12-06 00:49:32
OK I am having an issue producing QR Codes in FOP 1.1 using barcode4j-2.1 and zxing-0.1.2. I currently have a FOP 1.0 implementation working correctly, by adding <prefer-renderer>true</prefer-renderer> to the fop configuration file. barcode4j barcodes are working regardless if prefer renderer is set or not, fixed in barcode4j-2.1. I have all necessary dependancies: fop-zxing-0.1.2-jar-with-dependencies.jar barcode4j-fop-ext-complete.jar saxon9he.jar - using for xslt 2.0 ... here is the barcode snippet: <fo:block> <fo:instream-foreign-object> <qr:qr-code xmlns:qr="http://hobbut.ru/fop/qr-code/"