FAQ Database Discussion Community


Barcode reader and QR code reader in WP8.1

c#,windows-phone-8.1,zxing,qr-code,barcode-scanner
I am trying to implement barcode scanner and QR code scanner in WP8.1 app. But it does not read the image properly and gives exception Value does not fall in expected range private Result _result; async private void scanQR_Tapped(object sender, TappedRoutedEventArgs e) { try { var cameraID = await GetCameraID(Windows.Devices.Enumeration.Panel.Back);...

Zxing how to save the image or make QRCode?

java,android-studio,zxing,qr-code
I integrated Zxing in Android studio and scanning, to save scanned images. But 'Zxing' is not returning any image, so I need to convert the result into a QRCode. Is there any other way to save QRCode images? I tried teaching Bhavika provided However, the following error          import java.awt.Color;...

How to compile zxing to aar?

java,android,maven,zxing,aar
I am green with maven, how to compile aar library from zxing project? I tried use axis2 maven plugin, but i get error: [ERROR] Failed to execute goal on project android: Could not resolve dependencies for project com.google.zxing:android:jar:4.7.0: The following artifacts could not be resolved: com.google.zxing:core:jar:3.1.1-SNAPSHOT, com.google.zxing:android-core:jar:3.1.1-SNAPSHOT: Could not find...

Return barcode location in the image while decoding with zxing

c#,kinect,zxing
In my current project, I need to know how to get the location of the barcode in the image with zxing, in pixel or range of pixels. My image source is Kinect v2. The main purpose is to associate barcode with body frame, which requires the location information. I'm using...

CaptureActivity from Zxing library didn't return when barcode is scanned

android,android-intent,zxing
i have integrated zxing library in my app, i used to call zxing via intent : Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE", "ONE_D_MODE"); intent.putExtra("SCAN_FORMATS", "CODE_39,CODE_93,CODE_128,DATA_MATRIX,ITF,CODABAR,EAN_13,EAN_8,UPC_A,QR_CODE"); startActivityForResult(intent, 1); But com.google.zxing.client.android.SCAN allows user to choose scan app if he has another barcode scanners, and i want that if user starts scan from...

NotFoundException even when a barcode is in the picture

java,swing,webcam,zxing
I am trying to make a simple barcode scanner project for fun. And I've run into a slight problem. I am using zXing and Webcam Capture for this. Even if a Barcode is present in the picture, Java keeps telling me none is found through the NotFoundException. I look for...

ZXingObjc - Converting object c to swift

iphone,swift,barcode,zxing
I'm a newbie with Ios. i'm learning swift and overlooked object c. Currently, i'm writing an demo with swift and xcode 6.1 which can scan qrcode and barcode from camera or an image from image library. before, i tried using zbar SDK to do this, but it happened error and...

How to open “zxing Barcode” scanning screen in a small window?

android,android-intent,android-camera,zxing,barcode-scanner
"zxing Barcode" scanner is successfully working in my App https://github.com/journeyapps/zxing-android-embedded I want to open the scanning screen (i.e., Intent), on same Activity in the center in a small window How can I get this type of Interface ? http://i.stack.imgur.com/bpT5R.jpg...

how can I define method in fragment?

android,methods,fragment,zxing
Ihave tried this code while extending Activity and it's run (Y) but when extending fragment as I paste here it give me this exception : java.lang.IllegalStateException: Could not find a method scanQR(View) in the acttyivity class com.example.pc_orbit.myapplication.Citizen for onClick handler on view class android.widget.Button with id 'scanner' public class...

Add text from QR Code next to generated PNG

c#,zxing,qr-code
I have made an application which generates me a QR Code in a PNG image, but now I have to insert the text from QR Code next to the QR Code image. I don't have any experience using ZXing Library but I'm thinking that it may contain an option for...

Could not find or load main class com.google.zxing.client.j2se.CommandLineRunner

java,python,zxing
I'm trying to install Python-Zxing a Python wrapper for zxing, which is a library for reading barcodes, and qr codes. I have installed it as described in the documentation, but each time I try to run it I get the following error: Error: Could not find or load main class...

How to find scanned image is QR or Barcode?

android,zxing
Hi How to get scanned image is barcode or QR? Here is my code where I can get only product id but i couldn't get scanned format name. How to solve this. Please me to solve this. import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import com.contus.sportscorner.utils.Constants; import com.google.zxing.Result; import com.google.zxing.client.android.CaptureActivity; public...

zxing run time exception into android application

java,android,zxing,barcode-scanner,scanning
I am successfully able to run the zxing project. Now, I am integrating the zxing with my project to integrated scan application. 05-16 07:21:01.380: E/AndroidRuntime(5512): FATAL EXCEPTION: Thread-411 05-16 07:21:01.380: E/AndroidRuntime(5512): Process: com.tallymaster9.tradetec, PID: 5512 05-16 07:21:01.380: E/AndroidRuntime(5512): java.lang.Error: Unresolved compilation problems: 05-16 07:21:01.380: E/AndroidRuntime(5512): case expressions must be constant...

QR-encode a String to Image in Android project using zxing

android,zxing,eclipse-adt
I am trying to create a simple Android app, which would display a QR-coded image - by using zxing library. So I have installed HomeBrew, ant and maven at my Mac OS Yosemite notebook and pointed the ANDROID_HOME environment variable to the location of Android SDK. Then I have checked...

Implement Realtime Barcode Scanner on Windows Phone 8.1 Runtime using ZXing and MFT

windows-phone-8.1,barcode,zxing
I'm working on a Windows Phone 8.1 Runtime shopping application which needs barcode scanner feature. I'm using the ZXing lib, which is fine. My problem isn't about decoding the picture, ZXing does a great job, but to get the Camera Preview realtime, and feed it to ZXing. After a little...

java.util.zip.ZipException: duplicate entry

android,android-studio,android-gradle,zxing,android-developer-api
I have been battling this error all day in Android Studio. Project was imported from an eclipse solution. I have been trying to implement all fixes that are listed for similar posts, nothing is working. I am an Android beginner. I will be happy to provide any further information. Error:Execution...

How to restart camera efficiently in a fragment - Barcode Scanner

android,android-fragments,zxing
I have two fragments in my app and I am trying to implement a barcode scanner using ZXingScanner library in one of them. The implementation works fine. My question is basically related to bad design. When the user scans a valid code a dialog box appears saying the code is...

Trouble generating Barcode using ZXing library with large data

java,android,image,barcode,zxing
I need to generate barcode in 128A format with data: 900000588548001100001305000000000207201512345.6|12345.7 I'm using ZXing library and Here is my method: private void barcodeGenerator(String data) { try { com.google.zxing.MultiFormatWriter writer = new MultiFormatWriter(); BitMatrix bm = writer.encode(data, BarcodeFormat.CODE_128, 700, 200); Bitmap ImageBitmap = Bitmap.createBitmap(700, 200, Config.ARGB_8888); for (int i = 0;...

Modify scanner UI to be a rectangular portrait vs 320x480

ios,xcode,cordova,phonegap-plugins,zxing
I would like to be able to modify the green box and the red strip on the scanner UI to be a rectangular scan vs a 320x480 always. I have added debugging notes and found out that when the loadView gets called, it always sets the previewLayer's dimensions to 320x480...

Integrating QR scanner to Android app

android,zxing,qr-code,zbar
I'm developing an android app for my client and he requested QR scanner to be built inside the app. So, I don't want that users have to download another app from GooglePlay. In other words, I don't want to call another app that is QR scanner from my app. I...

Call a method inside an event handler function

c#,zxing
I'm trying to implement an application in C# which generates me a QR Code. I've managed to do this, but I don't know how to call CreateQRImage(string inputData) inside the genButton_Click(object sender, EventArgs e). I inside the windows form I have a textbox and a button, and I think that...

Runing .jar with argument that contains char “>” and some strange things happen

java,jar,zxing
I have a .jar file, calling it like this: java -jar qr-0.1.jar message=])rsfkoekfoe023k20f9k0fk3oi43jf The code generates an pdf417 qr image, and drops it at c:/tmp, all outputs are displayed in the console. The problem is when I put the character > in the message, like so: java -jar qr-0.1.jar message=])>rsfkoekfoe023k20f9k0fk3oi43jf...

