zxing

zxing barcode scanner autofocus issue on reading second qr code

北城以北 提交于 2019-12-24 17:53:26
问题 I'm using the zxing (http://code.google.com/p/zxing/) library for doing qr code reading on Android and iOS. It works great for reading the first qr code, however then it runs into issues. An easy way to reproduce is to read a qr code, and then place another qr code in front of the device. The scanner will not read the new qr code. After moving the device so that the qr code is completely off the screen, then moving the device to refocus on the qr code, it will read it successfully. Is there

zxing barcode scanner autofocus issue on reading second qr code

一个人想着一个人 提交于 2019-12-24 17:53:19
问题 I'm using the zxing (http://code.google.com/p/zxing/) library for doing qr code reading on Android and iOS. It works great for reading the first qr code, however then it runs into issues. An easy way to reproduce is to read a qr code, and then place another qr code in front of the device. The scanner will not read the new qr code. After moving the device so that the qr code is completely off the screen, then moving the device to refocus on the qr code, it will read it successfully. Is there

how to get QR code type

故事扮演 提交于 2019-12-24 13:44:15
问题 I am working with Zxing library to decode QR code for android. I can get QR Code. Now, I want to catch what types of QR code it returns say (URL,Phone Nubmer,Plain Text etc). I tried to explore ResultParser class but i can't use it. Updated : I remove my wrong procedure using ResultParser class. Here is my onActivityResult Code. @Override public void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 0) { if (resultCode == RESULT_OK) { contents = intent

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

笑着哭i 提交于 2019-12-24 12:13:09
问题 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 my app than

Is it possible to set version while generating qr code using zxing lib in android?

五迷三道 提交于 2019-12-24 07:15:56
问题 While generating the qr code for android using zxing library is it possible to set the version number like version 4 or any other version . Any guidance or link would be appreciable . Thank you. 回答1: No. There would be no real point to this. The version can't be lower than what is required to encode the data, and setting it higher just makes a denser QR code that's slightly harder to read. 来源: https://stackoverflow.com/questions/24484473/is-it-possible-to-set-version-while-generating-qr-code

QR Codes encoded by DelphiZXingQRCode not decodable with ErrorCorrectionLevel > Low

99封情书 提交于 2019-12-24 06:50:01
问题 I am using this Delphi-Unit. I am forced to use this old Delphi implementation, so don't ask about that: https://github.com/foxitsoftware/DelphiZXingQRCode The QRcodes it produces are decoded by any decoders just fine, as long as I keep the error correction level at "Low". If I increase the error correction level, the generated codes can not be decoded by any decoder I tried so far. But I am forced (by a standard) to use an error correction level of Medium, no more no less. However it is not

Python调用zxing

▼魔方 西西 提交于 2019-12-24 04:39:18
import os import jpype from jpype import * class ZXQRcode(object): def __del__(self): # 关闭JVM shutdownJVM() # 生成二维码 def make_qr_code(self, file_data, file_path): jar_path = os.path.join(os.path.abspath('.'), 'javase-3.4.0.jar') jar_path2 = os.path.join(os.path.abspath('.'), "core-3.4.0.jar") # 启动JVM jpype.startJVM(getDefaultJVMPath(), "-ea", "-Djava.class.path=%s;%s" % (jar_path, jar_path2)) # assert False, 'STOP' # 加载需要使用到的类型 MultiFormatWriter = JClass("com.google.zxing.MultiFormatWriter") BarcodeFormat = JClass("com.google.zxing.BarcodeFormat") File = JClass("java.io.File") ImageIO = JClass(

Preferred Developer Android Phone for using the ZXing library

北慕城南 提交于 2019-12-23 18:06:39
问题 Using this library, ZXing, we have a project at school in which we'll implement a inventory system using Android phones. We aim to use an Android phone to be a inexpensive replacement to this: I've read some of the warnings on the FAQ for certain phones. Is there a specific phone that Android developers prefer (with use of the ZXing library in mind)? We have to buy the phone ourselves, so we would prefer not to buy the wrong phone! 回答1: You want phones with auto-focus capability on their

ZXing.NET decode PDF417 Barcode from HTML5 Video

99封情书 提交于 2019-12-23 16:56:51
问题 I am trying to use jQuery/JavaScript with ZXing.NET to decode a PDF417 barcode from a video source. Here is my HTML: <video id="video" width="800" height="800"></video> <canvas id="canvas" width="800" height="800"></canvas> And the jQuery for the camera and the code that calls an .NET method to debug the barcode: var video = document.getElementById('video'); if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { const hdConstraints = { video: { width: { min: 1280 }, height: {

Using Zxing and Google Goggles with my app

不打扰是莪最后的温柔 提交于 2019-12-23 15:37:29
问题 I have an app, i used this code to integrate zxing public Button.OnClickListener mScan = new Button.OnClickListener() { public void onClick(View v) { Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); startActivityForResult(intent, 0); } }; public void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == 0) { if (resultCode == RESULT_OK) { String contents = intent.getStringExtra("SCAN_RESULT");