How do I use the metadataOutputRectOfInterestForRect method and rectOfInterest property to scan a specific area? (QR Code)

I wasn’t really able to clarify the issue with metadataOutputRectOfInterestForRect, however, you can directly set the property as well. You need to the have the resolution in width and height of your video, which you can specify in advance. I quickly used the 640*480 setting. As stated in the documentation, these values have to be … Read more

Android, How to read QR code in my application?

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); startActivity(marketIntent); } and in onActivityResult(): @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 0) { if (resultCode … Read more

QR Code possible data types or standards

Basically your text information has to be identifiable for what it is: There is a very good summary here. Contact data – use MeCard, or vCard (much more verbose), e.g.: MECARD:Surname, First;ADR:123 Some St., Town, Zip Code, Country;EMAIL:some_name@some_ip.com;TEL:+11800123123;BDAY:19550231;; Gives: Calendar data – There are two formats about iCalendar (.ics) & vCalendar (.vcs). These formats can … Read more

Dynamically generating a QR code with PHP [closed]

It’s worth adding that, in addition to the QR codes library posted by @abaumg, Google provides a QR Codes API QR Codes APImany thanks to @Toukakoukan for the link update. To use this, basically: https://chart.googleapis.com/chart?chs=300×300&cht=qr&chl=http%3A%2F%2Fwww.google.com%2F&choe=UTF-8 300×300 is the size of the QR image you want to generate, the chl is the url-encoded string you want … Read more

How to decode a QR-code image in (preferably pure) Python?

You can try the following steps and code using qrtools: Create a qrcode file, if not already existing I used pyqrcode for doing this, which can be installed using pip install pyqrcode And then use the code: >>> import pyqrcode >>> qr = pyqrcode.create(“HORN O.K. PLEASE.”) >>> qr.png(“horn.png”, scale=6) Decode an existing qrcode file using … Read more

How to generate a QR Code for an Android application? [closed]

with zxing this is my code for create QR QRCodeWriter writer = new QRCodeWriter(); try { BitMatrix bitMatrix = writer.encode(content, BarcodeFormat.QR_CODE, 512, 512); int width = bitMatrix.getWidth(); int height = bitMatrix.getHeight(); Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565); for (int x = 0; x < width; x++) { for (int y = 0; y < height; … Read more

tech