qr-code

How to Create QRCode using Java (J2SE)

僤鯓⒐⒋嵵緔 提交于 2019-12-03 07:04:17
问题 How to create QRcode image using normal j2se. Any APIs or classes are available to do this? 回答1: To do this you need to download following jars, zxing-core-1.7.jar zxing-javase-1.7.jar from http://code.google.com/p/zxing/ try the following code ByteArrayOutputStream out = QRCode.from("Hello World").to(ImageType.PNG).stream(); try { FileOutputStream fout = new FileOutputStream(new File("C:\\QR_Code.JPG")); fout.write(out.toByteArray()); fout.flush(); fout.close(); } catch

Google API - URL Shortener with PHP

空扰寡人 提交于 2019-12-03 06:55:37
问题 My code is below. The URL shortening service works, but it doesn't when I insert my $POST . Does anyone know how to fix this my looking at the code? // This is the URL you want to shorten $longUrl = 'http://www.mysite.com/XXXXX/XX/$_POST['qrname']'; // Get API key from : http://code.google.com/apis/console/ $apiKey = 'MyAPIKey'; $postData = array('longUrl' => $longUrl, 'key' => $apiKey); $jsonData = json_encode($postData); $curlObj = curl_init(); curl_setopt($curlObj, CURLOPT_URL, 'https:/

What is the spec for formatting data in QR codes? I can not find it anywhere

无人久伴 提交于 2019-12-03 06:23:36
问题 I'm specifically asking if, and what, is the specification for formatting the text inside a QR code - not how to generate a code (which I can do). I need to put hCard data into a QR code, however I don't know how to mark the QR code as VCF data (versus URL, text, etc) so the decoder knows what to do. All the info I've seen online has to do with generating the QR code, not formatting the data inside. 回答1: Who says you have to pay for this info? just go to this page http://qrcodenet.codeplex

javascript API for generating QR codes

情到浓时终转凉″ 提交于 2019-12-03 06:16:52
I am looking for a javascript API for generating QR codes (name, address and such) and outputting them in a printable format (png/jpeg/pdf). This seems to me to be something others before must have had a need for. Google has a QR code generator as part of their Chart Tools that you can use here. http://code.google.com/apis/chart/infographics/docs/qr_codes.html jquery-qrcode jQuery plugin also generates QR code using HTML5 canvas element or HTML table, if canvas is not supported. https://github.com/jeromeetienne/jquery-qrcode $('#test').qrcode({ width: 120, height: 120, text: "https://github

How to make a QR code reader [closed]

♀尐吖头ヾ 提交于 2019-12-03 05:54:55
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to make a QR code reader for android app. if you all have any information to create it please share with me. 回答1: This is the most popular lib for it. It allows using the barcode scanner as intent so it

Decoding a QR code in an Android application?

≯℡__Kan透↙ 提交于 2019-12-03 05:11:10
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? You can use ZXing code for this. Check out DecodeHandler.java . 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 to use Mobile Vision API : compile 'com.google.android.gms:play-services-vision:9.6.1' BarcodeDetector detector =

Does anyone know of a C/C++ Unix QR-Code library? [closed]

做~自己de王妃 提交于 2019-12-03 04:30:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm looking for a QR-Code library for C/C++, not Java or .Net please. Anyone knows of one? Note: There was a similar question a while

iOS 7 AVCaptureMetadataOutput delegate (QRCode scanner)

我的梦境 提交于 2019-12-03 03:25:35
问题 I'm trying to implement a QRCode scanner with the new iOS 7 features but my code isn't calling the main AVCaptureMetadataOutputObjectsDelegate method. I've used the AVFoundation camera before and with my current implementation I've got the preview layer running without a problem. Even switching my output back to AVCaptureVideoDataOutput validates my session setup. I'm using this NSHipster post as a guideline and here's my code so far: Interface: @import AVFoundation; @interface

Scan barcode from an image in gallery android

我们两清 提交于 2019-12-03 03:09:44
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. 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 = null; int[] intArray = new int[bMap.getWidth()*bMap.getHeight()]; //copy pixel data from the Bitmap into

How to read QR code from static image

荒凉一梦 提交于 2019-12-03 03:07:00
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? 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(@"%@ :: %@", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); NSCAssert(image != nil, @"**Assertion Error**