zxing

ZXing on Android PDF417

断了今生、忘了曾经 提交于 2019-12-05 02:51:26
Was anybody able to read the PDF417 barcode with use of the ZXing library on the Android OS? They are supporting this - and according to their page it is in 'alpha' stage. We are not looking for perfect solution - since the PDF417 is pretty complex and needs a very good camera with auto-focus, we can accept that it will be working only on few pre-selected high end devices. We have tried also the Barcode Scanner + available on the Android Market - it has the PDF417 option in the settings, but whatever we read it always fails. We were looking also for commercial SDK, also here on stackoverflow,

java 合成两张图片或图片与二维码

巧了我就是萌 提交于 2019-12-05 01:04:33
java中偶尔会出现需要将一张小图片嵌入大图中或带二维码的海报图片,那么本文就是奔着这个目的来的,直接上腊肉! zxing是生成1D和2D条形或二维码的工具类库,java图形库Graphics2D进行图片的合成。 依赖: <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.3.3</version> </dependency> 代码: 以下为合成图片和二维码,合成2张图片参看第一个方法注释掉的代码 /* * overlapImage * @description:合成二维码和图片为文件 * @author 李阳 * @date 2018/12/13 * @params [backPicPath, code] * @return void */ public static final void combineCodeAndPicToFile(String backPicPath, BufferedImage code/*String fillPicPath*/) { try { BufferedImage big = ImageIO.read(new File(backPicPath)); BufferedImage small = code; /*/

使用zxing工具包创建和解析二维码

牧云@^-^@ 提交于 2019-12-05 01:03:21
关于二维码是什么,以及二维码是如何生成的,我也没有研究得很深入, 就不多说了, 以免误导大家。请参看: java 二维码原理以及用java实现的二维码的生成、解码 二维码的生成细节和原理 下面是一个可以生成和解析二维码的工具类,该类用到了zxing工具包,我通过Maven去下载的: <dependencies> <!-- JavaSE包依赖于Core包,因此Core包不需要直接依赖了 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.1.0</version> </dependency> --> <dependency> <groupId>com.google.zxing</groupId> <artifactId>javase</artifactId> <version>3.1.0</version> </dependency> </dependencies> 在网上搜索的时候我发现,有不少同学在使用maven的时候都同时导入了这两个包,但是我发现这个artifactId为javase的包依赖于core包,因此我们不需要再在pom.xml中声明对core包的依赖了。 下面这个类是一个工具类,该类可以生成一维码和二维码,也可以解析二维码: package

ZXING Android Embedded Usage of IntentIntegrator

江枫思渺然 提交于 2019-12-04 21:10:46
I am new to Android development and still trying to get the grasp of some of the concepts. I find the best way to learn is to jump right into the deep end with a project. With that said, here is my question: I have integrated ZXing Android Embedded into my application; however, I am having trouble understanding the way in which you use IntentIntegrator. All I am trying to do at the moment is call the QR scanner to the screen when the user taps a button. I have been trying to follow the instructions on their github link [here][1] but have been unsuccessful. Here is what my function looks like

How to include Zxing library to android project?

允我心安 提交于 2019-12-04 20:58:55
问题 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

Generating GS1 DataMatrix using ZXing.Net

☆樱花仙子☆ 提交于 2019-12-04 19:42:40
What I need Is to generate a working GS1 DataMatrix, using this test content: (240)1234567890(10)AA12345(11)123456(21)1(96)1234567 Steps I've downloaded the nuget package from here: and I've created a console app that uses this code: private static void DoGs1DataMatrixStuff() { var writer = new BarcodeWriter { Format = BarcodeFormat.DATA_MATRIX }; writer .Write("(240)1234567890(10)AA12345(11)123456(21)1(96)1234567") .Save(@"C:\Temp\barcode.png"); } There's no obvious specific GS1_DataMatrix format I can use ... that gives me which if read by a scanner app on my smartphone, gives the literal

Android扫描条形码实现

♀尐吖头ヾ 提交于 2019-12-04 19:20:48
扫描和识别条形码的android支持库 android支持扫描条形码。不过手里没有真机,无法理解该功能是一个应用,还是一个可API调用的功能。不过在网上找到一个免费开源的android处理条形码的库。见: http://code.google.com/p/zxing 可以作为应用安装到android上,见: http://code.google.com/p/zxing/wiki/GettingStarted 或者,在另外的程序中使用该功能: http://code.google.com/p/zxing/wiki/ScanningViaIntent 编写最简单的android扫描条形码功能 已经有java的第三方开源条形码识别库(zxing)了,在自己的应用中扫描条形码实际上只需调用该第三方库的实现即可。写 扫描和识别条形码的android支持库 的时候还没有g1手机,现在可以试试了。 为了能调用zxing,需要先安装google market中的barcode scanner: 为了能调用zxing,需要先安装google market中的barcode scanner: ‍ 程序很简陋,第一个界面: ‍ 第二个界面,跳到了zxing库提供的Activity去做条形码扫描,这里扫描的是 生成QR二维条码 中的本站url。 ‍ qr码瞬间就可以识别到

android超好用基于zxing全屏扫条形码【详细步骤】(二)

倾然丶 夕夏残阳落幕 提交于 2019-12-04 19:18:19
经过了android超好用基于zxing全屏扫码【详细步骤】(一),我已扫了3天的条形码,但是还不太满意,原因如下:当相机正着和反着的时候能实现扫码,侧着不行。怎么能实现任意角度扫码呢? 1.调整摄像头方向 参考了: http://blog.sina.com.cn/s/blog_7b7ddaf90101dval.html 首先是相机问题:相机旋转时不太舒服,参考了这篇文改了一下,没改角度依然默认orientation是portrait。这篇文章讲的不太清楚,这里稍微展开:首先改一下扫码那个CameraManager添加一个方法setCameraDisplayOrientation这个可以调整摄像头方向, public void setCameraDisplayOrientation(Activity activity, int cameraId) { android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo(); android.hardware.Camera.getCameraInfo(cameraId, info); int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();

Android二维码-史上最全

浪子不回头ぞ 提交于 2019-12-04 19:15:26
QRCode 扫描二维码、扫描条形码、相册获取图片后识别、生成带 Logo 二维码、支持微博微信 QQ 二维码扫描样式 ZXing 生成可自定义颜色、带 logo 的二维码 ZXing 扫描二维码 ZXing 识别图库中的二维码图片 可以设置用前置摄像头扫描 可以控制闪光灯,方便夜间使用 可以定制各式各样的扫描框 可定制全屏扫描或只识别扫描框区域内的二维码 ZBar 扫描二维码「扫描中文会有乱码,如果对中文有要求,请使用 ZXing」 非常实用的,你老板要的要求这里面都有。 拿走不谢 项目地址: 点击打开链接 来源: CSDN 作者: 曾自强 链接: https://blog.csdn.net/zzq272804553/article/details/76700315

Nexus 5X 使用Zxing扫描倒立

流过昼夜 提交于 2019-12-04 19:14:31
Nexus 5X 使用Zxing扫描倒立的原因说是Nexus 5X 的摄像头是倒装的。 今天简单解决下,方案是判断机型如果是Nexus 5X,就倒立摄像头 //解决nexus5x扫码倒立的情况 if(android .os .Build .MANUFACTURER .equals ( "LGE" ) && android .os .Build .MODEL .equals ( "Nexus 5X" )) { camera .setDisplayOrientation ( 270 ) ; } 这样就OK了,如图: 下面附加下手机系统详细信息 private String getDeviceInfo(){ StringBuffer sb =new StringBuffer() ; sb .append ( "主板:" +android .os .Build .BOARD ) ; sb .append ( "\n系统启动程序版本号:" + android .os .Build .BOOTLOADER ) ; sb .append ( "\n系统定制商:" +android .os .Build .BRAND ) ; sb .append ( "\ncpu指令集:" +android .os .Build .CPU _ABI) ; sb .append ( "\ncpu指令集2:"