zxing

Why there is another application called Leaks installed on the Android device when I use ZXing Bar code Library ?

五迷三道 提交于 2019-12-04 06:04:13
问题 I have an application that uses ZXing Barcode Scanner library, but when I run the application on the device, there is another additional application installed called "Leaks". Why is this application installed on the device ? When I open it nothing happens ? 回答1: It's an application called leak canary. // For development purposes only // https://github.com/square/leakcanary debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' releaseCompile 'com.squareup.leakcanary:leakcanary

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

↘锁芯ラ 提交于 2019-12-04 04:31:30
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 research I found this forum https://web.archive.org/web/20150328233747/http://developer.nokia.com/community/discussion/showthread.php/247707-Windows-Phone-8-1-Windows-Media-Capture-API-and-Preview-Frames . Can someone give me a working sample of combining an MFT and ZXing? Or how can I get the preview and handle

Android: ClassNotFoundException while including ZXing

拟墨画扇 提交于 2019-12-04 03:51:27
问题 I know there are a lot of questions already. I've been going through all of them, but still I`m not able to solve my issue. I was asked to extend an already existing android app, which is based on PhoneGap . I checked out the sources from a repo, and realized that the first developer included some library as dependency . i followed the instructions here, build in the core of ZXing isn't any build.xml for ant . I went through the instructions at XZing Getting started, build my own core-2.3.jar

How to integrate ZXing api with front camera in android? [closed]

落花浮王杯 提交于 2019-12-04 03:26:29
I just wanted to integrate ZXing API in my android app, but cant find the proper documentation. Follow these steps: 1) Download the source code here: http://code.google.com/p/zxing/source/checkout 2) Import the source code as a new project into Eclipse and make the root of the project be the folder /android (found in the source code). 3) Make sure to also copy everything under /core/src to this project, as the source code imported on step 2 requires it. 4) Make sure to set your compiler to Java 1.6 on Eclipse (right click on your project, properties, Java Compiler) otherwise you will get some

ZXing 生成二维码去掉白边(padding)

