zxing

Android二维码扫描开发------zxing导出jar包

与世无争的帅哥 提交于 2019-12-03 22:56:18
To get started, please visit: https://github.com/zxing/zxing/wiki/Getting-Started-Developing ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Supported Formats 1D product 1D industrial 2D UPC-A Code 39 QR Code UPC-E Code 93 Data Matrix EAN-8 Code 128 Aztec (beta) EAN-13 Codabar PDF 417 (beta) ITF RSS-14 RSS-Expanded 首先要取得jar包,开发的时候直接把jar导入,获取jar包有两种方式 1、根据sourcecode自己编译 2、网上下载 https://repo1.maven.org/maven2/com/google/zxing/ 本文主要是自己编译jar包 下载zxing源码 https://github.com/zxing/zxing/releases 解压完结构如下

Android笔记之用eclipse给zxing打jar包

馋奶兔 提交于 2019-12-03 22:54:57
zxing是android常用扫描二维码、条码工具,如何使用eclipse导入官方demo,并打包核心库呢? 1.获取源码 https://github.com/zxing/zxing 直接download zip,解压后目录结构如图 2.使用eclipse导入 File–import–Existing Android Code Into WorkSpace–选择上图中的andorid文件夹 这就完成了zxing官方demo的导入,但是会报很多zxing包找不到,这是因为我们还需要链接zxing核心库。 对项目右键–Build Path–Link Source–链接core代码 然后我们发现包错误没了,但是还是有错,在eclipse的Problems中发现是因为没有使用jdk1.7 对项目右键–Properties–Java Compiler,全部修改为1.7即可 然后发现CameraConfigurationManager.java下面还存在一个错误,缺少CameraConfigurationUtils.java文件,这个文件是在\zxing-master\android-core\src\main\java\com\google\zxing\client\android\camera下面。直接复制到CameraConfigurationManager.java同目录下,ok

Managing views while integrating zxing for iPhone

旧城冷巷雨未停 提交于 2019-12-03 21:38:35
I am trying to integrate zxing in my already existing iPhone app. I have referred to the ScanTest example enclosed in the project download, and have succeeded in building and running the scanner. My problem lies in managing the views of the project to incorporate the scanner. Currently I have an already existing view controller(VC-A), which needs the scanner ability. I created a new view controller(VC-B) to launch the ZXingWidgetController scanner view. So the flow looks like the following: VC-A-> presentModalViewController(VC-B)->VC-B-> presentModalViewController(ZXingWidgetController) Now as

How to trigger bulk mode scan in zxing

北慕城南 提交于 2019-12-03 21:20:02
问题 I read there is a key to enable bulk mode scan in zxing. May I know how do i enable this key in an android application? I am currently using such codes to scan a barcode individually: Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_FORMATS", "PRODUCT_MODE,CODE_39,CODE_93,CODE_128,DATA_MATRIX,ITF"); startActivityForResult(intent, 0); // start the scan Thanks! 回答1: There is no concept of "bulk mode" within zxing I don't think. You can certainly

Getting Camera error in Zxing Barcode Application

不羁岁月 提交于 2019-12-03 19:46:06
问题 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 = "com.google.zxing.client.android.SCAN"; private static final String SCAN_FORMATS = "UPC_A,UPC_E,EAN_8,EAN_13,CODE_39,CODE_93,CODE_128"; private static final String SCAN_MODE = "QR_CODE_MODE"; public static final int REQUEST_CODE = 1; @Override public void onCreate

How to include Zxing library to android project?

前提是你 提交于 2019-12-03 13:21:09
I have read some answer for this question in stackoverflow, but it is not working for me. I have already a project, and now I want to integrate QR Code and barcode reader into my project. I downloaded the zip file from: core-2.2.zip I didn't find any "core.jar", I read that I have to integrate files added in "core" folder. Do I have to add all classes to my project (the whole folder)? or do I have to create a jar file with that folder? I am using Android Studio. Any one can help me? thank you There is indeed an Android application that is part of the ZXing project. It uses the core module

Is it released ZXing 2.0 different with Online ZXing decoder?

匿名 (未验证) 提交于 2019-12-03 09:19:38
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im trying to use ZXing library to develop a Java project for decoding a QR code. However, some of the image containing QR code can not be decoded by running my project, but these are working fine with Online ZXing decoder. I am just curious does the ZXing released version is the same as they are using for Online decoder? or they have tweaked the online version. I'm pulling my hair because of this confusion. public class Validator implements IValidator { private static Logger logger = Logger.getLogger(Validator.class); private BufferedImage

How to Customize the capture screen border of zxing barcode scanner from ViewFinder

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: <? xml version = "1.0" encoding = "utf-8" ?> <merge xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app = "http://schemas.android.com/apk/res-auto" xmlns:tools = "http://schemas.android.com/tools" > <RelativeLayout android:layout_width = "match_parent" android:layout_height = "match_parent" > <com.journeyapps.barcodescanner.BarcodeView android:id = "@+id/zxing_barcode_surface" android:layout_width = "match_parent" android:layout_height = "match_parent" app:zxing_framing_rect_height = "220dp" app:zxing_framing

Android Generate QR code and Barcode using Zxing

旧巷老猫 提交于 2019-12-03 07:26:15
问题 Code to generate Qr code using zxing is --- It takes string data and the imageview This works just fine private void generateQRCode_general(String data, ImageView img)throws WriterException { com.google.zxing.Writer writer = new QRCodeWriter(); String finaldata = Uri.encode(data, "utf-8"); BitMatrix bm = writer.encode(finaldata, BarcodeFormat.QR_CODE,150, 150); Bitmap ImageBitmap = Bitmap.createBitmap(150, 150,Config.ARGB_8888); for (int i = 0; i < 150; i++) {//width for (int j = 0; j < 150;

ZXing Android Generate 1D barcode

一笑奈何 提交于 2019-12-03 07:03:05
I've gone through the examples here regarding encoding barcode: http://code.google.com/p/zxing/source/browse/trunk/androidtest/src/com/google/zxing/client/androidtest/ZXingTestActivity.java But all it generates are QR. I'm looking for 1D barcode generation / encoding . What's the right encode type? Intent intent = new Intent("com.google.zxing.client.android.ENCODE"); intent.setPackage("com.google.zxing.client.android"); intent.putExtra("ENCODE_TYPE", "???"); Barcode Scanner doesn't like ENCODE_TYPE = CODE_39 nor CODE_93. Any ideas? You need the javadoc for Intents . You need ENCODE_FORMAT ,