I am developing a QR Code Scanner in Android. My code for scanning QR Code works fine. However, I'd like to change the Camera Screen in my app.
Instead of my camera is in fullscreen mode, I'd like to make it like this:
Can someone knows how to do it?
You can do it by adding tab host in frame layout and then set qr code camera into frame layout, by this way you can do it successfully.
You can refer following link to solve your issue.
Custom camera screen with QR code scanner
You might want to add a layer on top of the camera. To do this, please read the following question and answers: Custom camera android
Related
I have a problem with qr-code which is gray and white. The problem is that I can scan it when the environment around is dark, and when it is bright during the day, the camera doesn't catch either the contrast or the qr reader doesn't distinguish between colors that's why it's not readable. I am using a 'me.dm7.barcodescanner:zxing:1.9.13' library. Any ideas how I should change the contrast or set camera mode to monochrome or how to deal with it? Also I found an app in google play store which reads this code without problem so there must be a sollution.
Greetings
Yeah... The QR code you use can be scanned by a lot of cameras... BUT zxiling supports BLACK and WHITE QRcodes only. You can use the built-in object Bitmap in android to work with the image... Also you should try to change the QR code with another
Currently I have a small Activity that allows me to read QR codes and returns the string that contains the code.
I do this with CameraSource and SurfaceView from the package com.google.android.gms.vision y com.view respectively.
But I wonder if there is some way through code to know if the device that runs the application has the ability to read QR codes.
Because if the device cannot read QR codes, I would like to display a TextView instead of the SurfaceView saying that the device can't do this.
Thank you, so much.
Check if the device has a camera. There's nothing special about reading QR codes; the device takes a picture, the image analysis logic does the rest.
I am using ZXing barcode scanner, but some devices are unable to quickly read QR codes. A fix I am seeing is to take a picture of the code, and read the scan the code from the image.
I tried putting SurfaceView and ZXingScannerView on top of each other, and setting the surface view visibility to invisible. But they conflict with each other.
Any idea on how to do this?
Thanks!
"zxing Barcode" scanner is successfully working in my App
https://github.com/journeyapps/zxing-android-embedded
I want to open the scanning screen (i.e., Intent), on same Activity in the center in a small window
How can I get this type of Interface ?
http://i.stack.imgur.com/bpT5R.jpg
You may use Journey's Library. You can use the scanner as a component just like an image or a text. It's based on ZXing. =)
Hello im trying to make my own special custom code scanner. My app's render a special custom barcode and I need to make a very simple scanner that will take whats currently being seen with the camera and quickly process it to decode the barcode. So how can I grab the frames from the camera and use them as images without pressing the "take" button.
check the open source project. It give bar-code without click take photo button.
Link
Thanks