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
14
votes
2 answers

How to tell scons to use MinGW instead of MSVC

I'm trying to build the C++ port of zxing on Windows, but scons fails with: cl : Command line error D8021 : invalid numeric argument '/Wextra' I have both VS2010 and MinGW installed, and scons tries to use the MSVC compiler, even though the…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
14
votes
1 answer

A QR scanner inside of a Fragment

I'm using ViewPager for swiping between my Fragments. Is it possible to integrate a QR scanner (zxing or any other) inside of a Fragment so that I can swipe from scanners View to another Fragment and vice versa? As far as I can tell, the majority of…
Nikolay Arhipov
  • 147
  • 3
  • 6
14
votes
5 answers

android: zxing barcode scan successful but not returning from activity

I am successfully using zxing to scan codes, by calling the installed barcode reader's intent, but when it beeps and indicates a good scan I expect the zxing activity would return control so I can process the result, but it sits there and tries to…
Barry
  • 1,258
  • 3
  • 13
  • 27
13
votes
4 answers

ZBar vs. zxing - QR recognition comparison

Can anyone tell which library is better in small QR Codes recognition under low lighting conditions? Platform is iPhone 4/iOS 5 I tried both Barcodes (zxing) and the ZBar apps and it seems that zxing was noticeably better in recognizing the codes…
atyachin
  • 1,103
  • 1
  • 12
  • 14
13
votes
2 answers

Package com.google.zxing missing in Zxing barcode library for Android

I have downloaded the Zxing Barcode Scanner code for Android, but I can't find the package com.google.zxing in the source code. I think there's a missing library or JAR file for the project. Can anybody help me find that package? These are the…
Rana.S
  • 2,265
  • 3
  • 20
  • 19
13
votes
1 answer

Why is the camera preview rotated by 90 degrees in the Android emulator?

I have attached the webcam to the emulator and I always see the camera rotated by 90 degrees. What I did is simply to set "Webcam0" as the device to be used as the rear camera in the emulator. Background: I'm trying to fix an issue with an app I'm…
Giordano
  • 1,401
  • 15
  • 26
13
votes
4 answers

GridLayoutManager spanSizeLookup bug

I am having an issue with GridLayoutManger setSpanSizeLookup, when an orientation of activity changes, I am changing the span count while checking if the specific position is some sort of type, this works perfectly on orientation change, my only…
Kosh
  • 6,140
  • 3
  • 36
  • 67
13
votes
1 answer

Adding Menu to ZXings barcodescanner, and squeezing the surfaceview

Zxings barscanner app, I have implemented it, as a library project, and it works. Now I am to change the size of the field(Target Field) which is scanned (done as well). (though the scanning area remains the same, this didn't matter since focus was…
Anders Metnik
  • 6,096
  • 7
  • 40
  • 79
13
votes
3 answers

zxing in xcode 4.5 and ios 6

As many of you noticed; zxing does not work in latest xcode (4.5/ios 6) Here is use case: checkout latest version from trunk (as some fixes were already added) create single view application in xcode 4.5 with ios 6.0 use README to add…
Alan Harper
  • 793
  • 1
  • 10
  • 23
12
votes
1 answer

Calling barcode scanner on a button click in android application

I have downloaded the zxing 1.6 and was able to successfully run a standalone barcode scanner through it. Now this scanner is in another project and (the CaptureActivity) and I have my app's different project called MyProj , all I want to do is on…
user662237
  • 121
  • 1
  • 1
  • 3
12
votes
4 answers

Change QR Scanner orientation with ZXING in Android Studio

I hope you can help me with this. Im using the Zxing Embedded Library in order to use the QR scanner, the problem is that is on Landscape mode and I would like to change it to Portrait. I have this on the dependencies of my Graddle compile…
Matías Gaete
  • 133
  • 1
  • 1
  • 7
12
votes
1 answer

Using zxing Barcode Scanner within a web page

Is there a working example how you can use the zxing Barcode Scanner from a web page? Referring to this documentation: https://github.com/zxing/zxing/wiki/Scanning-From-Web-Pages shouldn't the following test code work? function Test1() { …
CrazyTea
  • 297
  • 1
  • 3
  • 13
11
votes
2 answers

Add custom image or text to QR code generated by ZXing.Net

I use ZXing.Net library to generate a QR code image - At the top of my class: [System.Runtime.InteropServices.DllImport("gdi32.dll")] public static extern bool DeleteObject(IntPtr hObject); My method: protected void…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
11
votes
3 answers

ZXing.Net Encode string to QR Code in CF

How could I encode my string into a QR Code using ZXing.Net? I can already decode, but having problems in encoding. It has an error that says: no encoder available for format AZTEC. Here is my code: IBarcodeWriter writer = new…
SleepNot
  • 2,982
  • 10
  • 43
  • 72
10
votes
1 answer

PhoneGap and Zxing QrCode - building issues

I currently encounter a problem with installing ZXingWidget for a PhoneGap project. I followed both "PhoneGap Plugins" and ZXingWidget installation guides, but my project building fails. Most of my errors (17) look like that…
craymond
  • 235
  • 1
  • 5
  • 12