Zxing QR Scanner Embeded disable beep sound

java,android,android-studio,embedded,zxing
I have integrated Zxing QR Scanner in my Android app using the instructions here: https://github.com/journeyapps/zxing-android-embedded ( Adding aar dependency with Gradle) Everything works great with the scanner but when the scan is succesfull and the phone media volume is not on mute the app generates a beep sound. Can you...

How does the zxing.appspot.com/scan webpage open the barcode scanner in Android?

android,zxing
The scan.html in the source has no action specific to a barcode scanner attached to the click event of the "click here" link. as seen in : <p>To scan barcode and return to webpage <a href="">click here</a></p> Where is this connection made? How does the browser know that when I...

ZXing imports disappearing

android,android-studio,zxing
I am trying to install zxing in android studio but i am running into some trouble. I have looked around at lots of different posts and tutorials and they have all said to just add the following lines into the build.gradle dependencies compile 'com.google.zxing:core:3.1.0' compile 'com.google.zxing:android-integration:3.1.0' I have done this...

cannot resolve symbol 'CameraConfigurationUtils' on Google Glass

android,google-glass,zxing
I recently checked out some code from Git on Android Studio. The project uses barcodeScanner, I use CameraConfigurationManager.java but when I check I get an error from CameraConfigurationUtils. Might anyone know why? Thanks! code: private CameraConfigurationManager() { } static void configure(Camera camera) { Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(1280, 720); //parameters.setPreviewSize(1920,...

ZXing 2D barcode decoding: UTF-8 characters not decoded properly

java,utf-8,barcode,zxing
I'm trying to use ZXing to read 2D barcodes and it mostly works fine, except it doesn't really recognize some UTF-8 characters like č and ć. I'm using this code to set the encoding: MultiFormatReader reader = new MultiFormatReader(); Hashtable hints = new Hashtable(); hints.put(EncodeHintType.CHARACTER_SET, "UTF-8"); reader.setHints(hints); result = reader.decode(bitmap);...

Android Studio get char code

android,char,zxing
In ZXing return I have code: result.getContents().substring(0, 1) And I would like get first char and return his char-code. The geting first char work correctly, but I don't found code to change char to char code. Any Ideas?...

zxing library : unable to get into activityforresult

android,zxing,barcode-scanner
package com.datavsn.QuickTransfer; import android.app.Activity; //import jim.h.common.android.zxinglib.integrator.IntentIntegrator; //import jim.h.common.android.zxinglib.integrator.IntentResult; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.TextView; import android.app.Activity; import android.content.Intent; import android.os.Bundle;...