zxing

ZXing Library: Errors in iOS: private field 'cached_y_' is not used

一笑奈何 提交于 2019-12-04 18:55:07
问题 I am currently trying to use the ZXing Library for an iOS Project. However I can't even get the sample Projects to work. The ScanTest Project, as well as the ones that I created myself throw the following error in the BinaryBitmap.cpp file. In file included from /Volumes/Macintosh HD/Users/Tim/Downloads/zxing-2.1/iphone/ZXingWidget/../../cpp/core/src/zxing/BinaryBitmap.cpp:20: ../../cpp/core/src/zxing/BinaryBitmap.h:33:7: error: private field 'cached_y_' is not used [-Werror,-Wunused-private

Creating colored QR codes using zxing

痞子三分冷 提交于 2019-12-04 16:26:04
I am using the google open source java zxing creator: http://code.google.com/p/zxing/ to create QR codes. I have everything in place and working (I'm loading the java files using coldfusion and writing the image to the browser.) What I want now is to change the black QR colour to something else. Is there an easy way of doing this? Would I need to edit a decompiled version of the encoder java file? Or is there a way I could add a color argument to the encoding routine? Thanks Shaun In MatrixToImageWriter.java (which I assume you are using), under javase/ change the constant BLACK . It is an int

using zxing barcode reader through surfaceview

旧巷老猫 提交于 2019-12-04 12:46:18
I am creating a Barcode Scanner app and I want to use Zxing to read barcodes, my app has a surfaceview and showing camera into that, but now I want to scan barcode from my SurfaceView camera , the reason that I use it, is that I have two Edittexts under the surface view in my layout to show content of barcode. How should I create an app like, the main problem is that how can I set zxing into surface. If there's any way I would appreciate. Layout screenshot: Customize your zxing layout with below codes. I took here a RelativeLayout for zxing Scanner. Or, Go with this references : https://github

ZXing Android Generate 1D barcode

本小妞迷上赌 提交于 2019-12-04 10:56:36
问题 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

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

浪尽此生 提交于 2019-12-04 10:34:56
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; /*/

Possible memory leak in Zxing's System.Drawing.Bitmap

时光总嘲笑我的痴心妄想 提交于 2019-12-04 10:12:14
I am currently working with Monotouch. I have an application which opens the camera and then needs to process the image that is currently being captured. I am using code which is very similar to https://github.com/reinforce-lab/com.ReinforceLab.MonoTouch.Controls/tree/master/VideoCaptureSample/ The difference of interest between my code and theirs is that in OverlayView.cs which is placed over my UIImagePickerController however, I have the following code: using (var screenImage = CGImage.ScreenImage.WithImageInRect(Frame)) { _imageView = UIImage.FromImage(screenImage); Bitmap srcbitmap = new

Decoding a QR code in an Android application?

岁酱吖の 提交于 2019-12-04 09:49:42
问题 In Android, Using ZXing we can scan a QR code through phone camera and decode it. But, in my scenario, the QR code image is stored in the phone itself and I need to decode it. Is there anyway to decode a QR image in this manner? 回答1: You can use ZXing code for this. Check out DecodeHandler.java. 回答2: You can simply use the Mobile Vision API for decoding a QR Code from Image.It is very accurate and can detect more than one Qr code over image. You have to include the following library inorder

Change QR Scanner orientation with ZXING in Android Studio

﹥>﹥吖頭↗ 提交于 2019-12-04 07:44:51
I hope you can help me with this. Im using the Zxing Embedded Library in order to use the QR scanner, the problem is that is on Landscape mode and I would like to change it to Portrait. I have this on the dependencies of my Graddle compile 'com.journeyapps:zxing-android-embedded:2.0.1@aar' compile 'com.journeyapps:zxing-android-integration:2.0.1@aar' compile 'com.google.zxing:core:3.0.1' and I have this in my java class to activate the scanner with a button... public void scanQR(View view){ IntentIntegrator integrator = new IntentIntegrator(this); integrator.setDesiredBarcodeFormats

ZXing: Finding the bounding rectangle of Barcode

梦想与她 提交于 2019-12-04 07:43:41
I was experimenting with ResultPoints which returns the points related to the barcode in the image. For a QR Code, ResultPoints returns a set of 4 points which are the coordinates of the four boxes at each corner of the QR Code. When I experimented the same with a Barcode, it returns two points which denote the width of the barcode. How do I find the bounding rectangle of the barcode? Is there any way by which I can calculate the coordinates of the top left corner and bottom right corner of the barcode using the ResultPoints array? After a bit of research I found the class

android zxing captureActivity NPE on ViewfinderView

拟墨画扇 提交于 2019-12-04 06:11:40
问题 I've integrated the zxing library into my app. I have a runtime error when i try to scan a QR code. It's caused by a NPE when trying to inflate a ViewFinderView object from XML. In my project all my app's code resides in a package called com.carefreegroup and all the zxing code resides in com.google.zxing.client.android. I've done some logging to test whether the ViewFinderView is null and it does in fact come back as null. Can anyone tell me why this object is not getting inflated, could it