Add config option to only scan a specific Barcode type #14
Comments
Yes, we need this option also, and an option to determine landscape mode or portait. |
👍 |
+1 Needs to include only QR too. |
+10000 |
+1 |
I've found it, undocumented but working on android and iOS!! Very nice! The plugin applies options with
Did suffice my needs: only QR. Javascript code: cordova.plugins.barcodeScanner.scan(good_scan, bad_scan, {'SCAN_MODE': 'QR_CODE_MODE'}) |
Ok, there's a lil issue. Options is implemented totally different on iOS. It's very easy to make this issue work as I said earlier ust commenting out: And comment decodeHints you don't want. https://github.com/phonegap/phonegap-plugin-barcodescanner/blob/master/src/ios/CDVBarcodeScanner.mm#L505
That works nice, so you we can pass the same options in iOS and Android in the view:
What my limited obj c knowledge doesn't now is how to pass that scanMode nsstring to the hints. I've also changed the flip camera to flash. Going to post the link soon, clean up. |
@nofxx Please update. I'm looking for a tut to change flip to flash. |
I should have commited styling apart, but anyways devs here should be linting the code in the first place ;) |
Hi guys, But, it is not working, it still scans barcodes along with qr codes. What am I doing wrong here? If possible can you provide an example code to meet my requirements. Thank you |
With version 5.0.0 you can now also pass a |
This thread has been automatically locked. |
Add a option to only scan (for example) EAN_13 Barcodes and ignore all others. This should speed up Barcode recognition and should avoid false positives.
The text was updated successfully, but these errors were encountered: