I am unable to scan the following barcode image on Android:
It encodes a 13-15 digit number and using an online barcode reader gives the type as CODE_39.
Is there any specific way to handle reading such barcodes on Android?
I believe you just need to zoom out a bit by moving your camera away. I'm not entirely sure though.
Related
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.
I wish to use QR code as a landmark in my project, where the phone's camera is moving. I am using an Android phone. So I am wondering how fast can a QR code be read and recognized?
Normal use requires quite a long time. I think around 2~3 seconds.
Can the recognition process be accelerated to say 0.5 second?
Is it possible for a moving camera to catch the QR code?
Have you already tried this library? https://code.google.com/p/zxing/
From my experience, if the camera is in focus it recognize the QR code is 1 second or less.
It depends on sensitivity (ISO), shutter speed, and aperture of the camera. And on external aspects: luminosity, angle and relative speed of the subject QR code.
I am working on a Project which uses the Barcode Scanner for redeem points. I have tried Zxing,QR Droid, Red Laser,Scan Life,Shop Savy etc usig HTC EVO 3D. None of them read all barcodes. But Zbar for IOS reading all the same codes.I think its the problem with hardware of the device.Is there any Scanner App better than above mentioned ?
Bar code Image.
http://i.stack.imgur.com/7VR9I.jpg
This barcode is a form of RSS-14. zxing / Barcode Scanner reads it, but it's not the easiest to read. You need to put the image in landscape orientation (right side up). Try TRY_HARDER mode, and restrict your scan to the RSS-14 format to avoid false positives.
I want to scan GS1-128 barcode (like picture attached) with Zxing (Android), but I can't. I'm using scanning by IntentIntegrator. Could anyone help me?
Else another barcode scanner framework for Android/iOS?
Thanks, best regards
GS1-128 barcode image: https://lh5.googleusercontent.com/-YK3JO8XNT30/TyZHBkkwMtI/AAAAAAAAKOg/pzrOTpeTILs/w778-h112-k/barcode.gif
I believe I answered this in a private e-mail, but repeating here.
Your barcode is quite long, so difficult to scan, but it is possible. The format is Code 128. You need to make sure you set "SCAN_FORMATS" to "CODE_128" to enable Code 128 scanning (and disable others).
You may also have better luck widening the scanning rectangle by supplying a larger value for "SCAN_WIDTH".
Am currently trying out zxing to develop a MultiFormat Barcode reading supporting android platform, To get Started have downladed zxing 1.7 and builded.
It works fine with EAN format codes and QR Codes, But It fails to scan a Barcode when it comes to real scanning of products which has small UPC barcodes.
Is this a problem with device?
Am Testing it on my Samsung GT-S5570, Android Version 2.2.1, With Autofocus enabled Camera 3.1 MP.
Kindly advice.
Thanks
Sam
If you can scan EAN barcodes, but not small UPC barcodes, it is probably because the camera can't get enough detail to distinguish the barcode from the background. Here are some things you could try:
Hold the camera closer to, or further away from, the barcode. Too close, and the auto focus mechanism is unable to compensate. Too far away, and the barcode becomes too small for detection.
Use more light. ZXing can activate the flash-light on some phones, but not all. If the lightning conditions are too poor, the contrast between the background and the barcode becomes too small.
Try with a different phone, with different/better camera.