简体   繁体   English

javascript phonegap条码扫描器太慢

[英]javascript phonegap barcode scanner is so slow

I'm using phonegap barcode scanner which installed from Github Phonegap Barcode Scanner 我正在使用从Github安装的Phonegap条码扫描器Phonegap条码扫描器

It's working for me on android and ios platforms but scanning barcode is so slow and take long time . 它对我在android和ios平台上都有效,但是扫描条形码是如此缓慢且需要很长时间。

Any helps to increase the the performance . 任何有助于提高性能的方法。

Thanks 谢谢

I currently work with barcode (39) and qrcode and when I used this plugin, I have the same problem as you: if the device does not have a 13mpx camera minimum, it takes too long to be industrialize. 我目前使用条形码(39)和qrcode,当我使用此插件时,与您有同样的问题:如果设备的最小摄像头数量不超过13mpx,则工业化将花费很长时间。

Then, i haved test with many full-js library for decoding qrcode and barcode and i haved lot of better result. 然后,我测试了许多用于解码qrcode和条形码的full-js库,并且得到了更好的结果。

So, no i don't think you can really increase plugin performance but you can't try with this solution. 所以,不,我不认为您可以真正提高插件性能,但是您不能尝试使用该解决方案。

Here is the lib i used for barcode : https://serratus.github.io/quaggaJS/ 这是我用于条形码的库: https : //serratus.github.io/quaggaJS/

And for qrcode : https://github.com/cozmo/jsQR 对于qrcode: https : //github.com/cozmo/jsQR

I had an improvement in the order of 5 to 10 seconds on a Windows tablet and 5Mpx 在Windows平板电脑和5Mpx上,我的性能得到了大约5到10秒的改进

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM