如何在HTML / Javascipt(Android)中解码2d数据矩阵条码? [英] How to decode 2d data matrix barcode in HTML/Javascipt (Android)?
问题描述
背景:我需要用我的Android手机的相机扫描数据矩阵条形码。我通过html5访问相机并将图片放入画布元素。
方法:我找不到用于扫描的JavaScript库用于解码2D数据矩阵码的图片。实际上我打电话给ZXing应用程序并复制并返回等等。所以我对这个费力的解决方案不满意。
问题:有人知道用于解码2D数据矩阵码的javascript库吗?或者通过使用像ZXing / Goggles这样的其他应用程序来轻松解决问题,并自动将扫描结果返回给JS?!
我很感激您的输入。
请参阅我对问题的评论,我建议使用Java,C或C ++的部分。然后你就可以找到一个开源库。
使用C / C ++,你可以使用这个开源库:http://www.libdmtx.org [ ^ ]。
你可以尝试找到更多: http:/ /bit.ly/1pmrWZ3 [ ^ ]。
许多产品都是商业产品,但尝试发现一些开源产品。
-SA
Context: I need to scan a data matrix barcode with the camera of my android mobile phone. I access the camera over html5 and got the picture into a canvas element.
Approach: I can't find a javascript library for scanning a picture to decode a 2D data matrix code. Actually i call the ZXing App and copy and go backt etc. So i'm not happy with this laborious solution.
Question: Somebody knows a javascript library for decoding 2D data matrix codes? Or maybe an easy solution by using another app like ZXing / Goggles and get the result of the scan automatically back in JS?!
I'd appreciate your input.
Please see my comments to the question, the part where I advise to use Java, C or C++. Then you would be able to find an open-source library.
With C/C++, you can use this open-source library: http://www.libdmtx.org[^].
You can try to find some more: http://bit.ly/1pmrWZ3[^].
Many products are commercial, but try to spot something of open-source.
—SA
这篇关于如何在HTML / Javascipt(Android)中解码2d数据矩阵条码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!