-
Notifications
You must be signed in to change notification settings - Fork 147
Barcode Reader decodes Content incorrect #47
Comments
The barcode scanning library used on BB10 is ZXing. I cannot recall the version at the moment (perhaps someone else can dig this up), but you may wish to check the state of the upstream codebase to see if it properly supports this standard. They have had bugs before. |
Hello seanmcveigh, thank you for your answer. Another DataMatix Codes works fine. Can fix the issue the Cascades-Samples Community or only Blackberry? |
the custombarcodescanner and smart tags both use the same ZXing library. this is most likely a bug in the ZXing decoder and you can confirm this by trying the ZXing software on a different platform, like a PC, etc. in fact, there is a web version here -> http://zxing.org/w/decode.jspx (I am just not sure how recent that version is). The home for ZXing is here: https://github.com/zxing/zxing |
Note: that this could also be a recently fixed bug, in which case if you can find the date or version when it was fixed, we may be able to pull the fixed version into the blackberry platform. |
I change the barcode color because the picture is to dark for the photo upload on http://zxing.org/w/decode.jspx. Of course the Blackberry still decodes the barcode incorrect. http://zxing.org/w/decode.jspx decodes the photo fine. Then i try the ZXing.net version.
I think all ZXing versions higher then 2014/03/13 should be work. |
The version of ZXing that's on device definitely predates that time, so the best solution is to build in a new version. I'd like to do that myself, but I've got too many other things going on right now, so I won't be able to get to it for quite some time. Last time I looked at ZXing, they weren't maintaining the C++ port, so you may need to look through the repo history to find the last version they had. It should be fairly recent, but may not keep up with future changes. |
Thanks for checking! Anollya, have you tried loading any Android barcode scanners? They would presumably use a later captive version of ZXing. If you are developing an app, that is another valid route to look into, since BB10 supports running Android apps. |
yes, i tried QR Droid (https://play.google.com/store/apps/details?id=la.droid.qr). |
I see on the ZXing Homepage (https://github.com/zxing/zxing) a third-party c++ port. zxing-cpp port to C++ (forked from the deprecated official C++ port) |
Hello,
i use the Barcode Reader Source from Github (Github link). The App works fine but i´ve one Barcode when i want it to scan, the App decodes the content incorrect.
Is this an API 10.3.1 bug? Because the Android App QR Droid decode the Data Matrix Code fine.
Here is the Barcode:
https://www.dropbox.com/s/bcc02orzwyybpv3/BC.jpg?dl=0
The correct decoded content is:
1P6SL3120-1TE15-0AA4+ST-F56076108
From the Blackberry Barcode Reader decoded content:
https://www.dropbox.com/s/ypan9bhir1f1uus/BB_BC_Content.JPG?dl=0
Additional Information:
The Data Matrix Code is encoded from a CAB Printer.
Programming Manual:
https://www.cab.de/media/pushfile.cfm?file=153
Page 134:
The encoding and decoding process of Data Matrix is very complex and several
methods have been used for error correction in the past. ECC200 is the newest
and most standard version of data matrix error correction. It supports advanced
encoding and error checking with Reed Solomon error correction algorithms.
These algorithms allow the recognition of barcodes that are up to 60% damaged.
How can i fix the issue or who can fix the issue? Is the an API 10.3.1 bug?
The text was updated successfully, but these errors were encountered: