How to open "zxing Barcode" scanning screen in a small window? - android

"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. =)

Related

How to know if a Android device can read QR Codes?

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.

Android: replace camera preview with image

I'm doing black box automation testing (with appium & ruby) for app which use camera in few cases:
- taking photo
- scan QR code
- scan PDF code
I'm looking for a way to set image in to image preview to scan it.
This should(ideally) word for both emulators and real devices.
I was willing to do the same for my app (which scann QR code), and the solution I used was to add an EditText (which appears only in test mode) to put the string, which corresponds to the QR code, and then handling the string as the result of the scan.
The problem with that solution is that you can't test the camera or the functions/methods you made to decode, but it's the only problem so if you are using a library (like ZXing) it's not a big deal, because I assume you want only the string that corresponds with the QR code.

How to change the Camera Screen in QR Code Scanner in Android?

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

How to get current frames as image from camera?

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

Character recognition on direct camera in android?

I just wanted to know that,
As bar-code scanner works in Android.
Is that possible to make ocr based application in android which will recognize the characters on the go only..
Means As I start my camera in application, it should start doing its work instead of taking a picture and then recognize...
Thank you in advance.
You can use OpenCV for Android. For on the fly recognition you can see how BarCodeScanner implements it here
OpenCV4Android

Categories

Resources