zxing

iostream not found in Xcode

老子叫甜甜 提交于 2019-12-01 00:24:29
问题 I have problem including ZXing in my App. I get error: "iostream file not found". I have done everything like in ZXing instruction but i can't get this working. I'm including this in .mm file. I use story boards this project is for iOS 6.0 This is error i get: In file included from /Users/adam/Developer/project/project/SecondViewController.mm:11: In file included from zxing/iphone/ZXingWidget/Classes/QRCodeReader.h:10: In file included from zxing/iphone/ZXingWidget/Classes/FormatReader.h:22:

ZXingObjc - Converting object c to swift

偶尔善良 提交于 2019-12-01 00:05:19
I'm a newbie with Ios. i'm learning swift and overlooked object c. Currently, i'm writing an demo with swift and xcode 6.1 which can scan qrcode and barcode from camera or an image from image library. before, i tried using zbar SDK to do this, but it happened error and i didn't know how to fix it, i posted this error in post: Scan qrcode and barcode from camera and image which picked from image library in swift , but nobody answered. i'm trying using ZXingObjC to scan qrcode and barcode from image and camera https://github.com/TheLevelUp/ZXingObjC , i read its usage and tried to convert to

Getting started with ZXing on Android

◇◆丶佛笑我妖孽 提交于 2019-11-30 23:10:30
I'm trying to add ZXing to my project (add a button which calls the scanner upon press). I found this: http://groups.google.com/group/android-developers/browse_thread/thread/788eb52a765c28b5 and of course the ZXing homesite: http://code.google.com/p/zxing/ , but still couldn't figure out what to include in the project classpath to make it all work! As for now, I copied the classes in the first link to my project (with some package name changes), and it runs but crashes after pressing the button and trying to install the barcode scanner. Some code: private void setScanButton(){ Button scan =

How to trigger bulk mode scan in zxing

本小妞迷上赌 提交于 2019-11-30 22:22:07
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! There is no concept of "bulk mode" within zxing I don't think. You can certainly implement the behavior that you are looking for though with zxing inside your own application. Use the code that you

利用iText和zxing生成和读pdf417二维码

吃可爱长大的小学妹 提交于 2019-11-30 22:16:31
前面的一些博文中已经提到了zxing这个开源工具生成和读取二维码图片,仅从学习的角度来看,可以 告一个段落。在实际的生产环境中,应用zxing生成和读取二维码,却存在一些问题: 使用扫描枪读取zxing生成的带中文的二维码图片的时候,存在中文乱码问题; 用zxing生成的二维码图片会随着存储信息量的增大,图片也会变大(就这一点来说,使用iText这个工具生成的二维码图片的长宽会相对固定一点,这也是选择iText生成二维码的一个因素)。 为了解决这些问题,在经过一番折腾后,找到了一个替代的解决方案,使用iText工具生成二维码图片,由于iText没有提供类读取二维码内容,这里我们仍然使用zxing,并且特别注意了中文乱码的问题。下面是代码: package test; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io

Zxing sometimes picks up the wrong data from barcode

元气小坏坏 提交于 2019-11-30 19:16:25
问题 I know this might be rather a simple issue to ask for and we can also set the barcode format to be scanned by Zxing, like this: (1) intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); //or any other format if we do this: (2) intent.putExtra("SCAN_MODE", "SCAN_MODE"); //for all modes` While doing the #2 mentioned right above this line, the scanner sometimes seems to scan part of the barcode and picks up wrong information. For example if I try to simply scan a UPC barcode, 98% of the times it works

How to scan driver's license (PDF417) using xamarin forms + zxing on iOS 10.2

点点圈 提交于 2019-11-30 18:38:14
问题 I am using Xamarin forms to write an iOS app and using the ZXing library to scan barcodes. I am trying to read a driver's license (PDF417) barcode, but the library is not able to recognize that barcode. If I include UPC or other barcodes in the PossibleFormats, they are scanned correctly. I am also certain the barcode I am trying to read is PDF417 barcode because Scandit is able to recognize it correctly while using only PDF417 barcode. Here is the code I am using. What do I need to change so

A QR scanner inside of a Fragment

非 Y 不嫁゛ 提交于 2019-11-30 18:21:59
I'm using ViewPager for swiping between my Fragments. Is it possible to integrate a QR scanner (zxing or any other) inside of a Fragment so that I can swipe from scanners View to another Fragment and vice versa? As far as I can tell, the majority of qr scanners require me to use an extended Activity class and to start it for result, handling it in onActivityResult, which is not an option to me The barcodefragmentlib is the one you are looking for. And its wiki shows you how to integrate it (although I used a different way before the wiki comes out). However after fully integrated it and solve

QR code scan from image file

心已入冬 提交于 2019-11-30 09:36:35
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. barmaley 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 pixel data from the Bitmap into the 'intArray' array bMap.getPixels(intArray, 0, bMap.getWidth(),

How to tell scons to use MinGW instead of MSVC

最后都变了- 提交于 2019-11-30 08:56:47
问题 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? 回答1: Scons uses MSVC compiler by default on windows. To set mignw compiler use tools parameter while creating Environment object