zxing

How to implement QR code scanner in Fragment in portrait mode in android?

巧了我就是萌 提交于 2019-11-29 11:57:06
I am developing an application,In this application I have to implement QR code scanner, I can achieve this thing easily in activity with the help of Zxing library but the thing is that the scanner should be in fragment and the Fragment added in ViewPager and I also want customise the view of scanner. Use this Library for QR code scanner it is the Modification of ZXING Scanner project for easy Android QR-Code detection. QR Code Scanner Prakhar1001 For Android Studio Users repositories { maven { url "https://jitpack.io" } } compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar' compile 'com

ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

允我心安 提交于 2019-11-29 11:55:25
In my app I want to scan a GS1-128 barcode, and need the FNC1 characters passed from the ZXing barcode scanner. Right now I just receive the plain text without the FNC1 characters. Is there a way to pass the DecodeHintType.ASSUME_GS1 via Intent to the scanner app? I don't want to include the complete scanner source in my app and rather use the Intent. In the source code of the scanner I can see that the DecodeHintType needs to be set to achive that: https://code.google.com/p/zxing/source/browse/trunk/core/src/main/java/com/google/zxing/oned/Code128Reader.java boolean convertFNC1 = hints !=

Issue to read multiple barcodes using zxing library

北战南征 提交于 2019-11-29 11:39:54
I am trying to read 2D Data matrix barcode using zxing library(GenericMultipleBarcodeReader). I have multiple barcodes on a single image. The problem is that the efficiency of the zing reader is very low, it recognizes 1 barcode from image 1.png and no barcode from image 2.png which has 48 barcodes. Is there any way to get 100% efficiency or any other library which results 100% My code to read barcode is: public static void main(String[] args) throws Exception { BufferedImage image = ImageIO.read(new File("1.png")); if (image != null) { LuminanceSource source = new BufferedImageLuminanceSource

Android客户端 - 大学城随身购

帅比萌擦擦* 提交于 2019-11-29 10:44:35
这几天刚忙完的一个项目,服务器架设在sae上,主要用到了android-query,高德地图的sdk和定位sdk,zxing。这次的界面加上很多layout animateion,让界面看上去更自然和活泼。 应用下载: http://dl.vmall.com/c0al3jn51e 转载于:https://my.oschina.net/gal/blog/200171 来源: https://blog.csdn.net/chenlian2409/article/details/100790351

How to tell scons to use MinGW instead of MSVC

↘锁芯ラ 提交于 2019-11-29 09:35:23
I'm trying to build the C++ port of zxing on Windows, but scons fails with: cl : Command line error D8021 : invalid numeric argument '/Wextra' I have both VS2010 and MinGW installed, and scons tries to use the MSVC compiler, even though the SConscript file assumes gcc and use gcc-specific parameters, which causes the error. How can I tell scons to use MinGW instead? Torsten Scons uses MSVC compiler by default on windows. To set mignw compiler use tools parameter while creating Environment object. env = Environment(tools = ['mingw']) Below is my working SConstruct for mingw on Windows: import

QR code scan from image file

喜欢而已 提交于 2019-11-29 09:18:30
问题 Tried to use several libraries like ZXing, ZBar and their forks but didn't find way to scan barcode not from camera but from file. Can someone point me to right direction? Preferably I'm looking into ZXing: how to scan image from file (not from camera). Please. 回答1: In the end I've found solution. Code is (originated from here): import com.google.zxing.*; public static String scanQRImage(Bitmap bMap) { String contents = null; int[] intArray = new int[bMap.getWidth()*bMap.getHeight()]; //copy

zxing camera portrait mode and landscape on android

你说的曾经没有我的故事 提交于 2019-11-29 07:42:27
I have already integrated zxing library in my application. Now i want that zxing camera will work on both mode landscape as well as on portrait mode. now it is working on one mode only. Can somebody help me out how to do this? I used compyutech 's answer, but there were some things missing. So, I'm putting everything required, here. 1. CameraConfigurationManager : inside initFromCameraParameters method : if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { camera.setDisplayOrientation(90); } also remove this code from same method : if (width <

android: zxing barcode scan successful but not returning from activity

蓝咒 提交于 2019-11-29 06:12:38
I am successfully using zxing to scan codes, by calling the installed barcode reader's intent, but when it beeps and indicates a good scan I expect the zxing activity would return control so I can process the result, but it sits there and tries to scan again. I have to press the back button and then it returns and I can do the next step. Is there some obvious flag I'm missing when I call the scanner? Any advice gratefully received. Many thanks. Here's my code: public boolean onTouchEvent(final MotionEvent event) { Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent

【基于zxing的编解码实战】zxing项目源码解读(2.3.0版本,Android部分)

好久不见. 提交于 2019-11-29 05:32:56
zxing2.3.0目录结构(android相关) 下载zxing2.3.0后,与android相关的有三个目录: android:就是Barcode Scanner,中文名"条码扫描器"。下文中简写为BS。 android-integration:提供一种简单的途径将Barcode Scanner整合到调用方app中 androidtest:模拟调用方app,通过android-integration整合Barcode Scanner 如果将androidtest看做你的app的话,那么上面三者的关系将会如下图: android-integration zxing项目的本意是将BS作为一个独立的app,可以单独使用,同时亦可简单被其他app调用,在调用的过程中给用户的感觉它们是一个整体。在这中间起到”简单整合”作用的便是android-integration。 正如android-integration的文档中所述,android-integration的作用在于为调用方提供一个简单的方法实现扫描并接受扫描的结果,调用方完全不必了解BS的代码原理(不必为了整合到调用方app中而学习BS代码),只需按照简单的几个步骤即可轻松实现编解码。 但是这样看起来简单的整合存在一个问题:作为独立应用的BS必须与调用方app一起被安装,否则android

ZXing Barcode Reader: How to make custom border around capture screen?

雨燕双飞 提交于 2019-11-29 03:08:49
问题 I want to put custom border around zxing capture screen (camera screen). What modification would I need to make for this? Which activity and layouts would I need to change to have this effect? 回答1: You don't need to edit layouts at all. In ViewfinderView find onDraw method. It's the core that draws the "scanning rectangle". You can modify it the way you want. The code that actually draws the rectangle can be found here: // Draw the exterior (i.e. outside the framing rect) darkened paint