qr-code

2d Barcode vs 1d barcode - speed, accuracy, size

回眸只為那壹抹淺笑 提交于 2019-12-07 06:04:35
问题 I wanted to implement barcode for one of my mobile project requirements. The amount of data that is to be stored is very little (<25 alpha-numeric). I want to know if its wiser to implement a 1d barcode or a 2d barcode (Qr code particularly) for this project. I would be really glad if someone could educate me on the following aspects from a 1d vs 2d perspective: scanning speed size (minimum display size that is needed, for the mobile camera to recognize -- this is more crucual) accuracy

How to stop continuous scanning by zxing-android-embedded in Android

心已入冬 提交于 2019-12-07 04:51:35
问题 I am using Zxing-android-embedded (https://github.com/journeyapps/zxing-android-embedded) to scan QR codes. I have imported the library from github . When the app starts , the camera is scanning the code repeatedly as long as the camera is placed on a barcode. I want to stop the scanning(but not the camera preview) once the barcode is detected and show a dialog box with "Confirm" button, "Cancel" button, and a input box. When user press the "Confirm" or "Cancel" button it should start

Rails 4: Getting QRCode to display in email via action mailer

房东的猫 提交于 2019-12-07 03:26:25
my problem is to get my QRCode to display in the email sent via action mailer in rails. I am currently using the gem 'rqrcode_png' I have read through some guides and it states inline attachment. However, I did not save the QRCode generated in my own files. Is there a way to display the QRCode in the email without having to save it in my database? Also, I have tried the following code on my view page and it works, but it does not work when I copy it to my action mailer code. It only shows the QR Code for venue . Here is my code below for the displaying of QRCode. Thank you! <p> <% @deal.venues

Android cameraSource.stop() causing app to freeze

守給你的承諾、 提交于 2019-12-07 01:42:23
问题 I am building an app that has a qr scanner using the google vision api. I am having trouble stopping the camera after the qr code is read. the flow is MainActivity -> QrActivity once the qr-code received a detection the app should return to the main activity. If i do not call cameraSource.release() it works fine but the device heats up a lot and has a significant impact on battery drain. however if i release the camera source the mainActivity becomes un-responsive and the app will crash. Why

ZBar - QR Code Scanner, crashing in Android Studio

让人想犯罪 __ 提交于 2019-12-06 21:23:55
问题 I have downloaded from git latest zBar QR Code Scanner (SDK 0.2). I am trying to implement it in my application. I work on Android Studio. What have I done: I have copied zBar.jar to libs folder of my Project. I have created *.jar files from "amerabi", "amerabi-v7a", "x86" by zip'ing them and changing their format to *.jar. I have copied amerabi.jar, amerabi-v7a.jar and x86.jar to libs folder of my Project. There is no need to change anything in gradle because it is already configured to

How to show QR code scan progress with the moving line indicator?

ⅰ亾dé卋堺 提交于 2019-12-06 15:17:47
问题 I want to show a line moving through the screen while the camera is open in my android application. Similar to the line which is moving in a bar code scanner application. Like the white line which is shown in the image. The line can move from top to bottom and bottom to top continuously. 回答1: For this, you're gonna want to create your custom view and override the onDraw method as follow : public class MyScanningView extends View { private Paint paint = new Paint(); private int mPosY = 0;

How to retrieve all data from QR Code Swift 4

无人久伴 提交于 2019-12-06 14:26:04
问题 I have a problem to retrieve and display all the information about the QR Code in Swift 4. I used a QR Code generator with text extension in which I added {"number":"+33688888888","amount":"50"} in my function to call and display information func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) { if metadataObjects != nil && metadataObjects.count != 0 { let metadataObj = metadataObjects[0] as!

Xamarin - Display QR code in form

前提是你 提交于 2019-12-06 13:44:26
I am writing an application in Xamarin to create a QR code for a given input. using ZXing.Net.Mobile.Forms; var writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE, Options = new EncodingOptions { Height = 200, Width = 600 } }; var bitmap = writer.Write("Hello Stack Overflow"); How do I now display this barcode on my form? You should use a ZXingBarcodeImageView using System; using Xamarin.Forms; using System.Threading.Tasks; using ZXing.Net.Mobile.Forms; public class BarcodePage : ContentPage { ZXingBarcodeImageView barcode; public BarcodePage () { barcode = new ZXingBarcodeImageView {

How to integrate tab host with zxing qr code scanner?

久未见 提交于 2019-12-06 13:43:18
I want to integrate zxing qr code scanner in my application which is having three tabs in my application. Currently when my one of the tab bar butto gets pressed at that time I am calling zxing qr code's scann activity but when ever its calling it is showing error like below. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.beepz/com.google.zxing.client.android.CaptureActivity}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' Rather my code is having both tab host control and I have instantiated tab host in

Creating colored QR codes using zxing

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:26:02
问题 I am using the google open source java zxing creator: http://code.google.com/p/zxing/ to create QR codes. I have everything in place and working (I'm loading the java files using coldfusion and writing the image to the browser.) What I want now is to change the black QR colour to something else. Is there an easy way of doing this? Would I need to edit a decompiled version of the encoder java file? Or is there a way I could add a color argument to the encoding routine? Thanks Shaun 回答1: In