Questions tagged [zxing]

ZXing (pronounced "zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Its focus is on using the built-in camera on mobile phones to scan and decode barcodes on the device, without communicating with a server, though the library also supports use on a server.

Questions with this tag concern the open-source barcode encoding and decoding library ZXing.

2561 questions
28
votes
4 answers

How to integrate ZXing Library to Android Studio for Barcode Scanning?

I've been looking all over internet how to include zxing library to my project, and I found this tutorial: http://blog.dihaw.com/integrating-zxing-in-your-android-app-as-standalone-scanner/ But when I reach the point that you need to check for…
Mauricio Silva
  • 483
  • 1
  • 5
  • 13
23
votes
11 answers

Getting Camera error in Zxing Barcode Application

I am trying to use Zxing Library for developing a barcode scanner. My activity is as follows: public class Scanner extends Activity { private static final String PACKAGE = "com.test.scan"; private static final String SCANNER =…
Smitha
  • 6,110
  • 24
  • 90
  • 161
23
votes
3 answers

sample code to detect QRCode in an image

I use this code in C# to decode (not detect) a QRCode and it works: LuminanceSource ls = new RGBLuminanceSource(image, image.Width, image.Height); Result result = new QRCodeReader().decode(new BinaryBitmap(new HybridBinarizer(ls))); Now I would…
robob
  • 1,739
  • 4
  • 26
  • 44
22
votes
2 answers

Embedding ZXing in android app

So I'm another unlucky android development beginner who needs to have ZXing barcode scanner embedded in his app. There is plenty of questions asking how to do this here on stackoverflow but none of them has an answer that is really understandable…
boogieman
  • 567
  • 2
  • 5
  • 10
21
votes
7 answers

Android - Barcode Scanning, Options? Zxing?

I want to create an application for Android that will be able to scan barcodes, get the information contained within the barcode and then be able to use that information in some way. I have no idea how to create a barcode scanner so I went Googling…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
20
votes
10 answers

Updating sdk got NoClassDefFoundError for zxing

How to solve this NoClassDefFoundError. I have integrated Zxing in my app, every thing is working fine. Then I have updated my sdk and eclipse plugin, and when I run the project the log says 03-27 17:27:45.173: E/AndroidRuntime(8917): FATAL…
Kishore
  • 2,051
  • 5
  • 26
  • 45
20
votes
4 answers

ZXing how to scan QR-Code AND 1D barcode?

I just imported the ZXing library in my app, I know how to set up the putExtra function to scan QR-Code barcode: INTENT = new Intent("com.google.zxing.client.android.SCAN"); INTENT.putExtra("SCAN_MODE",…
MataMix
  • 3,276
  • 10
  • 39
  • 58
20
votes
7 answers

Storing binary data in QR codes

I'm trying to store binary data in a QR code. Apparently QR codes do support storing raw binary data (or ISO-8859-1 / Latin1). Here is what I want to encode (hex): d1 50 01 00 00 00 f6 5f 05 2d 8f 0b 40 e2 01 I've tried the following…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
20
votes
4 answers

Xamarin forms Barcode Scanner

I couldn't find any working source of Xamarin forms barcode scanner. Is there any working sample of Xamarin forms barcode scanner using zxing library?
Aneesh.A.M
  • 1,128
  • 4
  • 17
  • 35
20
votes
2 answers

How to read multiple qr codes from one image using zxing library

I am currently developing a scanner that reads multiple QR codes found in one image. I manage to read the QR codes in the image but it's giving me inconsistent results. Assuming there are 4 QR codes in the image, sometimes I can read 2 and sometimes…
She Smile GM
  • 1,322
  • 1
  • 11
  • 33
19
votes
10 answers

zxing onActivityResult not called in Fragment only in Activity

I'm having some issue with zxing onActivityResult(). As you can see in the code I did properly invoke new intent as described in https://code.google.com/p/zxing/wiki/ScanningViaIntent. The question is how can I catch onActivityResult() in…
5er
  • 2,506
  • 7
  • 32
  • 49
18
votes
2 answers

QR code scanning without fullscreen camera

I need to continuously scan QR codes in my Android app while the main View of the app is on the screen. The main view should contain a window with camera preview, but not a fullscreen camera preview. An example of usage: Main view containing a list…
tomashnilica
  • 181
  • 1
  • 4
18
votes
3 answers

Android ZXing Get Barcode Image

I am using Zxing library to generate a barcode in my Android application Intent intent = new Intent("com.google.zxing.client.android.ENCODE"); intent.putExtra("ENCODE_FORMAT", "UPC_A"); intent.putExtra("ENCODE_DATA",…
HT03
  • 320
  • 1
  • 3
  • 10
18
votes
5 answers

Android zxing - portrait camera preview/surfaceview is stretched/warped

I have managed to use the answer here to rotate the camera preview to portrait: http://code.google.com/p/zxing/issues/detail?id=178#c46 however the preview itself is stretched/warped - the height appears to be stretching to fill the box (but it…
AndroidNoob
  • 2,771
  • 2
  • 40
  • 53
17
votes
3 answers

How do I encode characters using UTF-8 in a QR code using Zxing project?

Zxing Project is a famous open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. But I believe there are somebody have the same problem just like me: I can't Encode UTF-8 characters in a…
Coding minion
  • 527
  • 2
  • 4
  • 12