qr-code

How-to generate a QR code with the logo in the middle using CIQRCodeGenerator

孤者浪人 提交于 2020-01-22 19:40:30
问题 I am trying to generate a QR code that has a logo in the middle, as it is: . I am using a code I found here, my code is: func generateQrCode(message: String!) -> CIImage! { var data = message.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false) var filter: CIFilter = CIFilter(name: "CIQRCodeGenerator") filter.setValue(data, forKey: "inputMessage") filter.setValue("H", forKey: "inputCorrectionLevel") return filter.outputImage } How could adapt the code to generate a QR with a

Print ZPLII QR to open url

﹥>﹥吖頭↗ 提交于 2020-01-22 02:55:07
问题 I'm using Zebra ZPLII to create a label with a QR code to open an specific url. When I use iPhone camera to scan the QR phone shows "unusable data" and when I try with an external QR reader the text extracted from the QR is not the same from the label. For example if I write www.google.com the string that I have from reading the QR is .google.com if I use https://www.google.com the result is ps://www.google.com This is my label desing ^XA ^FX Top section with company logo, name and address.

Presenting View Modally in ZBar delegate method

我们两清 提交于 2020-01-16 18:07:34
问题 I am developing a QR code reader application using ZBar. I am using XCode 4.2 Here is my code where I am presenting another view modally after scanning the QR code successfully, and it doesn't work: - (void) imagePickerController: (UIImagePickerController*) reader didFinishPickingMediaWithInfo: (NSDictionary*) info { // ADD: get the decode results NSString *test3=@"test"; id<NSFastEnumeration> results = [info objectForKey: ZBarReaderControllerResults]; ZBarSymbol *symbol = nil; for(symbol in

Presenting View Modally in ZBar delegate method

自古美人都是妖i 提交于 2020-01-16 18:06:27
问题 I am developing a QR code reader application using ZBar. I am using XCode 4.2 Here is my code where I am presenting another view modally after scanning the QR code successfully, and it doesn't work: - (void) imagePickerController: (UIImagePickerController*) reader didFinishPickingMediaWithInfo: (NSDictionary*) info { // ADD: get the decode results NSString *test3=@"test"; id<NSFastEnumeration> results = [info objectForKey: ZBarReaderControllerResults]; ZBarSymbol *symbol = nil; for(symbol in

ZXing ResultPoints to pixels

假如想象 提交于 2020-01-16 17:35:51
问题 I am using ZXing.NET to detect a location of a QR code. When I call the BarcodeReader.Decode(bitmap); function I get an a Result object with ResultPoint[] s as a property that represent the markers in the QR code. It has X and Y coordinates but they are floats and it gives strange results with decimal numbers. I just need the location in pixels not in banana's or something else... Is this possible? How to convert the ResultPoints to pixels? Why am I the only person on the planet asking this

Is there an alternative to Google Chart API QR Generator?

孤人 提交于 2020-01-14 08:08:26
问题 Google Chart API QR Generator is deprecated and will not be supported after 2015. Does anyone know of a better alternative to this that I can use on PHP-based websites? 回答1: Here is one that I have created. https://github.com/edent/QR-Generator-PHP Very easy to install on your own server. No third party dependencies so no API limits :-) 来源: https://stackoverflow.com/questions/17034664/is-there-an-alternative-to-google-chart-api-qr-generator

Is there an alternative to Google Chart API QR Generator?

泪湿孤枕 提交于 2020-01-14 08:07:14
问题 Google Chart API QR Generator is deprecated and will not be supported after 2015. Does anyone know of a better alternative to this that I can use on PHP-based websites? 回答1: Here is one that I have created. https://github.com/edent/QR-Generator-PHP Very easy to install on your own server. No third party dependencies so no API limits :-) 来源: https://stackoverflow.com/questions/17034664/is-there-an-alternative-to-google-chart-api-qr-generator

It is possible to know if a string is encoded in base64?

混江龙づ霸主 提交于 2020-01-13 05:50:10
问题 Simple as that. I'm making an app where the user has to scan a QR code (which basically is a base64 encoded string), is there any way to verify that the string is encoded in base64 before decode and follow the flow of the application? My code would be responsible for that is: func captureOutput(captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [AnyObject]!, fromConnection connection: AVCaptureConnection!) { if metadataObjects == nil || metadataObjects.count == 0 {

How to scan QRCode in android

和自甴很熟 提交于 2020-01-12 04:31:07
问题 I found a tutorial on how to scan a barcode. But in my application I have to scan a QR code. How can I a scan QR code in Android? 回答1: try { Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); // "PRODUCT_MODE for bar codes startActivityForResult(intent, 0); } catch (Exception e) { Uri marketUri = Uri.parse("market://details?id=com.google.zxing.client.android"); Intent marketIntent = new Intent(Intent.ACTION_VIEW,marketUri);

Linking a QR Code straight to video

心已入冬 提交于 2020-01-07 14:21:07
问题 I am trying to link a QR code to open a video. At the moment I have used a QR generator to point to the video file URL. But when using it on my phone it asks me to click the link first. Is the the functionality of the QR code reader, or is there a way to program the QR image to bypass this and directly open the video player? Also, with the current functionality, it works on Android, but opening in iPhone (using the QR code) doesn't play any sound. If on the iPhone I go straight to the URL,