久未见 提交于 2019-12-03 23:33:13
import java.util.Map; import com.google.zxing.EncodeHintType; import com.google.zxing.WriterException; import com.google.zxing.common.BitMatrix; import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel; import com.google.zxing.qrcode.encoder.ByteMatrix; import com.google.zxing.qrcode.encoder.Encoder; import com.google.zxing.qrcode.encoder.QRCode; /** * This object renders a QR Code as a BitMatrix 2D array of greyscale values. * @description 因为该实现存在很大的白边(padding),因此将白边去掉 * * @author dswitkin@google.com (Daniel Switkin) */ public final class QRCodeWriter { private static final int QUIET_ZONE

Android zxing 二维码使用

我怕爱的太早我们不能终老 提交于 2019-12-03 23:33:03
Android Studio 添加zxing core依赖 compile 'com.google.zxing:core:3.2.1'。eclipse可以直接使用core.jar zxing的库提供了许多的工具类,这里只用到了二维码的生成和扫描,因此精简掉许多类库。解决了使用时遇到的各种问题。 demo 下载地址: https://git.oschina.net/xlxq-PHS/QRCode.git 欢迎吐槽! 1.添加 core.jar 或 'com.google.zxing:core:3.2.1'依赖; 2.将com.google.zxing 整个包(包含路径)复制到自己的项目下。 3.复制res下的资源文件: 1) raw下的beep.ogg。音频文件CaptureActivity中使用,若不想用则可以自行修改CaptureActivity 2) value 下的attrs文件,这里定义了ViewfinderView的一些属性。如下: <!--corner_color 边角颜色, scanner_color 扫描线颜色 possible_result_color 扫描点颜色 frame_color 扫描框边线颜色 mask_color 模糊区域颜色 label_text 框上方提示 --> <declare-styleable name="ViewfinderView">

二维码工具类

不问归期 提交于 2019-12-03 23:32:41
二维码工具类,提供多种生成二维码、解析二维码的方法,包括中间logo的二维码等方法。 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.2.1</version> </dependency> <dependency> <groupId>com.google.zxing</groupId> <artifactId>javase</artifactId> <version>3.2.0</version> </dependency> QrcodeUtils.java 源码: import java.awt.Color; import java.awt.image.BufferedImage; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java

使用maven打包zxing

被刻印的时光 ゝ 提交于 2019-12-03 23:00:29
此次打包在windows系统,打包前需要以下环境: java环境(maven编译需要) maven环境 zxing压缩包 一、检查环境 打开windows命令行窗口,输入:mvn -v 出现以下信息,表示maven和java的环境搭建好了。 二、下载zxing压缩包 zxing是开源项目,它的源代码在github管存,点击下面的链接下载zip压缩包并解压。 https://github.com/zxing/zxing . 三、编译zxing源码 dos窗口中进入F:\zxing-master\core目录,我这里zxing解压到了F盘根目录,以此为例; 或者进入F:\zxing-master\core目录,按住shift鼠标右键->在此处打开命令窗口; 输入命令:mvn compile 四、编译zxing源码 输入命令:mvn package 打包成功后会在core文件夹中生成target文件夹,那么zxing的jar包就在此文件夹中; 下一次记录zxing的应用 来源: CSDN 作者: 两页书 链接: https://blog.csdn.net/qq_33440246/article/details/78552994

AndroidStudio导入zxing包实现二维码扫描

跟風遠走 提交于 2019-12-03 23:00:10
AndroidStudio导入zxing包实现二维码扫描 zxing包、zxing源码及本博客示例代码下载,下载地址: [下载] 1、新建一个空白工程 2、将压缩包中的文件按目录顺序放入工程目录中 3、在项目中导入zxing.jar包 4、在..\src\main\res\values中打开string.xml,注意第一行标签代表的是自己的APP的名称,可自行修改。 同时在第二行添加“action_setting”的值 <resources> < string name = "app_name" >填入自己的APP名称</ string > < string name = "action_settings" >设置</ string > ....... 5、在项目中打开zxing的源码,将其中报错的源文件(主要是报错R找不到)顶部的import juicyactive.recodetest.R;改为自己的包名 6、在AndroidManifest.xml的application标签中添加zxing.android.CaptureActivity并添加相关权限 < uses-permission android:name = "android.permission.CAMERA" /> < uses-permission android:name = "android

获取Java生成二维码所需要的Jar包(zxing方式)

只谈情不闲聊 提交于 2019-12-03 22:59:51
现在二维码越来越多的应用在日常生活中,作为Java开发人员,使用Java来生成二维码就越来越成为必备的技能之一了。 用Java开发就需要用到Jar包,下面说下如何获取生成二维码所需要的Jar包。 首先访问https://github.com/zxing这个地址,如下图所示。我们点击"zxing"链接。 我们会看到如下图所示界面,这是zxing的源码文件,我们下载它的压缩包,点击"Download ZIP"。官网下载速度很慢,大家可以到http://download.csdn.net/detail/u012453843/9836917这个地址下载 下载完之后,解压,如下图所示。 进入zxing-master目录下,可以看到所有的源码文件,其中core和javase两个目录最重要。我们用Java生成二维码就用到这两个目录下的文件。 下面我们把core和javase两个目录下的文件打成一个jar包,方法是新建一个Java工程zxing,如下图所示。 然后我们把core目录下的com目录整个拷贝到src目录下 拷贝完后src目录如下图所示。 接着我们再把javase目录下的com目录拷贝过来,会提示是否需要覆盖,我们点击"Yes"即可。 拷贝完后会报错,但不用管它。 我们下面来打包,在工程上右键,在右键菜单中点击"Export..." 在弹出的对话框中选择"JAR file",点击