We need to read Inverted QR Codes on both Android and iOS.
On Android we wrote a piece of native code to use QRDroid to do the scanning as it is capable of scanning both regular and inverted codes.
On iOS the standard barcode reader app is also capable of reading both regular and inverted codes.
Is there a way to to use the native app to do the scanning and then simply grab the output from it to use in our own app.
The first sample of native code we wrote implemented ZXing in iOS and the current code for QR reading is a cn1lib you can easily edit to do anything.
We also created a cn1lib for scandit which is a proprietary scanner library. You can use those as references.
The state of code scanning on iOS is a bit worse than Android so I'm not sure if you'll find what you are looking for.
Related
Is there a way, using Apple's built-in iOS barcode API, to scan the last 5 digits of an add-on barcode?
If not, is there a free SDK solution out that that is known to work well and has stayed up to date with the latest iOS versions? ZBar works but is WAY outdated.
See the comic book example here:
Tried about 10 different online barcode detectors, and neither of them can decode that barcode.
Seems this barcode has some special format which is not supported with current barcode readers...
If your having trouble with Apples Barcode API i suggest trying MLKit from Firebase i am able to scan and get OCR from image with few lines of code.
https://firebase.google.com/docs/ml-kit/ios/read-barcodes
I tried https://github.com/hyperoslo/BarcodeScanner. It is okay with the swift 4.1. Also, It is reading the larger barcode under the direct sales label on left but not the smaller on the right with 00113 label above it. Can you please confirm that these barcodes are valid? As the application from this wrapper is working on other barcodes.
I'm developing an app (for a single customer) with Xamarin that must read barcodes with the camera (and optionally with an external bluetooth scanner), and used for testing an Asus TF300T, a LG4xP880 and a Nexus 7 second edition (the target machine).
I tested ScandIt and ZXing, but the best results I had with the free Barcode Scanner app (same library of ZXing, I know, but can't get the same speed).
I've read that I can use it with an intent, and I can also buy the plus version (need portrait scanning), but I couldn't find any documentation on how to (if possible), with intent call only:
configure the layout, select portrait/landscape
select the barcode type (exclude some)
insert a button that exits scanning without reading
Is it possible?
ZXing provides an IntentIntegrator class that either launches ZXing or prompts the user to install it from the Google Play store. However, if you know Barcode Scanner or Barcode Scanner Plus is installed, you can just call StartActivityForResult yourself. Here is a recipe using StartActivityForResult
The layout is determined by the orientation of the device, there is no need to specify it. However, as you are aware, ZXing only works in landscape, so you will need to buy the plus version for portrait support.
ZXing provides two options for specifying the barcodes to decode
intent.putExtra("SCAN_MODE", ...)
According to ZXing Intents scan mode can be one of PRODUCT_MODE, ONE_D_MODE, QR_CODE_MODE or DATA_MATRIX_MODE. Alternatively you can provide a list of formats you'd like to support for any given instance
intent.putExtra("SCAN_FORMATS", "EAN_13,EAN_8,QR_CODE,...")
The plus version was published by Sean Owen of the ZXing team and it based on ZXing, so it probably has identical configuration options and responds to the same intent.
Bonus: I wrote an app for external scanners that does the heavy lifting of connecting and configuring the scanner. It makes it trivial to add bluetooth barcode scanner support to any new or existing app. Think of it as ZXing for bluetooth barcode scanning. The client code is up on GitHub and provides instructions for getting started.
Currently i am trying to develop an iOS app for reading various 2D barcode & i have seen Passkit Library is able to read following bar code (PDF417, Aztec, QR).
So is it possible to create such kind of app using Passkit library ?
If possible, what are the methods for reading & extracting information from these bar codes?
I've used the zBar SDK with good success.
It is able to read QR codes and many kinds of bar codes.
It was very fast at detecting and decoding images with the camera.
It is available to install via CocoaPods (www.cocoapods.org) which makes it very easy to install and get started.
I'm planning to develop a simple barcode reader for iOS that will read the barcode and return all the information it can extract from the internet.
So far I decided to use the ZBar SDK in the app and successfully read the barcode which return a decoded string of the barcode.
Now I wonder how can I extract the useful information from it. I have limited knowledge on barcode so I suppose there will be an online database so that I can input the barcode result and fetch the data from it.
Can anyone give me some suggestion?
Thanks in advance.
Zxing the best library for Bar code and QR Code scan It Support both Android and iPhone SDK. This is used by most of the commercial mobile cash application
More Information on ZXING
Also there is anther library
ZBar. Seems to be a very capable library.
Good luck
Chamath Jeevan
I'm looking for a lib to use that comes with zxing QR scanning capabilities for iOS. What's the best option out there right now?
The question is slightly confusing - zxing is a QR scanning library. If you mean you are looking for an iOS port of zxing then try the Google one:
http://code.google.com/p/zxing/downloads/list
I know it looks like they're all for Android, but if you download the ZXing-1.7.zip it includes the code for multiple platforms including iOS (although the code base was a bit of a mess last time I checked).
EDIT: Sorry, didn't see the part about PhoneGap (should probably mention that in the question, not just the title). I don't know of an existing PhoneGap plugin, but you can probably write one yourself easily enough if you can get the iOS ZXing examples working.
There is an iPhone Barcode Scanner plugin for Phonegap in the phonegap-plugins github repository here. According to the readme, it uses zxing.