qr-code

QR codes Limits

佐手、 提交于 2019-12-10 01:54:41
问题 I have to generate codes with custom fields: id of field+name of field+values of the field. How long is the data I can encode inside the QRcode? I need to know how many fields\values I can insert. Should I use XML or JSON or CSV? What is most generic and efficient? 回答1: XML / JSON will not qualify for a QR code's alphanumeric mode since it will include lower-case letters. You'll have to use byte mode. The max is 2,953 characters. But, the practical limit is far less -- perhaps a few hundred

how to draw rectange on camera preview in android

不问归期 提交于 2019-12-09 20:19:53
问题 Actually I don't understand how to implement the rectangle on the camera preview. Everything working well, but I don't know the way to put the rectangle border like this link. Please anyone help me. Thanks. 回答1: I suggest you implement your camera preview in a custom SurfaceView and then in your XML you can simply overlay the rectangle, like the accepted answer here: Android: Overlay on Android Camera Preview So add a Java file to your project: public class CapturePreview extends SurfaceView

Read QR Code from scanned PDF

北战南征 提交于 2019-12-09 16:13:55
问题 I'm trying to insert and read qrcode's from PDF files. To create/read qr codes from images i'm using zxing project and to manipulate the pdf i'm using Big Faceless PDF. Everything works well if i create the QR Code, insert into my pdf, and then read the images from the pdf and convert the correct one to QR Code. However , if i try to to read images from a scanned document (with a qr code sticker attach to it), i cannot obtain the qr code image from the pdf (the only image i can get, using Big

Scanning QR code using Android's Mobile Vision API

老子叫甜甜 提交于 2019-12-09 14:42:20
问题 I followed this tutorial on how to build an Android app that can scan QR codes. Here's the full code. I added the Google Play services using grade like so compile 'com.google.android.gms:play-services:7.8.0' . AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="bitinvent.io.qrscanner" > <meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="barcode"/> <uses-permission android:name

how to add logo to qr codes

China☆狼群 提交于 2019-12-09 13:39:53
问题 I am using zxing (java) to generate qr codes and want to know a method to add logo to the qr code. Is there any built in method for adding logo to it or any alternate for same. 回答1: You will have to add an image overlay perhaps using another image library. I managed to find this resource that was able to do it. http://skrymerdev.wordpress.com/2012/09/22/qr-code-generation-with-zxing/ However I am certain you cannot add an image directly in the center of an QR code it will not allow the QR

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 13:05:30
问题 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

Can we resize a QR-Code?

╄→尐↘猪︶ㄣ 提交于 2019-12-09 11:17:12
问题 Does anyone know if we can resize a QR-Code easily by using a proper vector program OR, is the size information contained on that code, hence, we will not be able to resize without changing the code ? Thanks in advance. 回答1: You can resize as much as you want. The information is encoded in the pattern of the data, not in the size of the dots themselves. As long as a scanner can resolve properly between light/dark, the QR code should be readable at any size. 回答2: For high resolution (vector

Storing binary data in QR codes

岁酱吖の 提交于 2019-12-09 00:59:11
问题 I'm trying to store binary data in a QR code. Apparently QR codes do support storing raw binary data (or ISO-8859-1 / Latin1). Here is what I want to encode (hex): d1 50 01 00 00 00 f6 5f 05 2d 8f 0b 40 e2 01 I've tried the following encoders: qr.js Google Charts qrcode.js Decoding with zxing.org produces various incorrect results. The two javascript ones produce this (it's wrong; the first text character should be Ñ. Whereas Google Charts produces this... What is going on? Are any of these

Generating a QR code in rails

风格不统一 提交于 2019-12-08 20:21:30
问题 I want to generate QR codes in ruby on rails, to run in the background of my website written in rails. Saw this http://code.google.com/p/qrcode-rails/ but cannot work out how I could get this to work for me. Basically in RoR I want to: Pass a generator a string, my unique code, a 20 character length number (e.g. 32032928889998887776) and have an image generated with the name 'code'_qr.jpg and saved in a resource folder to be attached to an email that my program will send out. How would I do

Use QrCodeWidget (or PlotArea) with platypus

天涯浪子 提交于 2019-12-08 14:09:30
My django app is using a multi-frames reportlab pdf report in witch I would like to add some barcodes/qr-codes. The problem I have is that every object I add to my layout have to be a Flowable. So the question would be as to cast a PlotArea (mother class of QrCodeWidget) as Flowable. If we have an answer here the error message we can get if we add the QrCodeWidget as AttributeError: QrCodeWidget instance has no attribute 'getKeepWithNext' Ok, I made my own Flowable, it was simpler than I taught. It's as simple as doing it on a canva with this API. from reportlab.platypus import Flowable from