qr-code

Sending an on-the-fly created QR Code UIImage by AirDrop fails

我只是一个虾纸丫 提交于 2019-12-03 16:12:55
I am creating a QR Code on the fly and storing it as UIImage. Now I want to be able to send it using the UIActivityViewController but somehow it fails: func generateQRCode(from string: String) -> UIImage? { let data = string.data(using: String.Encoding.ascii) if let filter = CIFilter(name: "CIQRCodeGenerator") { filter.setValue(data, forKey: "inputMessage") let transform = CGAffineTransform(scaleX: 3, y: 3) if let output = filter.outputImage?.applying(transform) { return UIImage(ciImage: output) } } return nil } And then I am calling the function and store it as UIImage: let image =

Zbar with Android : Scanner camera viewport remain inactive and black after showing the url in browser

只愿长相守 提交于 2019-12-03 15:35:52
I need to have a QR scanner in my project. I use ZBar for doing this task. Mainly I did a very small change on the example code given by ZBar git example to do the job. I need to show the scanned result in a browser(if url) or in a dialog(if normal information). Every thing working well with my code given bellow except if I try to show the url after scan a qr code in browser. When I come back to my app from the browser the camera viewport turns black and remain inactive. I tried to get back the camera active to scan another qr code but i failed. I tried to reopen the camera in my onResume()

How to read QR code from static image

随声附和 提交于 2019-12-03 13:36:47
问题 I know that you can use AVFoundation to scan a QR code using the device's camera. Now here comes the problem, how can I do this from an static UIImage object? 回答1: The iOS API provides the CIDetector class from CoreImage framework. CIDetector let you find specific patterns in images, like faces, smiles, eyes, or in our case : QRCodes. Here is the code to detect a QRCode from an UIImage in Objective-C: -(NSArray *)detectQRCode:(UIImage *) image { @autoreleasepool { NSLog(@"%@ :: %@",

How to include Zxing library to android project?

前提是你 提交于 2019-12-03 13:21:09
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 There is indeed an Android application that is part of the ZXing project. It uses the core module

Scan barcode from an image in gallery android

蹲街弑〆低调 提交于 2019-12-03 12:42:42
问题 I'm creating a android project, main feature is scan barcode. I'm tried integrate with Zxing library into my project, and it's work fine. However, it's seems not support scan barcode from an available image in gallery of android devices. How i can do it ? or with other barcode library ? Please help me. Thanks for all answers. 回答1: You could use this class MultiFormatReader from ZXing library. You have to get Gallery image in BitMap and convert it as this: Bitmap bMap = [...]; String contents

How can QR code store so much data?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 10:17:59
Quick googling result that QR code can hold nearly 3kb (8 bit) data. But isn't it just using black/white dots to represent bits? If so there's no way that there's over 20,000 dots on a code. So I'm obviously misunderstanding. Can someone explain how it works? Denso Wave says that the QR bar code can be as large as 177 by 177, allowing for 31,329 dots. That is enough space for about 3kB, even allowing for position, alignment, timing, version, and formatting information. Mitch Wheat QR Code data capacity Numeric only: Max. 7,089 characters Alphanumeric: Max. 4,296 characters Binary (8 bits): Max

Generate designer 2d QR code in android

可紊 提交于 2019-12-03 08:57:51
How to generate 2-d QR Code for some text and also having an image at centre in android ? I browse a lot but i found only how to generate simple 2-d QR code using ZXing library using this link . Is it possible to generate 2-d QR Code having an image at center using ZXing library ? To center-align an image use code like in my activity_main.xml : <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <ImageView android:id="@+id/myImage" android:layout

iphone: local qr code generator

穿精又带淫゛_ 提交于 2019-12-03 08:51:46
问题 can anybody suggest me some SDK or way of creating a local QR code generator for iphone? Please enlighten me on this I have referred zxing and several other qr code libraries but none of them support iphone for qr code generation Thanks in advance 回答1: Another generator wrapped in a sample iPhone project. This project was created in Xcode 4: https://github.com/kuapay/iOS-QR-Code-Generator 回答2: here goes the solution https://github.com/jverkoey/ObjQREncoder 回答3: The following tutorial

iOS: ZBar SDK unicode characters

南楼画角 提交于 2019-12-03 08:40:12
When scanning QR codes with ZBar the string resulting from the process does not display unicode characters properly. The word Márti encoded as a QR code by any free to use QR code generator (like http://qrcode.kaywa.com ) would result in Mテ。rti . In other SO questions ( 1 , 2 ) it was suggested to embed a BOM at the start of the resulting string, but doing this: NSString *qrString = [NSString stringWithFormat:@"\xEF\xBB\xBF%@",symbol.data]; or this: NSString *qrString = [[NSString alloc] initWithFormat:@"\357\273\277%@", symbol.data]; resulted in the same, flawed result with the Asian

How to create a QR code application?

帅比萌擦擦* 提交于 2019-12-03 07:48:55
问题 Can you please explain me How actually QR codes are created and How they are tracked. Generated codes are stored in a DB. I am actually confused about how QR code reader application works. If I create a site where users can generate QR codes. Every generated QR code will be saved in my site DB. Then, will I have to write an application too? An application that will read read QR code images from an image and will act accordingly or will an QR code reader app will do the job? regards, aqif 回答1: