zxing

Error when using QRGen library to generate QR code

霸气de小男生 提交于 2019-12-13 06:08:57
问题 I am using the QRGen library to generate a ByteArrayOutputStream for a QR code and the generate a Bitmap image for it. I have imported the 3 following jars into my project: qrgen-1.0.jar zxing-core-1.7.jar zxing-j2se-1.7.jar This is the method generating the QR code ByteArray: public Bitmap qrBitmapFromString(String qrText){ ByteArrayOutputStream out = QRCode.from(qrText).to(ImageType.PNG).withSize(300, 300).stream(); byte[] data = out.toByteArray(); Bitmap bmp = BitmapFactory.decodeByteArray

How can support “Industrial 2 of 5 barcode” in Zxing project barcode scanner? -Android

倾然丶 夕夏残阳落幕 提交于 2019-12-13 04:27:27
问题 In my Android app. I want to support barcode scanner for items. However, I used the Zxing project that provides a standalone barcode reader application which (via Android's intent mechanism ) can be called by other applications who wish to integrate barcode scanning. Everything goes great, I scan barcode then check if any item from database exist or not to display it with its Info. Unluckily, when I attempt to scan Industrial 2 of 5 barcode (which a special type of barcodes) it is not work

zxing onActivityResults not firing

 ̄綄美尐妖づ 提交于 2019-12-13 04:19:50
问题 I'm trying to pull data from a QR code via zxing using the following code (basically copypasted from a tutorial, with names changed to protect the innocent): //Check for Barcode scanner, if not found put up an alert that allows user to install it. PackageManager pm = getPackageManager(); try { ApplicationInfo appInfo = pm.getApplicationInfo("com.google.zxing.client.android", 0); Intent intent = new Intent( "com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE", "QR_CODE_MODE");/

Error with ZXING library reading QR Barcodes in PDF

不羁岁月 提交于 2019-12-13 01:03:50
问题 I'm using ZXING Library, with this code I can get the images in my PDF, concretly QR Barcodes, but when I try to get the information inside ZXING library... I can't find the Barcodes. But if I take the same barcode from the file like barocode.png , works perfectly. image = ImageIO.read(new File("C:\\Workarea\\testBarcode.png")); buffered = (BufferedImage) image; How I can fix that? is internal error of the library ZXING? I have to use another implementation? I was testing with PDFBOX too, and

Return barcode location in the image while decoding with zxing

眉间皱痕 提交于 2019-12-13 00:56:28
问题 In my current project, I need to know how to get the location of the barcode in the image with zxing, in pixel or range of pixels. My image source is Kinect v2. The main purpose is to associate barcode with body frame, which requires the location information. I'm using standard Kinect v2 SDK and visual studio 2013, in C#. I feel it's not difficult, but I need some guidance. Thank you very much in advance! 回答1: It looks to me (referencing posts such as this) that the ResultFound action should

PhoneGap Android Barcode Scan UI modification

懵懂的女人 提交于 2019-12-12 16:02:30
问题 Im currently using the Barcode Scanner from the open source library Zxing in my android project. The problem Im facing is concerning the scanning UI When I launch the Scan window, it occupies the entire screen and Im not sure how to customize it - I would like to add a HTML back button in case the customer wants to scan or even better add the menu bar to be consistent with all other pages on my app ? How do I add basic HTML elements in the scanning window ? 回答1: If you are just calling

Importing 3rd party library ZXing into Xcode

[亡魂溺海] 提交于 2019-12-12 13:18:44
问题 I've tried a number of ways to import the 3rd party library 'ZXing' into my iOS app, but all have been painful or have simply not worked. If anyone could suggest either what I'm doing wrong, or a better way to import a library such as ZXing, I'd be very grateful. It must be easier than this!!! This is what I've done, with results : Directory structure of MyGreatApp (at time of writing) /MyGreatApp/MyGreatApp.xcworkspace (main workspace that compiles the application) /MyGreatApp/Projects

Barcode Numbers too long for Integer.parseInt

懵懂的女人 提交于 2019-12-12 06:38:48
问题 im using zbar for barcode services, and at certain numbers the app shutsdown. Im scanning barcodes, receive the barcode in an edittext, have it set up so it would search the json array for matching id's. Well this works fine for normal numbers the way that Integers extend to.. However i have a need to have it accept what ever value it contains. Also when using breakpoints like 000.000.000.0 and 22-22ON the app shuts down. Does anyone have a clue on how to avoid this? Is it possible to have it

Xamarin.Forms ZXing.Net.Mobile loosing current page after scan result on iOS 10

别等时光非礼了梦想. 提交于 2019-12-12 06:25:38
问题 I'm using Xamarin.Forms and I have implemented ZXing.Net.Mobile for scanning bar codes. On Android it's working fine, on iOS 10 after reading a barcode the function "OnScanResult" is fired and executes the command Navigation.PopAsync() which closes the scanning page but after a second it closes also the current page where I have displayed the result ! MyTapScan.Tapped += async (sender, e) => { await MyBtScan.ScaleTo(1.20, 100, Easing.Linear); await MyBtScan.ScaleTo(1, 100, Easing.Linear);

Error when decoding QR Code

泪湿孤枕 提交于 2019-12-12 05:19:42
问题 I'm decoding an Qr Code that i'm getting throw the Java JSANE API. when i'm writing the image i got from the JSANE API in a file before reading it with IMAGEIO.read(), the decodong process is working but when i'm using the ilage Object given from the JSANE API directly without writing it in a file before reading, i' getting the following error : Exception in thread "main" com.google.zxing.NotFoundException The method i'm using are: public String decode_QrCode(String filePath, String charset)